apt-get在i386 / debian docker映像上失败

时间:2018-07-04 14:32:50

标签: docker apt

我有一台32位的Ubuntu服务器,运行17.10 Artful&并安装了docker.io(我的理解是这是唯一适用于32位的版本)

jonny@grizzly ~ $ lsb_release -cs
artful
jonny@grizzly ~ $ apt list | grep docker.io

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

4384:docker.io/artful,now 1.13.1-0ubuntu6 i386 [installed]

我正在尝试使用i386/debian图像(我也尝试过32bit/Ubuntu并获得相似的结果),但是apt-get遇到了问题。来源似乎配置合理,但是apt-get update收到404错误。从浏览器中击中相同的URL(附加.gz)可以正常工作。 ping在Docker映像中工作,wgetcurl不可用,因此无法进一步诊断可能的网络问题。

jonny@grizzly ~ $ docker run -it i386/debian /bin/bash
root@1023ad95222c:/# more /etc/apt/sources.list
deb http://deb.debian.org/debian stretch main
deb http://security.debian.org/debian-security stretch/updates main
deb http://deb.debian.org/debian stretch-updates main
root@1023ad95222c:/# apt-get update
Ign:1 http://security.debian.org/debian-security stretch/updates InRelease
Ign:2 http://security.debian.org/debian-security stretch/updates Release
Ign:3 http://deb.debian.org/debian stretch InRelease
Ign:4 http://deb.debian.org/debian stretch-updates InRelease
Ign:5 http://deb.debian.org/debian stretch Release
Ign:6 http://security.debian.org/debian-security stretch/updates/main all Packages
Ign:7 http://security.debian.org/debian-security stretch/updates/main i386 Packages
Ign:6 http://security.debian.org/debian-security stretch/updates/main all Packages
Ign:7 http://security.debian.org/debian-security stretch/updates/main i386 Packages
Ign:8 http://deb.debian.org/debian stretch-updates Release
Ign:6 http://security.debian.org/debian-security stretch/updates/main all Packages
Ign:7 http://security.debian.org/debian-security stretch/updates/main i386 Packages
Ign:9 http://deb.debian.org/debian stretch/main all Packages
Ign:6 http://security.debian.org/debian-security stretch/updates/main all Packages
Ign:10 http://deb.debian.org/debian stretch/main i386 Packages
Ign:11 http://deb.debian.org/debian stretch-updates/main i386 Packages
Ign:12 http://deb.debian.org/debian stretch-updates/main all Packages
Ign:7 http://security.debian.org/debian-security stretch/updates/main i386 Packages
Ign:9 http://deb.debian.org/debian stretch/main all Packages
Ign:6 http://security.debian.org/debian-security stretch/updates/main all Packages
Ign:10 http://deb.debian.org/debian stretch/main i386 Packages
Ign:7 http://security.debian.org/debian-security stretch/updates/main i386 Packages
Ign:11 http://deb.debian.org/debian stretch-updates/main i386 Packages
Ign:6 http://security.debian.org/debian-security stretch/updates/main all Packages
Ign:12 http://deb.debian.org/debian stretch-updates/main all Packages
Err:7 http://security.debian.org/debian-security stretch/updates/main i386 Packages
  404   [IP: 212.211.132.250 80]
Ign:9 http://deb.debian.org/debian stretch/main all Packages
Ign:10 http://deb.debian.org/debian stretch/main i386 Packages
Ign:11 http://deb.debian.org/debian stretch-updates/main i386 Packages
Ign:12 http://deb.debian.org/debian stretch-updates/main all Packages
Ign:9 http://deb.debian.org/debian stretch/main all Packages
Ign:10 http://deb.debian.org/debian stretch/main i386 Packages
Ign:11 http://deb.debian.org/debian stretch-updates/main i386 Packages
Ign:12 http://deb.debian.org/debian stretch-updates/main all Packages
Ign:9 http://deb.debian.org/debian stretch/main all Packages
Ign:10 http://deb.debian.org/debian stretch/main i386 Packages
Ign:11 http://deb.debian.org/debian stretch-updates/main i386 Packages
Ign:12 http://deb.debian.org/debian stretch-updates/main all Packages
Ign:9 http://deb.debian.org/debian stretch/main all Packages
Err:10 http://deb.debian.org/debian stretch/main i386 Packages
  404   [IP: 130.89.148.14 80]
Err:11 http://deb.debian.org/debian stretch-updates/main i386 Packages
  404   [IP: 130.89.148.14 80]
Ign:12 http://deb.debian.org/debian stretch-updates/main all Packages
Reading package lists... Done
W: The repository 'http://security.debian.org/debian-security stretch/updates 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.
W: The repository 'http://deb.debian.org/debian stretch 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.
W: The repository 'http://deb.debian.org/debian stretch-updates 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://security.debian.org/debian-security/dists/stretch/updates/main/binary-i386/Packages  404   [IP: 212.211.132.250 80]
E: Failed to fetch http://deb.debian.org/debian/dists/stretch/main/binary-i386/Packages  404   [IP: 130.89.148.14 80]
E: Failed to fetch http://deb.debian.org/debian/dists/stretch-updates/main/binary-i386/Packages  404   [IP: 130.89.148.14 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.

我尝试了在网上找到的各种不同的镜子,没有区别。我还尝试了i386/debian docker映像的一些不同版本/标签。该服务器上没有用于访问Internet的代理。我在这里可能还缺少其他步骤吗?

0 个答案:

没有答案