Ubuntu18.04 更改apt-get 的时候会访问的软件源列表

像这样,每次在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 删除即可, 我这样子好用了。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值