简体   繁体   English

在 64 位版本的 Lubuntu 上安装 Android Studio 无法安装一些 32 位库

[英]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

See screenshot:看截图: 在此处输入图像描述

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

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.

相关问题 在 64 位 android 上使用 32 位 jni 库 - Use 32-bit jni libraries on 64-bit android 如何在64位Android设备上使用32位本机库 - How to use 32-bit native libraries on 64-bit Android device DS-5版,用于使用Arm 64位和32位本机库开发和调试Android应用 - DS-5 edition to develop and debug Android Apps with Arm 64-bit and 32-bit native libraries Android JNI:与64位设备具有32位兼容性吗? - Android JNI: 32-bit compatability with 64-bit devices? 将 32 位 android 应用程序转换为 64 位应用程序 - Converting 32-bit android Applications to 64-bit Applications Android Studio 64位错误:32位Linux Android模拟器二进制文件已弃用 - Android Studio 64-bit ERROR: 32-bit Linux Android emulator binaries are DEPRECATED 更新的64位Xamarin Android应用程序被旧的32位版本覆盖 - Updated 64-Bit Xamarin Android App gets overridden by old 32-Bit version 如果我从我的Android应用程序中排除所有64位库,它将完全以32位模式运行吗? - If I exclude all 64-bit libraries from my android app, will it run entirely in a 32-bit mode? AOSP 4.2.2:无法在64位JVM上加载32位SWT库 - AOSP 4.2.2: Cannot load 32-bit SWT libraries on 64-bit JVM 正确的是,适用于64位的android sdk的可执行文件显示了一些有关32位的信息吗? - Is it right that android sdk for 64-bit has it's executable file shows some info about 32-bit?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM