Linux apt更换国内软件源
1.编辑apt源文件
vim /etc/apt/sources.list
2.注释官方源,添加国内源
# See https://www.kali.org/docs/general-use/kali-linux-sources-list-repositories/
#deb http://http.kali.org/kali kali-rolling main contrib non-free
deb http://mirrors.aliyun.com/kali kali-rolling main non-free contrib
deb-src http://mirrors.aliyun.com/kali kali-rolling main non-free contrib
# Additional line for source packages
# deb-src http://http.kali.org/kali kali-rolling main contrib non-free
3.更新源
apt-get dist-upgrade
apt-get update
评论 (0)