apt-get 연결 실패

apt-get 연결 실패

sudo apt-get 업데이트가 다음 오류로 인해 실패합니다.

Err:3 http://localrepo.local/ubuntu xenial/main amd64 Packages
  Connection failed
Ign:4 http://localrepo.local/ubuntu xenial/main i386 Packages
Ign:5 http://localrepo.local/ubuntu xenial/main all Packages
Ign:6 http://localrepo.local/ubuntu xenial/main Translation-en_GB
Ign:7 http://localrepo.local/ubuntu xenial/main Translation-en
Ign:8 http://localrepo.local/ubuntu xenial/restricted amd64 Packages
Ign:9 http://localrepo.local/ubuntu xenial/restricted i386 Packages
Ign:10 http://localrepo.local/ubuntu xenial/restricted all Packages
Ign:11 http://localrepo.local/ubuntu xenial/restricted Translation-en_GB
Ign:12 http://localrepo.local/ubuntu xenial/restricted Translation-en
Reading package lists... Done
W: The repository 'http://localrepo.local/ubuntu xenial Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch http://localrepo.local/ubuntu/dists/xenial/main/binary-amd64/Packages  Connection failed
E: Some index files failed to download. They have been ignored, or old ones used instead.

따라서 apt-get은 파일을 다운로드할 수 없지만 wget을 통해 다운로드할 수는 있는 것 같습니다.

$ wget http://localrepo.local/ubuntu/dists/xenial/main/binary-amd64/Packages
--2017-10-04 09:31:18--  http://localrepo.local/ubuntu/dists/xenial/main/binary-amd64/Packages
Resolving localrepo.local(localrepo.local)... 10.38.101.107
Connecting to localrepo.local (localrepo.local)|10.38.101.107|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 7228243 (6.9M)
Saving to: ‘Packages’

Packages                                                100%[===============================================================================================================================>]   6.89M  1.28MB/s    in 5.6s

2017-10-04 09:31:29 (1.23 MB/s) - ‘Packages’ saved [7228243/7228243]

문제가 무엇인지 아시나요?

편집: 언급된 질문과 답변은 사용할 수 없는 특정 저장소에 관한 것이며 질문자에게 404 오류가 발생합니다. 내 경우에는 저장소를 사용할 수 있으며 404 오류가 없습니다.

또한 다음은 오류가 아니라 경고 및 알림입니다.

W: The repository 'http://localrepo.local/ubuntu xenial Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.

오류:

Err:3 http://localrepo.local/ubuntu xenial/main amd64 Packages
  Connection failed

그리고:

E: Failed to fetch http://localrepo.local/ubuntu/dists/xenial/main/binary-amd64/Packages  Connection failed
E: Some index files failed to download. They have been ignored, or old ones used instead.

관련 정보