一、将默认的配置源注释掉root@zinuo:~# vim /etc/apt/sources.list注释:#deb http://http.kali.org/kali kali-rolling main non-free contrib更换为这两行:deb https://mirrors.huaweicloud.com/kali kali-rolling main non-free contribdeb-src https://mirrors.huaweicloud.com/kali kali-rolling main non-free contrib二、查看更改后的文件root@zinuo:~# cat /etc/apt/sources.list# # deb cdrom:[Debian GNU/Linux 2019.2 _Kali-rolling_ - Official Snapshot amd64 LIVE/INSTALL Binary 20190508-08:43]/ kali-last-snapshot contrib main non-free#deb cdrom:[Debian GNU/Linux 2019.2 _Kali-rolling_ - Official Snapshot amd64 LIVE/INSTALL Binary 20190508-08:43]/ kali-last-snapshot contrib main non-freedeb https://mirrors.huaweicloud.com/kali kali-rolling main non-free contribdeb-src https://mirrors.huaweicloud.com/kali kali-rolling main non-free contrib#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.三、更新系统apt update && apt upgrade -y
注意:更新系统的时候会提示个问题就是如下图:
非超级用户是否应该能够捕获数据包?,选择否就行,其实测试环境无所谓。
更新完后执行命令清理包并重启:
apt-get clean && reboot
其他一些源:
# kali官方源deb http://http.kali.org/ moto main non-free contrib deb-src http://http.kali.org/ moto main non-free contribdeb http://security.kali.org/ moto/updates main contrib non-free deb-src http://security.kali.org/ moto/updates main contrib non-free#中科大kali源 deb http://mirrors.ustc.edu.cn/kali kali main non-free contrib deb-src http://mirrors.ustc.edu.cn/kali kali main non-free contrib deb http://mirrors.ustc.edu.cn/kali-security kali/updates main contrib non-free#新加坡kali源 deb http://mirror.nus.edu.sg/kali/kali/ kali main non-free contrib deb-src http://mirror.nus.edu.sg/kali/kali/ kali main non-free contrib deb http://security.kali.org/kali-security kali/updates main contrib non-free deb http://mirror.nus.edu.sg/kali/kali-security kali/updates main contrib non-free deb-src http://mirror.nus.edu.sg/kali/kali-security kali/updates main contrib non-free#阿里云kali源 deb http://mirrors.aliyun.com/kali kali main non-free contrib deb-src http://mirrors.aliyun.com/kali kali main non-free contrib deb http://mirrors.aliyun.com/kali-security kali/updates main contrib non-free#163 Kali源 deb http://mirrors.163.com/debian wheezy main non-free contrib deb-src http://mirrors.163.com/debian wheezy main non-free contrib deb http://mirrors.163.com/debian wheezy-proposed-updates main non-free contrib deb-src http://mirrors.163.com/debian wheezy-proposed-updates main non-free contrib deb-src http://mirrors.163.com/debian-security wheezy/updates main non-free contrib deb http://mirrors.163.com/debian-security wheezy/updates main non-free contrib #auto deb http://http.kali.org/kali kali-rolling main non-free contrib#中科大 deb http://mirrors.ustc.edu.cn/kali kali-rolling main non-free contrib deb-src http://mirrors.ustc.edu.cn/kali kali-rolling main non-free contrib#浙大 deb http://mirrors.zju.edu.cn/kali kali-rolling main contrib non-free deb-src http://mirrors.zju.edu.cn/kali kali-rolling main contrib non-free#东软大学 deb http://mirrors.neusoft.edu.cn/kali kali-rolling/main non-free contrib deb-src http://mirrors.neusoft.edu.cn/kali kali-rolling/main non-free contrib#重庆大学 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#官方源 #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
官方介绍:https://docs.kali.org/general-use/kali-linux-sources-list-repositories