彻底解决Linux无法定位软件包!!!
程序员文章站
2022-06-23 21:01: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
推荐阅读
-
解决无法定位软件包 或 install net-tools
-
sudo apt install thonny 树莓派安装thonny无法定位软件包 换源
-
树莓派64位系统安装libjasper-dev显示无法定位软件包问题
-
彻底解决Linux无法定位软件包!!!
-
解决无法定位软件包 或 install net-tools
-
kali没有安装arpspoof及“E:无法定位软件包问题”、GPG错误:由于没有公钥,无法验证下列签名:NO_PUBKEY....
-
arpspoof未找到命令 或者 无法定位软件包 dsniff
-
ubuntu无法定位软件包位置(安卓修改手机定位的app推荐)
-
彻底解决Linux无法定位软件包!!!
-
树莓派64位系统安装libjasper-dev显示无法定位软件包问题