Ubuntu安装软件时出现 E: Unable to locate package xxx 的解决方法

问题描述:

最近购买了一台阿里云的ECS服务器,配置的是Liunx的Ubuntu系统。在使用过程中需要安装一些软件,但总安装失败:“E: Unable to locate package XXX”(无法定位到 xxx 软件包,就是说无法找到软件源)。

解决方法:

经多次尝试和阅读资料后发现是由于软件仓库没有更新,更新之后就可以正常的安装了,操作如下:

sudo apt update
sudo apt upgrade
sudo apt install -f

猜你喜欢

转载自blog.csdn.net/qq_45807032/article/details/105209263