Unable to locate package lib32bz2-1.0

Solution 1:

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

Solution 2:

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 :-).