kali网络源配置
使用vim对sources.list文件进行修改:
$ vim /etc/apt/sources.list
随便挑选一个源添加到该文件中
------------------------------------------------------------------------------------------------------------
阿里云:
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
官方:
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
------------------------------------------------------------------------------------------------------------
使用以下命令更新源
$ apt-get dist-upgrade
$ apt-get update & apt-get upgrade
$ apt-get clean
若提示无法安全更新
解决无法更新源:
进入 cd /etc/apt/apt.conf.d 下 找到 70debconf
$ vim 70debconf
在文件进入里添加: Acquire::AllowInsecureRepositories “true”; (注意后面有分号)