E: Unable to locate package” Error on Ubuntu
解决方法:
在apt源 配置文件中插入新的搜索地址。
编辑/etc/apt/sources.list
vim /etc/apt/sources.list
插入
deb http://archive.ubuntu.com/ubuntu bionic main universe restricted multiverse
deb http://security.ubuntu.com/ubuntu/ bionic-security multiverse main restricted universe
deb http://archive.ubuntu.com/ubuntu bionic-updates multiverse main restricted universe
deb http://archive.ubuntu.com/ubuntu bionic-backports multiverse main restricted universe
执行
sudo apt-get update
sudo apt-get upgrade
再执行要安装的包
sudo apt-get install 包名