安装很多软件时提示 unable to locate package
手动更换了阿里的软件源就顺畅了,速度也很快。
方法:
备份原文件
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
使用gedit打开,vi操作不太习惯
sudo gedit sudo cp /etc/apt/sources.list
全删掉,将下列内容复制进去,保存退出
deb http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse
更新源
sudo apt-get update
本文提供了解决安装软件时遇到的无法定位包的问题的方法。通过更换为阿里云的Ubuntu软件源,可以有效提升下载速度并解决包定位问题。文章详细介绍了备份原有软件源文件、替换为阿里云源及更新软件源的具体步骤。
4204

被折叠的 条评论
为什么被折叠?



