https://mirrors.cqu.edu.cn/kali
kali Linux 的官方软件包仓库
此步骤假定你是一位 Linux 的初级使用者,请跟着步骤一步步操作
sources.list
$ cd /etc/apt/
$ sudo cp sources.list sources.list.bak
sources.list
文件一般未编辑的sources.list
文件如下所示。
$ sudo vim sources.list
---------------------
# sources.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.
以下以
vim
作为示例
http.kali.org
替换为 mirrors.cqu.edu.cn
deb https://mirrors.cqu.edu.cn/kali kali-rolling main non-free contrib
# deb-src https://mirrors.cqu.edu.cn/kali kali-rolling main non-free contrib
$ sudo apt-get update
在终端中直接执行以下命令以进行更改:
sudo sed -i s/http.kali.org/mirrors.cqu.edu.cn/ /etc/apt/sources.list
详细有关sed
指令的内容请参考sed
man page 或者 参阅 Arch Linux WIKI
Kali Linux 主页 https://www.kali.org/