我需要在我的 64 位 Ubuntu 11.04 机器上安装并运行一些 32 位软件,因此建议我运行sudo apt-get install ia32-libs
。我得到了以下内容:
$ sudo apt-get install ia32-libs
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
lib32asound2 lib32bz2-1.0 lib32gcc1 lib32ncurses5 lib32ncursesw5
lib32stdc++6 lib32v4l-0 lib32z1 libc6-i386
Suggested packages:
lib32asound2-plugins
The following NEW packages will be installed:
ia32-libs lib32asound2 lib32bz2-1.0 lib32gcc1 lib32ncurses5 lib32ncursesw5
lib32stdc++6 lib32v4l-0 lib32z1 libc6-i386
0 upgraded, 10 newly installed, 0 to remove and 21 not upgraded.
Need to get 60.3 MB/65.2 MB of archives.
After this operation, 212 MB of additional disk space will be used.
Do you want to continue [Y/n]?
Err http://us.archive.ubuntu.com/ubuntu/ natty/universe ia32-libs amd64 20090808ubuntu13
Connection failed [IP: 172.22.140.250 8080]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/universe/i/ia32-libs/ia32-libs_20090808ubuntu13_amd64.deb Connection failed [IP: 172.22.140.250 8080]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
于是我运行,sudo apt-get update
然后sudo apt-get -m install ia32-libs
安装了除 ia32-libs 之外的所有软件包。现在我得到:
$ sudo apt-get install ia32-libs
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
ia32-libs
0 upgraded, 1 newly installed, 0 to remove and 21 not upgraded.
8 not fully installed or removed.
Need to get 60.3 MB of archives.
After this operation, 199 MB of additional disk space will be used.
Err http://us.archive.ubuntu.com/ubuntu/ natty/universe ia32-libs amd64 20090808ubuntu13
Connection failed [IP: 172.22.140.250 8080]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/universe/i/ia32-libs/ia32-libs_20090808ubuntu13_amd64.deb Connection failed [IP: 172.22.140.250 8080]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
我该如何解决此问题?
这台机器位于防火墙后面,因此这可能是问题所在。但我认为这不太可能,因为所有其他软件包都已下载,没有任何问题。
更新:现在当我运行时sudo apt-get install ia32-libs
我得到:
$ sudo apt-get install ia32-libs
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package ia32-libs is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
lib32z1 lib32ncurses5 lib32bz2-1.0 lib32asound2
E: Package 'ia32-libs' has no installation candidate
我尝试过sudo apt-get update
,但之后再次尝试时得到的结果仍然相同sudo apt-get install ia32-libs
。
ia32-libs 包真的在我上次尝试后消失了吗?或者这是我为解决上述问题而采取的措施导致的环境问题的结果?
答案1
看起来 172.22.140.250 是您的 http 代理(它位于私有 172.16.0.0/12 地址空间中)但由于某些原因您无法连接到它。
也许自从您下载其他软件包后,您的配置或代理的配置已经发生了变化,或者代理不再起作用。