64位Ubuntu无法安装 lib32stdc++6问题

在Ubuntu下安装Android开发环境,一切就绪后,项目编译出现问题:

错误信息为:Cannot run program
“/home/xxxx/android/android-sdk/platform-tools/adb”: error=2,
没有那个文件或目录

原因:由于是64位的linux系统,而Android SDK只有32位的,需要安装一些支持包才能使用。安装:

sudo apt-get install lib32bz2-1.0

解决了这个问题。不过,又报了一个新的错误:编译找不到 libstdc++.so.6 文件

sudo apt-get install lib32stdc++6

继续安装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-4.8-base (= 4.8.2-19ubuntu1) but 4.8.4-2ubuntu1~14.04 is
to be installed E: Unable to correct problems, you have held broken
packages.

看起来是安装依赖出现了问题,解决办法:

sudo aptitude -f install lib32stdc++6

出现第一个Y/N选项时选N,第二个及之后选Y,一路下来即可。
问题搞定!

参考:
http://stackoverflow.com/questions/31119467/ubuntu-14-04-64bit-can-not-install-lib32stdc6

  • 3
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值