【发布时间】:2016-05-15 09:01:41
【问题描述】:
我一直在尝试将 Android Studio 正确安装到我的 Ubuntu 16.04 64 位机器上,但我无法解决这个问题。 Android studio 要求我们在 64 位电脑上安装一些 32 位的文件。但是当我尝试安装时,我无法解决问题。
我已经向终端提供了这么多输入,但无法全部追踪。但是,我确信我写了很多关于安装 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.
【问题讨论】:
-
嗯,
you have held broken packages让我认为您的系统在尝试安装之前处于非理想安装状态。您是否可以尝试使用 Ubuntu 16.04 的干净副本将其安装在虚拟机上(例如在 VirtualBox 中)? -
嘿@halfer,实际上我解决了这个问题。 (剧透:这与 32 位库与 16.04 的不兼容性有关)我将在几分钟内通过编辑来解释它,无论如何谢谢...
-
您应该添加一个答案,而不是编辑您在问题中找到的答案。另外请不要在您的标题中添加“(已解决)”,一旦您将答案标记为已接受,那么问题将得到解决。
-
酷,感谢更新!我已将答案移至下方,因此它遵循问答格式。
标签: linux ubuntu android-studio terminal