vim /etc/apt/sources.list
1.添加源 #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
#中科大的源
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.zju.edu.cn/kali kali-rolling main non-free contrib
deb-src http://mirrors.zju.edu.cn/kali kali-rolling main non-free contrib
3 更新源
apt-get update
4 更新软件包
apt-get upgrade
更新系统
apt-get dist-upgrade
5自动卸载不需要的软件包 a
pt-get autoremove
自动清除软件包
apt-get autoclean