Linux E: 无法定位软件包

原文链接:https://www.jianshu.com/p/16502ed02e29

参考:https://www.jianshu.com/p/16502ed02e29

更换apt源

先备份初始的 sources.list 文件(手工备份)
然后重新编辑 sources.list

cd /etc/apt/
sudo cp sources.list sources.list.bak && sudo vim sources.list

vim 中删除所有sources.list的内容,替换成以下源:

deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse

然后执行:

sudo apt update
sudo apt upgrade
上一篇:Ubuntu18.04两步纯小白傻瓜无脑式安装Caffe


下一篇:Linux新装系统简单指南