1.查看系统版本
# cat /etc/issue
# lsb_release -a
2.查看内核信息
# uname -a
3.更新源
# cp /etc/apt/source.list{,.bak}
# vim /etc/apt/sources.list
备注:国外源速度太慢,这里禁止;网络中的部分源已经过期,建议更换其它源。
# kali官方源
#deb http://http.kali.org/ moto main non-free contrib
#deb-src http://http.kali.org/ moto main non-free contrib
#deb http://security.kali.org/ moto/updates main contrib non-free
#deb-src http://security.kali.org/ moto/updates main contrib non-free
#中科大kali源
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
4.版本升级
# apt-get dist-upgrade
# apt-get update & apt-get upgrade
# apt-get clean
备注:
apt-get clean //清除缓存索引
apt-get update //更新索引文件
apt-get upgrade //更新实际的软件包文件
apt-get dist-upgrade //根据依赖关系更新