2013-05-25 50 views
3
試圖在一個Ubuntu 12.1機器上創建我的測試項目時

錯誤與64位的Ubuntu亞行庫的依賴

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

+0

確實做到了。我在想,我已經安裝了一些與我試圖安裝的64位不兼容的32位庫。如果你做出回答,我會接受它。 – Hersheezy

回答

10

嘗試:

sudo apt-get install lib32ncurses5 lib32stdc++6

+0

如果你還有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-庫:

*apt-get install ia32-libs