Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Intstalling Android Studio on 64-bit version of Lubuntu fails installing some 32-bit libraries

Install Android Studio says:

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

See screenshot: enter image description here

The apt-get install fails:

$ 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
like image 526
CW Holeman II Avatar asked Dec 20 '25 05:12

CW Holeman II


1 Answers

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. In most cases when you install 64-bit Linux it will only have the 64-bit architecture configured. So its upon you to add 32-bit configuration.

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

sudo dpkg --add-architecture i386

Verify 32-bit is added

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

Then update your packages

sudo apt-get update

Now you can install your 32-bit packages

sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386 lib32z1 libbz2-1.0:i386
like image 67
Wahinya Brian Avatar answered Dec 22 '25 21:12

Wahinya Brian



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!