Err:1 http://us.archive.ubuntu.com/ubuntu cosmic InRelease
Could not connect to 127.0.0.1:8118 (127.0.0.1). - connect (111: Connection refused)
Err:2 http://us.archive.ubuntu.com/ubuntu cosmic-proposed InRelease
Unable to connect to 127.0.0.1:8118:
Err:3 http://us.archive.ubuntu.com/ubuntu cosmic-updates InRelease
Unable to connect to 127.0.0.1:8118:
Err:4 http://us.archive.ubuntu.com/ubuntu cosmic-backports InRelease
Unable to connect to 127.0.0.1:8118:
Err:5 http://archive.canonical.com/ubuntu trusty InRelease
Could not connect to 127.0.0.1:8118 (127.0.0.1). - connect (111: Connection refused)
Err:6 http://archive.canonical.com/ubuntu bionic InRelease
Unable to connect to 127.0.0.1:8118:发布于 2019-03-06 17:10:00
无法连接到127.0.0.1:8118:
这表明您已经配置了某种类型的代理。该代理是脱机的,无法到达,而且由于apt被配置为通过该代理(也就是脱机的),所以不能下载包。
您需要深入了解您的/etc/apt/apt.conf.d/*设置文件,以查看在何处定义了代理,并尝试禁用代理需求;如果它仍然无法工作,则需要确定是否必须运行该代理才能访问整个Internet以进行更新、互联网流量等。
https://askubuntu.com/questions/1123532
复制相似问题