1

I am using Ubuntu 14.04 64bit OS and I cannot install 32 bit libraries for Android studio. It shows my packages are broken. I don't know how to install following code. It shows dependency issue.

sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
lib32bz2-1.0 : PreDepends: libc6-i386 (>= 2.9-18) but it is not going to be installed
lib32ncurses5 : Depends: lib32tinfo5 (= 5.9+20140118-1ubuntu1) but it is not going to be installed
Depends: libc6-i386 (>= 2.4) but it is not going to be installed
lib32stdc++6 : Depends: lib32gcc1 (>= 1:4.1.1) but it is not going to be installed
Depends: libc6-i386 (>= 2.17) but it is not going to be installed
lib32z1 : Depends: libc6-i386 (>= 2.4) but it is not going to be installed

Anyone can help me please.

1

You can try adding the 32bit architecture in dpkg - sudo dpkg --add-architecture i386, or you could try editing your /etc/apt/sources.list file, adding the Ubuntu 12.04 repository, and running sudo apt-get update.

  • Hi Gret Otten! Thanks for you reply. I tried 'sudo dpkg --add-architecture i386' and I also run 'sudo apt-get update' after running above command, but it would not work for me. I cannot run 'sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0 lib32stdc++6' to install 32bit binaries for Android Studio. Please help me to install android studio. – Pechi Muthu Haridas Aug 5 '16 at 5:22
  • Try running "sudo nano /etc/apt/sources.list", here you'll find the sources for Ubuntu 14.04. Copy the Universe and the Multiverse repo's, paste them at the end of the file, then modify "trusty" into "precise", then press CTRL+X, then +Y, so you it'll save up the file. Run "sudo apt-get update" afterwards, and try installing the packages again. It might not work with the trusty sources as some packages have not been updated yet, or will never be updated for newer Ubuntu versions. The same thing happened with the "lsb-core" package, 16.04 - 14.04. Hope this helps, if not, I'm here! – Gert Otten Aug 5 '16 at 15:15
  • My sources.list sources: 'deb archive.ubuntu.com/ubuntu trusty universe main restricted multiverse', 'deb-src archive.ubuntu.com/ubuntu trusty universe main restricted multiverse #Added by software-properties', 'deb archive.ubuntu.com/ubuntu precise universe main restricted multiverse', 'deb-src archive.ubuntu.com/ubuntu precise universe main restricted multiverse #Added by software-properties', after I changed my sources list then I ran 'sudo apt-get update', then I installed 'sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0 lib32stdc++6'. It wont work. – Pechi Muthu Haridas Aug 5 '16 at 16:47
  • Hi Gret! Please give me a solution to fix this issue. – Pechi Muthu Haridas Aug 5 '16 at 16:51
  • Hi Gret! Finally I found the solution from this link: 'askubuntu.com/questions/336795/ubuntu-fix-dependency-problems' its installed my dependency packages for Android Studio. Thanks for your reply! – Pechi Muthu Haridas Aug 5 '16 at 17:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.