linux - 如何将android studio的32位库正确安装到64位机器上?

标签 linux ubuntu android-studio terminal

我一直在尝试将 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/

相关文章:

java - 无法编辑外部库文件 - 在 Android Studio 中显示为锁定

使用 argp 库完全隐藏选项

linux - 如何在测试服务器上创建 git 存储库的虚拟副本

java - 哪个操作系统更适合开发 : Debian or Ubuntu?

ruby-on-rails - 安装 rails 3

python - cx_Freeze :Fatal Python error: Py_Initialize: Unable to get the locale encoding ImportError: No module named 'encodings'

android - 在 Android 中绘制 3D 数学函数

java - 启动 android studio 时出错

linux - 如果权限低于 666,Gunicorn 无法写入日志文件

无法从 Makefile 链接静态库