我有几个程序需要 32 位软件包(指向 ia32-lib 软件包)。但是,当我尝试安装它时,发生了这种情况。
spirit@ubuntu:~$ sudo apt-get install ia32-libs
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
ia32-libs : Depends: ia32-libs-multiarch but it is not installable
E: Unable to correct problems, you have held broken packages.
没什么大不了的,软件包总是会死掉。然而一个月后我又试了一次,仍然出现这个错误,尝试安装特定的软件包会产生这个错误。
spirit@ubuntu:~$ sudo apt-get install ia32-libs-multiarch
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package ia32-libs-multiarch 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
E: Package 'ia32-libs-multiarch' has no installation candidate
我不是 Linux 神童,但这似乎是因为软件包不存在。我在软件中心搜索了 Skype(我被告知这会安装 32 位软件包),但它并没有出现在软件中心,而从他们的网站下载时会出现错误 - 有趣的是 - 没有 32 位软件包。
任何帮助我的人都会得到神赐的一枚奖章,其重量相当于一千颗行星。看在上帝的份上,别戴它。
答案1
听起来好像通过 WUBI 安装没有正确检测可用的外部架构。正如 tumbleweed 所建议的那样,打印外部架构可能什么也没有返回。添加 i386 作为外部架构,更新 apt 缓存,然后安装 32 位库。
sudo dpkg --add-architecture i386 && sudo apt-get update && sudo apt-get install ia32-libs
答案2
Scotty 的答案对于 12.10 非常有用,但如果您使用的是 12.04,则不dpkg
支持--add-architecture
。只需尝试:
sudo apt-get update
然后尝试安装 ia32-libs
sudo apt-get install ia32-libs
但可能最好安装元包 ia32-libs-multiarch。
答案3
从终端窗口安装 Synaptic
sudo apt-get install synaptic
启动 Synaptic 并转到“设置 > 存储库”
- 点击“其他软件 > 添加”
- 在框中插入此行
deb http://archive.ubuntu.com/ubuntu/ raring main restricted universe multiverse
- 单击确定并关闭 Synaptic
- 在终端
sudo apt-get update
- 在终端
sudo apt-get install ia32-libs
- 全新安装
答案4
软件包 ia32-libs 不可用,但被另一个软件包引用!安装错误
在安装金山办公软件时,我遇到了操作系统位版本问题(一个众所周知的错误,但没有正确的答案)The following packages have unmet dependencies: ia32-libs: Depends: ia32-libs-multiarch but it is not installed
。我尝试了大约 50 种解决方案,但都没有用。之后,我按照 ubuntu 终端说明操作,天哪,它解决了我的问题。
当我发出命令时,我收到以下消息,
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:
lib32asound2 lib32z1 lib32ncurses5 lib32bz2-1.0
之后,我尝试逐个安装上述所有 pkg,并在安装“lib32z1”后我的问题得到了解决:)
sudo apt-get install lib32z1
sudo apt-get install lib32ncurses5
sudo apt-get install lib32bz2-1.0