apt-get이 업데이트를 위해 저장소에 연결하지 않습니다.

apt-get이 업데이트를 위해 저장소에 연결하지 않습니다.

을 사용하면 sudo apt-get update다음과 같은 오류가 발생합니다.

Err:1 http:/archive.ubuntu.com/ubuntu xenial InRelease
  Could not connect to localhost:4001 (127.0.0.1). - connect (111: Connection refused)
Err:2 http:/archive.ubuntu.com/ubuntu xenial-security InRelease
  Unable to connect to localhost:4001:
Err:3 http:/archive.ubuntu.com/ubuntu xenial-updates InRelease
  Unable to connect to localhost:4001:
Reading package lists... 4%
(process:2389): GLib-GIO-WARNING **: Invalid proxy URI 'http:/localhost:4001 ': Invalid URI 'http:/localhost:4001 '
Reading package lists... Done
W: Failed to fetch http:/archive.ubuntu.com/ubuntu/dists/xenial/InRelease  Could not connect to localhost:4001 (127.0.0.1). - connect (111: Connection refused)
W: Failed to fetch http:/archive.ubuntu.com/ubuntu/dists/xenial-security/InRelease  Unable to connect to localhost:4001:
W: Failed to fetch http:/archive.ubuntu.com/ubuntu/dists/xenial-updates/InRelease  Unable to connect to localhost:4001:
W: Some index files failed to download. They have been ignored, or old ones used instead.

이 문제를 해결하려면 어떻게 해야 합니까?

답변1

인터넷 연결이 끊어졌거나 프록시 뒤에서 작업하고 있는 것 같습니다. 업데이트하려는 ppa 또는 해당 ppa가 더 이상 사용되지 않습니다.

프록시 뒤에 있는 경우 이 솔루션이 작동합니다. 명령줄에서 프록시를 통해 "sudo apt-get update"를 실행하는 방법은 무엇입니까?

관련 정보