vim /etc/apt/sources.list
#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.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
# 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://security.kali.org/kali-security kali-rolling/updates main contrib non-free
#deb-src http://security.kali.org/kali-security kali-rolling/updates main contrib non-free
apt-get update & apt-get upgrade
apt-get dist-upgrade
# 删除所有已下载的包文件
apt-get clean
# 删除已下载的旧包文件
apt-get autoclean
# 卸载所有主动装置且不再应用的软件包
apt-get autoremove
查看零碎版本 命令:lsb_release -a
查看内核版本 命令:uname -r