64位Ubuntu上adb库依赖出错

3
在尝试在Ubuntu 12.1机器上创建我的测试项目时:
adb install bin/opine_test-debug.apk
adb: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory

我要安装lib64ncurses(我的操作系统是64位):

sudo apt-get install lib64ncurses5
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:
 lib64ncurses5:i386 : Depends: lib64tinfo5:i386 (= 5.9-10ubuntu1) but it is not going to be installed
                      Depends: libc6-amd64:i386 (>= 2.14) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

事实证明,有问题的软件包是libc-amd64

sudo apt-get install libc6-amd64
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:
 libc6 : Conflicts: libc6-amd64:i386 but 2.15-0ubuntu20.1 is to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

我正式被难住了。这是什么样的问题?


1
你尝试过吗:apt-get install lib32ncurses5 lib32stdc++6 - powerj1984
确实是这样。我想我已经安装了一些32位库,与我试图安装的64位库不兼容。如果你把这个作为答案,我会接受它。 - Hersheezy
2个回答

10

尝试:

sudo apt-get install lib32ncurses5 lib32stdc++6


如果您也遇到了aapt的这个问题,您需要运行以下命令:sudo apt-get install zlib1g:i386 - ariets

1
*sudo apt-get install libstdc++6:i386 libgcc1:i386 zlib1g:i386 libncurses5:i386

要运行模拟器,您需要安装额外的软件包:

*sudo apt-get install libsdl1.2debian:i386

然后安装ia32-libs:

*apt-get install ia32-libs

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接