1、更换国内更新源
打开系统终端,输入以下命令:
vim /etc/apt/sources.list
然后输入i进入插入编辑模式,粘贴下面的国内源进去
#aliyun 阿里云
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
# ustc 中科大
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.ustc.edu.cn/kali-security kali-current/updates main contrib non-free
#deb-src http://mirrors.ustc.edu.cn/kali-security kali-current/updates main contrib non-free
# kali 官方源
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
粘贴成功之后按Esc退出键后输入:wq保存文件
2、更新软件、系统
apt-get update #更新软件所有列表
apt-get upgrade #更新软件
apt-get dist-upgrade #更新系统版本
或者可以一起执行
apt-get update & apt-get upgrade & apt-get dist-upgrade #将上面三条命令一块执行
3、清理
apt-get clean #清理安装包