Ubuntu 在使用add-apt-repository加过PPA之后,出现apt-get update失败

情景

在使用add-apt-repository添加一个ppa之后,发现该ppa找不到了,或者失效了,需要移除该ppa,不然每次apt-get update检查均会报错

错误截图
apt-get update 失败截图

解决办法

# 列出添加的ppa
ls /etc/apt/sources.list.d
# 移除指定的失效或者想删除的ppa
sudo rm -i /etc/apt/sources.list.d/xxxx.list

解决截图
解决办法截图


作者:Chihwei_hsu
来源:http://chihweihsu.com
Github:https://github.com/HsuChihwei

猜你喜欢

转载自blog.csdn.net/Chihwei_Hsu/article/details/81431570