“取决于:ia32-libs-multiarch但它不可安装”-解决方案


8

我在12.10上注意到了这一点,试图使Android SDK正常运行。对于64位版本,需要安装:

sudo apt-get install ia32-libs

但是,在64位12.10下,出现以下错误:

The following packages have unmet dependencies:
 ia32-libs : Depends: ia32-libs-multiarch but it is not installable

> 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

Answers:


13

我在这里找到解决方案的评论#27,

sudo dpkg --add-architecture i386
sudo apt-get update 
sudo apt-get install ia32-libs

然后32位库安装正常(无论如何对我来说!)。希望这对某人有帮助!


9
现在,此解决方案已过时: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
Mike

3
dpkg:错误:未知选项--add-architecture
bancer 2014年

sudo apt-file -a i386更新; sudo apt文件更新;为$(<libs.txt)中的f; 做测试-f“ / lib / i386-linux-gnu / $ f” || 测试-f“ / usr / lib / i386-linux-gnu / $ f” || {echo -n“ $ f:”; ps =($(apt-file -a i386 -x search“ / $ f \ $” | sed -e's /([[^:] *):。* / \ 1 / g')); 回声“ $ {ps [@]}”; }; #从上面脚本的输出中复制所需的包名称并将其粘贴到下面的libs变量中。libs = {foo bar baz); sudo apt-get install“ $ {libs [@] /%/:i386}”
eel ghEEz 2015年

@bancer-您需要升级dpkg:sudo apt-get update && sudo apt-get install --only-upgrade dpkg
马特

0

正如您通过评论看到的那样,已接受的答案不再起作用。我在其他地方找到了可行的解决方案:

sudo dpkg --add-architecture i386

sudo add-apt-repository "deb http://archive.canonical.com/ $(lsb_release -sc) partner"

sudo apt-get update && sudo apt-get install skype

链接在这里


仍然对我不起作用...自从您回答以来,它可能又改变了
redbmk 16-4-8
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.