尝试安装 ia32-libs。我运行 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: lib32v4l-0 (>= 0.5.0)
E: Unable to correct problems, you have held broken packages.
我尝试过 sudo apt-get install -f、sudo apt-get update 和 sudo apt-get upgrade。我尝试过 sudo apt-get install lib32v41-0,但这也不起作用,因为找不到包。
sudo apt-get install lib32v41-0
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package lib32v41-0
关于如何安装 ia32-libs 有什么建议吗?
答案1
ia32-libs 实际上只是将 32 位库移植到 64 位的一种手段,用于等待多架构,而现在我们已经有了多架构,ia32-libs 已经过时了。现在,只要启用它,您就可以直接将 i386 软件包安装到 amd64 安装中。
我假设您现在使用的是 amd64。要验证,请运行dpkg --print-architecture
并期望它返回amd64
。然后,您可以使用检查是否i386
被列为外部体系结构dpkg --print-foreign-architectures
。如果不是,您可以使用启用 i386 dpkg --add-architecture i386
。然后apt-get update
,您可以通过附加到包名称来安装库的 i386 版本:i386
,例如,要安装 ncurses 的 i386 版本,您可以运行apt-get install libncurses5:i386
。