欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  网络运营

彻底解决Linux无法定位软件包!!!

程序员文章站 2022-03-18 09:53:10
无法定位软件包错误基本都与镜像有关,vi /etc/apt/sources.list需要将原来的注释掉,然后添加新源,以下为国内源列表:# 中科大源deb http://mirrors.ustc.edu.cn/kali kali main non-free contribdeb-src http://mirrors.ustc.edu.cn/kali kali main non-free contribdeb http://mirrors.ustc.edu.cn/kali-security...

无法定位软件包错误基本都与镜像有关,

vi /etc/apt/sources.list

需要将原来的注释掉,然后添加新源,以下为国内源列表:

# 中科大源
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://mirrors.aliyun.com/kali kali main non-free contrib
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 kali main non-free contrib
deb http://mirrors.aliyun.com/kali-security kali/updates main contrib non-free

deb-src 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-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  
# 163源
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  

源替换完后需要更新下:

sudo apt-get update

完成后再做安装即正常。

本文地址:https://blog.csdn.net/Fitz_GuangChen/article/details/108584419

相关标签: linux