2016年3月15日星期二

解决apt-get update失败提示Unable to connect to 127.0.0.1问题

这半个月来,隔三差五的想起来一下sudo apt-get update,就是提示失败,满屏的,

Err http://ph.archive.ubuntu.com precise Release.gpg                           
  Unable to connect to ph.archive.ubuntu.com:http: [IP: X.X.X.X 80]
Err http://ph.archive.ubuntu.com precise-updates Release.gpg            
  Unable to connect to ph.archive.ubuntu.com:http: [IP: X.X.X.X 80]
。。。。。

W: Failed to fetch http://fr.archive.ubuntu.com/ubuntu/dists/precise/InRelease  
。。。。。。。。。
W: Some index files failed to download. They have been ignored, or old ones used instead.


重要提示在这里,

  ............Unable to connect to 127.0.0.1:1080:

端口是1080,看到这里我明白了些许。前段时间回国用shadowsocks来翻墙,里边的代理信息就是通过的1080端口,google了一下,我这样奇葩的问题比较少见。整理一下思路,我需要重置下1080端口,取消代理设置。

1. 删除shadowsocks配置信息,没什么卵用 -> 彻底remove掉shadowsocks,还是没什么卵用

2. 更改127.0.0.1这个DNS,用8.8.8.8,还是没什么卵用

3. 最终误打误打还是解决了问题----->

     sudo apt-get install 
   sudo apt-get autoremove


所以呢,现在正在谷歌apt-get各种命令来看...

没有评论:

发表评论