KaliLinux添加更新源

路径:/etc/apt/sources.list
添加以下更新源:

#官方源

#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

#中科大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

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

#阿里云kali源

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

deb http://mirrors.aliyun.com/kali-security kali-rolling/updates main contrib non-free

deb-src http://mirrors.aliyun.com/kali-security kali-rolling/updates main contrib non-free

将新的Kali源粘贴进去,同时将官方源用#号注释掉。


  1. 再执行更新命令:

apt-get clean && apt-get update -y && apt-get -f upgrade -y

或以下

apt-get update   //使主机上软件包的索引信息与服务器进行同步

apt-get upgrade   //升级所有软件为最新版本

apt-get dist-upgrade   //升级整个系统

apt-get clean

你可能感兴趣的:(KaliLinux添加更新源)