我一直在尝试将 Android Studio 正确安装到我的 Ubuntu 16.04 64 位机器上,但我无法解决这个问题。 Android studio 要求我们在 64 位电脑上安装一些 32 位的文件。但是当我尝试安装时,我无法解决问题。
我已经向终端提供了如此多的输入,但无法全部追踪到。但是,我确定我写了很多关于安装 lib32stdc++6 和互联网上建议的其他软件包的命令,但每次我收到错误消息时:
[ E: Unable to correct problems, you have held broken packages. The following packages have unmet dependencies: X depends Y but it won't be installed ]
编辑:输入输出示例:
***@***:~$ 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.
最佳答案
(代表 OP 发布):
我解决了这个问题。我会写一个关于解决过程的简短信息,以防其他人遇到类似情况。首先我意识到这个问题是关于 32 位库与 16.04 的不兼容。因此,我更改了系统设置 - 软件和更新中的“下载自”部分。
选择荷兰而不是您所在国家/地区的存储库,这样会很方便(我之前是土耳其)。然后只需在终端输入 sudo apt-get update 即可更新您的存储库。最后,通过键入 sudo apt-get install lib32stdc++6 安装 16.04 所需的库。毕竟,从一开始就安装Android Studio。我做了所有这些,现在 Android Studio 可以正常运行了。
关于linux - 如何将android studio的32位库正确安装到64位机器上?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37236355/