Kali Linux 安全镜像使用帮助

地址

https://mirrors.cqu.edu.cn/kali-security/

说明

Kali Linux的安全更新

仓库已于2016年停止更新

使用说明

详细的步骤

此步骤假定你是一位Linux的小白,且你需要这份已经多年未更新的源库
1:打开并备份sources.list

以下基于vim进行编写

$cd /etc/apt/
------------------------------------
$sudo cp sources.list sources.list.txt
------------------------------------
$sudo vim sources.list
------------------------------------
一般未编写source.list的文档内容如下
------------------------------------

#

# deb cdrom:[Debian GNU/Linux 2019.3 _Kali-rolling_ - Official Snapshot amd64 LIVE/INSTALL Binary 20190827-10:52]/ kali-last-snapshot contrib main non-free

#deb cdrom:[Debian GNU/Linux 2019.3 _Kali-rolling_ - Official Snapshot amd64 LIVE/INSTALL Binary 20190827-10:52]/ kali-last-snapshot contrib main non-free

deb http://http.kali.org/kali kali-rolling main non-free contrib
# deb-src http://http.kali.org/kali kali-rolling main non-free contrib

# This system was installed using small removable media
# (e.g. netinst, live or single CD). The matching "deb cdrom"
# entries were disabled at the end of the installation process.
# For information about how to configure apt package sources,
# see the sources.list(5) manual.
2: 添加源
  • 1:在键盘按下i键 进入编辑模式
  • 2:添加下列代码

    deb http://mirrors.cqu.edu.cn/kali-security sana/updates main contrib non-free
    # deb http://mirrors.cqu.edu.cn/kali-security sana/updates main contrib non-free
    
  • 3:按下Esc退出编辑模式,同时按下shitf+;键,在输入w+q,回车保存

    3:刷新缓存
    $ sudo apt update
    

    一般更替步骤

    在终端中执行下列语句以执行

    sudo sed -i '1a deb http://old.kali.org/kali-security sana/updates main contrib non-free\
    # deb http://old.kali.org/kali-security sana/updates main contrib non-free' /etc/apt/sources.list
    

相关链接

Kali Linux 主页 https://www.kali.org/

文档 https://www.kali.org/kali-linux-documentation/

论坛 http://forums.kali.org/