[参考]快速完成Kali的apt设置

一、换源:

sudo vim /etc/apt/sources.list
#官方源
#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://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
#浙大源
#于2021年9月测试可能出现一些问题,浙大源建议注释
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

二、更新sources

警告:这是一个删除指令。请自行检查其参数是否正确。该指令在su权限下可能造成无法挽回的后果。

rm -f -r /etc/apt/sources.list.d

三、更新签名

wget -q -O - https://archive.kali.org/archive-key.asc | apt-key add
apt update

四、更新apt

apt-get update
apt-get upgrade
apt-get clean
posted @ 2021-09-28 09:51  二氢茉莉酮酸甲酯  阅读(193)  评论(0编辑  收藏  举报