Linux下不能连接ppa.launchpad.net的问题(中科大软件源)
警告:操作前请先做好备份。
1. 替换ppa源成中科大源
每个ppa都会在/etc/apt/sources.list.d/
目录下创建一个list文件,修改:
vi /etc/apt/sources.list.d/ubuntu-toolchain-r-ubuntu-test-xenial.list
将文件中http://ppa.launchpad.net
替换为https://launchpad.proxy.ustclug.org
,如下所示:
deb https://launchpad.proxy.ustclug.org/ubuntu-toolchain-r/test/ubuntu xenial main
2. 更新源
sudo apt-get update