我正在尝试使用eclipse juno和android adt软件包在Ubuntu 14.04上构建一个android应用程序。现在,当我尝试运行我的应用程序时,它显示有关adb的错误。现在,为了解决该问题,我需要安装32位库,在这些库中,其中之一是libstdc++6
。当我键入以下命令时:
sudo apt-get install libstdc++6
它显示以下错误:
The following packages have unmet dependencies:
lib32stdc++6 : Depends: gcc-4.8-base (= 4.8.2-19ubuntu1) but 4.8.4-2ubuntu1~14.04 is to be installed
Depends: lib32gcc1 (>= 1:4.1.1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
编辑:
命令的输出:
sudo apt-cache policy lib32stdc++6 gcc-4.8-base lib32gcc1
如下:
lib32stdc++6:
Installed: (none)
Candidate: 4.8.2-19ubuntu1
Version table:
4.8.2-19ubuntu1 0
500 http://in.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
gcc-4.8-base:
Installed: 4.8.4-2ubuntu1~14.04
Candidate: 4.8.4-2ubuntu1~14.04
Version table:
*** 4.8.4-2ubuntu1~14.04 0
100 /var/lib/dpkg/status
4.8.2-19ubuntu1 0
500 http://in.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
lib32gcc1:
Installed: (none)
Candidate: 1:4.9-20140406-0ubuntu1
Version table:
1:4.9-20140406-0ubuntu1 0
500 http://in.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
您已gcc-4.8-base 4.8.4-2ubuntu1~14.04
通过(同时已删除)PPA或通过deb文件安装了。由于此软件包的版本高于请求的版本(= 4.8.2-19ubuntu1),因此libstdc++6
未安装该软件包。因此,通过降级强制安装正式版本:
sudo apt-get install gcc-4.8-base=4.8.2-19ubuntu1
但是此版本不是最新的可用版本。因此,请检查是否已启用trusty-updates
存储库。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句