是否可以在Ubuntu 16.04上安装32位库以进行Android开发?

时间:2016-09-07 18:52:32

标签: ubuntu ubuntu-16.04

我已经安装了Ubuntu 16.04,但是因为分发无法安装32位库sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0 lib32stdc++6而被卡住了。

我的输出是

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:
     lib32stdc++6 : Depends: gcc-5-base (= 5.4.0-6ubuntu1~16.04.2) but 5.4.0-6ubuntu1~16.04.1 is to be installed
                    Depends: lib32gcc1 (>= 1:4.2) but it is not installable
                    Depends: libc6-i386 (>= 2.18) but it is not installable
    E: Unable to correct problems, you have held broken packages.

有没有办法解决这个问题,或者我应该恢复到15.04?

1 个答案:

答案 0 :(得分:0)

您可能必须首先添加对32位软件包的支持:

sudo dpkg --add-architecture i386

然后你必须安装特定的32位版本的软件包:

sudo apt-get install libbz2-1.0:i386
相关问题