像这样,每次在sudo apt-get update的时候会有很多访问的软件源列表,但是有的时候自己安装了一些软件比如说nordvpn,这样的时候就会自动的为我们增加apt-get的源,但是往往又会访问不成功,没有办法Hit, 虽然感觉起来也不影响啥,但是就是不太舒服,想把这个删掉。
【可能的一种方案】
sudo gedit /etc/apt/sources.list
这里面有可能的源的列表,可以查阅一下,但是这个我打开是空的并不好用。
【另外一种解决方法】
直接cd进入sources.list.d的目录,然后ll查看一下
tipriest@B:~$ cd /etc/apt/sources.list.d/
tipriest@B:/etc/apt/sources.list.d$ ll
total 56
drwxr-xr-x 2 root root 4096 Apr 21 16:54 ./
drwxr-xr-x 7 root root 4096 Apr 21 16:51 ../
-rw-r--r-- 1 root root 130 Apr 21 16:19 docker.list
-rw-r--r-- 1 root root 71 Feb 8 12:23 gazebo-stable.list
-rw-r--r-- 1 root root 190 Feb 6 15:38 google-chrome.list
-rw-r--r-- 1 root root 190 Feb 6 15:38 google-chrome.list.save
-rw-r--r-- 1 root root 144 Feb 6 15:38 graphics-drivers-ubuntu-ppa-bionic.list
-rw-r--r-- 1 root root 144 Feb 6 15:38 graphics-drivers-ubuntu-ppa-bionic.list.save
-rw-r--r-- 1 root root 193 Feb 6 15:38 microsoft-edge.list
-rw-r--r-- 1 root root 193 Feb 6 15:38 microsoft-edge.list.save
-rw-r--r-- 1 root root 0 Feb 6 15:36 nemh-ubuntu-systemback-bionic.list
-rw-r--r-- 1 root root 0 Feb 6 15:36 nemh-ubuntu-systemback-bionic.list.save
-rw-r--r-- 1 root root 51 Feb 6 15:38 ros-latest.list
-rw-r--r-- 1 root root 51 Feb 6 15:38 ros-latest.list.save
-rw-r--r-- 1 root root 203 Feb 6 15:38 vscode.list
-rw-r--r-- 1 root root 203 Feb 6 15:38 vscode.list.save
直接将不想要hit的源给 rm 删除即可, 我这样子好用了。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)