【发布时间】:2016-01-19 08:23:45
【问题描述】:
尝试在 Debian 或 Ubuntu docker 映像中运行 apt-get update 时出现这个奇怪的错误:
root@60931d7602e1:/# apt-get update
Ign http://security.debian.org jessie/updates InRelease
Ign http://httpredir.debian.org jessie InRelease
Ign http://security.debian.org jessie/updates Release.gpg
Ign http://httpredir.debian.org jessie-updates InRelease
Ign http://security.debian.org jessie/updates Release
Ign http://httpredir.debian.org jessie Release.gpg
Err http://security.debian.org jessie/updates/main amd64 Packages
Ign http://httpredir.debian.org jessie-updates Release.gpg
Err http://security.debian.org jessie/updates/main amd64 Packages
Ign http://httpredir.debian.org jessie Release
Err http://security.debian.org jessie/updates/main amd64 Packages
Ign http://httpredir.debian.org jessie-updates Release
Err http://security.debian.org jessie/updates/main amd64 Packages
Err http://security.debian.org jessie/updates/main amd64 Packages
404 NOT FOUND [IP: 149.20.20.6 80]
Err http://httpredir.debian.org jessie/main amd64 Packages
404 NOT FOUND [IP: 176.9.184.93 80]
Err http://httpredir.debian.org jessie-updates/main amd64 Packages
404 NOT FOUND [IP: 176.9.184.93 80]
W: Failed to fetch http://security.debian.org/dists/jessie/updates/main/binary-amd64/Packages 404 NOT FOUND [IP: 149.20.20.6 80]
W: Failed to fetch http://httpredir.debian.org/debian/dists/jessie/main/binary-amd64/Packages 404 NOT FOUND [IP: 176.9.184.93 80]
W: Failed to fetch http://httpredir.debian.org/debian/dists/jessie-updates/main/binary-amd64/Packages 404 NOT FOUND [IP: 176.9.184.93 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.
我检查了 URL 不存在,应该是 .gz 或 .bz2 。它只发生在一台主机服务器上(运行 Ubuntu),目前在 boot2docker 和 Debian 中运行良好。
【问题讨论】:
标签: docker debian http-status-code-404 apt-get