-
su - root
-
sudo vi /etc/apt/sources.list
-
将原来的源 注释 即deb http://http.kali.org/kali kali-rolling main contrib non-free
- #中科大
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 -
之后Esc,:wq保存退出即可
- sudo apt-get dist-upgrade
sudo apt-get update
sudo apt-get upgrade - Kali Rolling :是Kali的即时更新版,只要Kali中有更新,更新包就会放入Kali Rolling中供用户下载使用。它为用户提供了一个稳定更新的版本,同时会带有最新的更新安装包。这个是我们最常用的源 在kali Rolling 下有3类软件包main、non-free和contrib。其中main遵从Debian自由软件指导方针(DFSG),并且不依赖于non-free;contrib 遵从Debian自由软件指导方针(DFSG),但依赖于non-free;non-free不遵从Debian自由软件指导方针(DFSG) 摘自
- 解决办法更换kali源的默认分支,默认国内源提供的配置都是rolling滚动更新的,修改为稳定版本分支即可解决问题,稳定版分支:kali-last-snapshot ,下面以中科大源为示例,可正常使用。
deb https://mirrors.ustc.edu.cn/kali kali-last-snapshot main non-free contrib
deb-src https://mirrors.ustc.edu.cn/kali kali-last-snapshot main non-free contrib
kali换源
发布于 2022-03-05 1528 次阅读
Comments NOTHING