Myluzh Blog

Kali Liunx更新源-国内Kali源

发布时间: 2020-3-6 文章作者: myluzh 分类名称: NOTE 朗读文章


0x01编辑kali的更新源地址文件
sudo vim /etc/apt/sources.list

0x02添加下面的源地址(选择几个增加即可)
#中科大
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.aliyun.com/kali kali-rolling main non-free contrib
deb-src http://mirrors.aliyun.com/kali kali-rolling main non-free contrib
#清华大学
deb http://mirrors.tuna.tsinghua.edu.cn/kali kali-rolling main contrib non-free
deb-src https://mirrors.tuna.tsinghua.edu.cn/kali kali-rolling main contrib non-free
#163
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.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

0x03保存后执行命令
#更新源&尝试下载在apt服务器具有更新的所有关键包
apt-get update &apt-get upgrade
#删除以下载的包
apt-get clean
#重新启动
reboot
apt-get dist-upgrade
#此命令也算更新所有软件包,但是当upgrade更新时,如果依赖关系无法解决时可能会报错或者停止,但是dist-upgrade命令可以自动解决依赖关系,因此dist-update有一定的危险性,因为可能会更新很大您不希望更新的软件,导致原理的一些需要依赖旧包的软件无法运行。所以,我们在用apt-get dist-upgrade时,请慎重使用,一般是 apt-get update && apt-get upgrade 可以保证系统的完整性。



标签: kali linux 更新源

发表评论