root@g0:~# leafpad /etc/apt/sources.list
#kali官方源
deb 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 http://mirrors.ustc.edu.cn/kali kali-rolling main contrib non-free
deb-src http://mirrors.ustc.edu.cn/kali kali-rolling main contrib non-free
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
#阿里云源
deb http://mirrors.aliyun.com/kali sana main non-free contrib
deb http://mirrors.aliyun.com/kali-security/ sana/updates main contrib non-free
deb-src http://mirrors.aliyun.com/kali-security/ sana/updates main contrib non-free
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://http.kali.org/kali kali main contrib non-free
deb http://security.kali.org/kali-security kali/updates main contrib non-free
#官方源:
deb http://http.kali.org/kali sana main non-free contrib
deb-src http://http.kali.org/kali sana main non-free contrib
deb http://security.kali.org/kali-security sana/updates main contrib non-free
deb-src http://security.kali.org/kali-security sana/updates main contrib non-free
写入之后需更新
碰到如下问题
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
E: 无法定位软件包 linux-headers-4.3.0-kali1-amd64
E: 无法按照 glob ‘linux-headers-4.3.0-kali1-amd64’ 找到任何软件包
E: 无法按照正则表达式 linux-headers-4.3.0-kali1-amd64 找到任何软件包
或者遇到各种依赖关系没有安装,或 apt-get -f install 无法起作用,需要执行如下命令:
(安装新的软件包)
apt-get dist-upgrade(安装新的内核文件)
或者setting----->Details------->Check For updates,检查更新,更新所有
PS:这个时间比较长,自己用了1个多小时,中间还需要自己点回车