sudo gedit /etc/apt/sources.list
在sources.list中添加如下代码:
#debain源 deb http://mirrors.163.com/debian/ wheezy main contrib deb http://mirrors.163.com/debian/ wheezy-proposed-updates main contrib deb-src http://mirrors.163.com/debian/ wheezy main contrib deb-src http://mirrors.163.com/debian/ wheezy-proposed-updates main contrib #debian安全更新源 deb http://security.debian.org/ wheezy/updates main contrib deb-src http://security.debian.org/ squeeze/updates main contrib non-free #阿里云kali源 deb http://mirrors.aliyun.com/kali kali main non-free contrib deb-src http://mirrors.aliyun.com/kali kali main non-free contrib deb http://mirrors.aliyun.com/kali-security kali/updates main contrib non-free #中科大kali源 deb http://mirrors.ustc.edu.cn/kali kali main non-free contrib deb-src http://mirrors.ustc.edu.cn/kali kali main non-free contrib deb http://mirrors.ustc.edu.cn/kali-security kali/updates main contrib non-free #新加坡kali源 #deb http://mirror.nus.edu.sg/kali/kali/ kali main non-free contrib #deb-src http://mirror.nus.edu.sg/kali/kali/ kali main non-free contrib #deb http://mirror.nus.edu.sg/kali/kali-security kali/updates main contrib non-free #deb-src http://mirror.nus.edu.sg/kali/kali-security kali/updates main contrib non-free # 上海交大的源 deb http://ftp.sjtu.edu.cn/debian wheezy main non-free contrib deb http://ftp.sjtu.edu.cn/debian wheezy-proposed-updates main non-free contrib deb-src http://ftp.sjtu.edu.cn/debian wheezy main non-free contrib deb-src http://ftp.sjtu.edu.cn/debian wheezy-proposed-updates main non-free contrib deb http://ftp.sjtu.edu.cn/debian-security wheezy updates main non-free contrib deb-src http://ftp.sjtu.edu.cn/debian-security wheezy/updates main non-free contrib #Kali-Security #deb http://security.kali.org/ kali/updates main contrib non-free #deb-src http://security.kali.org/ kali/updates main contrib non-free
sudo apt-get update //更新本地软件信息库
如果需要升级系统可以使用: sudo apt-get upgrade 或 sudo apt-get dist-upgrade(有风险,会自动解决依赖性问题)