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

2018-05-31 15:32 评论 0 条

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

 

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

 

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

命令:

vim /etc/apt/sources.list

 

kali官方更新源

 

上面这是kali官方的更新源;顺便再拓展一下知识,图中的kali-rolling是kali目前最新的代号,kali有两个代号(codename):sana和kali-rolling;

 

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

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

注意: (linux standard base linux标准库),以下的更新源均为rolling版本。

 

二、增加或替换掉sources.list文件里面的更新源地址:

# 
#deb cdrom:[Debian GNU/Linux 7.0 Kali - Official Snapshot amd64 LIVE/INSTALL Binary 20150312-17:50]/ kali contrib main non-free

#deb cdrom:[Debian GNU/Linux 7.0 Kali - Official Snapshot amd64 LIVE/INSTALL Binary 20150312-17:50]/ kali contrib main non-free

deb http://http.kali.org/kali moto main non-free contrib 
deb-src http://http.kali.org/kali 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修改更新源

 

我是直接把上面的更新源地址直接加入到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

reboot

版权声明:本文著作权归原作者所有,欢迎分享本文,谢谢支持!
转载请注明:Kali Linux 更新源 操作完整版教程 | Network
分类:技术类 标签:

发表评论


表情