在64位Lubuntu上安装Android Studio失败,原因是未安装一些32位库。

11

安装 Android Studio提示:

If you are running a 64-bit version of Ubuntu, you need to install some 32-bit libraries with the following command:

sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386
lib32z1 libbz2-1.0:i386
请参考截图: enter image description here apt-get install 失败。
$ sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386 lib32z1 libbz2-1.0:i386
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package libc6:i386
E: Unable to locate package libncurses5:i386
E: Unable to locate package libstdc++6:i386
E: Couldn't find any package by regex 'libstdc++6'
E: Unable to locate package libbz2-1.0:i386
E: Couldn't find any package by glob 'libbz2-1.0'
E: Couldn't find any package by regex 'libbz2-1.0'

版本信息:

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 19.10
Release:        19.10
Codename:       eoan

$ uname -a
Linux frozen 5.3.0-18-generic #19-Ubuntu SMP Tue Oct 8 20:14:06 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
4个回答

32

我也遇到了同样的问题,但这是我解决的方法。在64位Linux上安装32位软件包需要您启用或指示操作系统允许安装32位软件包/依赖项。在大多数情况下,当您安装64位Linux时,它只会配置64位架构。因此,您需要添加32位配置。

首先验证您系统中配置的架构;

sudo dpkg --print-architecture         //amd64

再看看是否存在其他外国建筑

sudo dpkg --print-foreign-architectures      //response should be nothing

现在继续添加32位架构

sudo dpkg --add-architecture i386

确认已添加32位

sudo dpkg --print-foreign-architectures      //i386

然后更新您的软件包

sudo apt-get update
现在您可以安装32位软件包。
sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386 lib32z1 libbz2-1.0:i386

1
谢谢你啊!我投票支持了你的回答,它让我很开心。 - Armando Marques da S Sobrinho

0

0

-1
如果你使用的是Ubuntu操作系统,你可以直接前往Ubuntu软件中心进行下载,无需使用终端命令。

"it" 是什么? - CW Holeman II
你可以下载安装Android Studio。 - Barty 200YT
Lubuntu > 应用程序菜单 > 系统工具 > Muon 软件包管理器 > 搜索 > [Android Studio] 会产生一个空白列表。 - CW Holeman II

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接