Unable to locate package lib32bz2-1.0

The package (32 bit) you are looking for is libbz2-1.0:i386, its 64 bit version is libbz2-1.0:amd64.

At first enable multi-arch support (if not done already):

sudo dpkg --add-architecture i386

Now run:

sudo apt-get update

You can now install the package by:

sudo apt-get install libbz2-1.0:i386

Are you triying to install Android Studio on Ubuntu?

If you say: Yes!!. This answer is for you :-).

Maybe are you triying to install android studio with this tutorial?. It has deprecated dependencies on Ubuntu 16.04.

This command has issues:

sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0 lib32stdc++6

After a few searchs on Google I found a possible solution in this post: Bad dependency on install command.

This command specifies the 32 bits version of the extra libraries that you need to setup android studio. It works for me on Ubuntu 16.04:

sudo apt-get install libz1 libncurses5 libbz2-1.0:i386 libstdc++6 libbz2-1.0

Hope it helps :-).


Try to install it manually by typing:

sudo apt-get update
sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0 lib32stdc++6

Update:

if you remove lib32bz2-1.0, it will be installed successfully.

sudo apt-get install lib32z1 lib32ncurses5 lib32stdc++6

Otherwise:

sudo dpkg --add-architecture i386

sudo apt-get update

sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0 libstdc++6:i386 libfontconfig1:i386 libxext6:i386 libxrender1:i386 libgstreamer-plugins-base0.10-0:i386