Kali Linux 更新源 操作完整版教程

2019年5月23日15:34:14 评论 1,712

我相信第一次用kali linux的人在更新源这个问题上,都遇到过很多的坑。我也是一样的,要么是kali linux更新源失败,要么是kali linux更新源无法正常使用,甚至是在更新途中会报“无法获得锁 /var/lib/dpkg/lock – open (11: 资源暂时不可用) ”的错误......

Kali Linux 更新源 操作完整版教程

其实,有问题是很正常的,下面我将分享一个能让你一劳永逸解决kali linux 更新源的问题;

一、查看kali系统的更新源地址文件
命令:

vim /etc/apt/sources.list

kali官方更新源

上面这是kali官方的更新源;

kali官方的更新源
main non-free contrib :这个代表收费软件,免费软件,主要软件什么的......

问:如何查看自己的kali linux版本?

答:用命令“lsb_release -a”即可!

lsb_release -a

注意: (linux standard base linux标准库),以下的更新源均为rolling版本。如果不是,请自行修改。

二、增加或替换掉sources.list文件里面的更新源地址:
以下是我收集的kali更新源大全,有一些或许是失效的,有一些需要做一些细节上的修改就可以用了。

不懂请仔细看第一步更新源的拓展知识。

# 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 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://security.kali.org/kali-security kali/updates main contrib non-free
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

#阿里云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

#163 Kali源
deb http://mirrors.163.com/debian wheezy main non-free contrib
deb-src http://mirrors.163.com/debian wheezy main non-free contrib
deb http://mirrors.163.com/debian wheezy-proposed-updates main non-free contrib
deb-src http://mirrors.163.com/debian wheezy-proposed-updates main non-free contrib
deb-src http://mirrors.163.com/debian-security wheezy/updates main non-free contrib
deb http://mirrors.163.com/debian-security wheezy/updates main non-free contrib
#auto
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-src http://mirrors.ustc.edu.cn/kali kali-rolling main non-free contrib

#浙大
deb http://mirrors.zju.edu.cn/kali kali-rolling main contrib non-free
deb-src http://mirrors.zju.edu.cn/kali kali-rolling main contrib non-free

#东软大学
deb http://mirrors.neusoft.edu.cn/kali kali-rolling/main non-free contrib
deb-src http://mirrors.neusoft.edu.cn/kali kali-rolling/main non-free contrib

#重庆大学
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-rolling main non-free contrib
#deb-src http://http.kali.org/kali kali-rolling main non-free contrib

以下是我目前用的kali linux两个更新源地址:

# kali官方源
deb http://http.kali.org/ kali-rolling main non-free contrib
deb-src http://http.kali.org/ kali-rolling main non-free contrib

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

我是直接把上面的更新源地址直接加入到sources.list,官方源我也是没有做任何的修改。毕竟源地址多了并没有什么坏处,唯一是在我们更新的时候下载时间或许会久一点,仅此而已。

三、开始更新软件列表和更新软件;
命令:

apt-get update & apt-get upgrade
apt-getupdate & apt-get upgrade

四、更新完成后再次输入软件升级;
命令:

apt-get dist-upgrade
apt-get dist-upgrade

五、清理;
命令:

apt-get clean
apt-get clean

六、重启系统;
命令:

reboot

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: