1. 换源地址
# 中科大
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
#官方源
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
2. kali 换源
方法1
使用下列命令可以直接打开 sources.list
sudo vim /etc/apt/sources.list
sudo apt update
方法2
①在命令行打开记事本
sudo mousepad
② 随便复制一条地址到记事本
③ 点击x退出,弹出保存框 然后选择save
④ 上一步 save 保存后 出现下面这个页面
⑤ 选择 FilesyStem root--->etc--->apt目录
⑥ 双击sources.list 选择replace
⑦ 保存成功后 命令行输入 sudo apt update更新软件源
sudo apt update
参考:
https://blog.csdn.net/key_nothing/article/details/90055845