lib32z1 cannot be installed on ubuntu 20.04 LTS
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
zlib (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
I am using Ubuntu 20.04 LTS. When trying to install lib32z1, I get the following error:
The following packages have unmet dependencies:
lib32z1 : Depends: libc6-i386 (>= 2.4) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
lib32z1 (https:/
Is it possible Ubuntu is asking for a version of a dependency so high that it doesn't even exist?
The reason I'm installing a 32-bit package is it's required for Android Studio installation process: https:/
---
apt-cache policy libc6-i386
libc6-i386:
Installed: (none)
Candidate: 2.31-0ubuntu9.2
Version table:
2.
500 http://
2.31-0ubuntu9 500
500 http://
apt-cache policy lib32z1
lib32z1:
Installed: (none)
Candidate: 1:1.2.11.
Version table:
1:
500 http://
1:
500 http://
lsb_release -rd
Description: Ubuntu 20.04.2 LTS
Release: 20.04
Thanks for taking your time to report this issue and help making Ubuntu better.
I was unable to reproduce this issue, in fact I could install lib32z1 without problems on my 20.04 system. I have a couple of comments though.
>lib32z1 (https:/ /packages. ubuntu. com/focal/ lib32z1) depends on libc6-i386 (>= 2.4)
Indeed.
>but the latest version of libc6-i386 I can find for Ubuntu is (..) impish
So the first thing is that when installing packages on 20.04 it will look in its archives, not other releases. So it will find version 2.31-0ubuntu9.2 from focal-updates without looking at what is available in newer releases.
Also, keep in mind that the second number in (>= 2.4) is 4 not 40. So 2.31-0ubuntu9.2 should be more that enough to satisfy this requirement because 31 > 4 :)
Despite all this I see that you still get an error message. Based on the output from `apt policy` I thought this should work. What you can try is `sudo apt update` to refresh the package list. If the problem still persists, try to see if you can install libc6-i386 directly. You may get either a more detailed error message or it will suggest to remove other packages due to conflicts. Sometimes with unmet dependencies the problem can be further down the dependency tree so it might take some drilling to discover what the problem is, for instance if it is due to conflicts with other installed packages.