在sudo apt-get update时出现错误
解决方法一:
1、安装npm
sudo apt-get install npm
2、下载安装http代理
npm i -g http-proxy-to-socks
3、使用代理
sudo apt-get -oAcquire::Http::Proxy= update
成功!
这种方法在我第一次使用使成功了,但是第二次使用时安装http代理一直错误
不知道原因
于是查找资料,尝试了第二种方法
原文链接
解决方法二:
原文链接
将对应的ppa删除即可
1、切换到对应的ppa目录
cd /etc/apt/sources.list.d
2、在该目录下ls,即可以看到对应的无法下载的ubuntugis-ubuntu-ppa-xenial.list buntugis-ubuntu-ppa-xenial.list,删除该.list即可(安全