如何将64位android工作室库正确安装到64位机器上?

时间:2016-05-15 09:01:42

标签: linux ubuntu android-studio terminal

我一直在尝试将Android Studio正确安装到我的Ubuntu 16.04 64位计算机上,但我无法解决这个问题。 Android studio要求我们将一些32位文件安装到64位计算机上。但是当我尝试安装时,我无法解决问题。

我已经给终端提供了很多输入,但无法全部跟踪它们。但是,我确信我在安装lib32stdc ++ 6和其他已在互联网上建议的软件包上写了很多命令,但每次收到错误信息时都会这样:

  

[E:无法纠正问题,你已经破了包裹。以下包具有未满足的依赖关系:X取决于Y但不会安装]

编辑:输入&输出示例:

***@***:~$ sudo apt-get install 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.3.1-13ubuntu6) but 5.3.1-14ubuntu2 is to be installed
                Depends: lib32gcc1 (>= 1:4.2) but it is not going to be installed
                Depends: libc6-i386 (>= 2.18) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

1 个答案:

答案 0 :(得分:2)

(代表OP发布):

我解决了这个问题。我会写一个关于解决方案过程的简要信息,以防其他人遇到类似情况。首先,我意识到这个问题是关于32位库与16.04的不兼容性。因此,我更改了系统设置 - 软件和更新中的“下载”部分。

选择荷兰代替您所在国家/地区的回购,这样会很方便(我以前是土耳其)。然后只需在终端输入 sudo apt-get update 即可更新您的回购。最后,通过键入 sudo apt-get install lib32stdc ++ 6 安装16.04所需的库。毕竟,从一开始就安装Android Studio。我做了所有这些,现在Android Studio正常运行。

相关问题