[英]Intstalling Android Studio on 64-bit version of Lubuntu fails installing some 32-bit libraries
Install Android Studio says:安装 Android Studio说:
If you are running a 64-bit version of Ubuntu, you need to install some 32-bit libraries with the following command:
如果您运行的是 64 位版本的 Ubuntu,则需要使用以下命令安装一些 32 位库:
sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386 lib32z1 libbz2-1.0:i386
The apt-get install
fails: 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'
Version info:版本信息:
$ 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
I had also the same issue but this is how i solved mine.我也有同样的问题,但这就是我解决我的问题的方法。 Installing 32-bit packages on 64-bit Linux needs you to enable or give instructions to the OS by telling it to allow installation of 32-bit packages/dependencies.
在 64 位 Linux 上安装 32 位软件包需要您通过告诉它允许安装 32 位软件包/依赖项来启用或向操作系统发出指令。 In most cases when you install 64-bit Linux it will only have the 64-bit architecture configured.
在大多数情况下,当您安装 64 位 Linux 时,它只会配置 64 位架构。 So its upon you to add 32-bit configuration.
因此,您需要添加 32 位配置。
First verify the architectures configured in your system;首先验证系统中配置的架构;
sudo dpkg --print-architecture //amd64
Second look for any other foreign architectures第二次寻找任何其他外国架构
sudo dpkg --print-foreign-architectures //response should be nothing
Now proceed to add 32-bit architecture现在继续添加 32 位架构
sudo dpkg --add-architecture i386
Verify 32-bit is added验证添加了 32 位
sudo dpkg --print-foreign-architectures //i386
Then update your packages然后更新你的包
sudo apt-get update
Now you can install your 32-bit packages现在您可以安装 32 位软件包
sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386 lib32z1 libbz2-1.0:i386
I have reported this as a documentation bug to Google Issue Tracker .我已将此作为文档错误报告给 Google 问题跟踪器。
Not addressing the apt-get install
fails but gets Android Studio installed.未解决
apt-get install
失败,但安装了 Android Studio。 Snapcraft -- The app store for Linux has How to install Android Studio on Ubuntu which says for Ubuntu 19.04 (Disco Dingo): Snapcraft -- The app store for Linux has How to install Android Studio on Ubuntu which says for Ubuntu 19.04 (Disco Dingo):
$ sudo snap install android-studio --classic
If your using ubuntu you can just go to Ubuntu Software and download it from there without having to use terminal如果您使用 ubuntu 您只需 go 到 Ubuntu 软件并从那里下载,而无需使用终端
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.