ubuntu18.04换源E: 仓库 “http://ppa.launchpad.net/v-launchpad-jochen-sprickerhof-de/pcl/ubuntu bionic Re问题
1、备份
sudo cp /etc/apt/sources.list /etc/apt/sources.list.back
2、修改源
sudo vim /etc/apt/sources.list
向打开的文件开头添加阿里源:
deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
输入
:wq
回车保存退出
3、更新
sudo apt-get update
到这里更新就完成了
但是
也可以继续进行以下两个选项:
1、安装更新。下载最新软件包,并替换系统上过时的软件。具体下载文件在目录:/var/cache/apt/archives
sudo apt-get upgrade
2、复损坏的软件包,尝试卸载出错的包,重新安装正确版本的。
sudo apt-get -f install
注:sudo apt-get update的作用是:
从软件源(也就是服务器)下载最新的软件包列表文件,更新本地软件包缓存信息(包含软件名,版本,校验值,依赖关系等)。具体下载文件在目录:/var/lib/apt/lists
4、解决E: 仓库 “http://ppa.launchpad.net/v-launchpad-jochen-sprickerhof-de/pcl/ubuntu bionic Re
1、问题打开软件“软件与更新”
2、在其他软件界面
3、将对应项取消然后关闭,会自动更新一下
4、sudo apt-get update