I have upgraded KDE Neon to 22.04 – based on Ubuntu Jammy and Steam wouldn’t launch anymore.
I would get APT errors such as:
libllvm12:i386 : Depends: libxml2:i386 (>= 2.7.4) but it is not installable
libllvm13:i386 : Depends: libxml2:i386 (>= 2.7.4) but it is not installable
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
Steam would complain about:
You are missing the following 32-bit libraries, and Steam may not run:
I tried multiple solutions posted online, but nothing would work. And KDE Neon disables installing these as it would break the whole system.
Solution? Downgrading libxml2:amd64!
Add i386 architecture first:
sudo dpkg –add-architecture i386
sudo apt update
sudo apt upgrade
Then run (repeat this for other conflicting libraries):
apt-cache showpkg libxml2
You should see multiple version of libxml2 available. As libxml2:i386 is only available as 2.9.13+dfsg-1ubuntu0.1 and libxml2:amd64 is in higher version such as 2.9.14+dfsg-0+ubuntu20.04.1+deb.sury.org+1, you won’t be able to install i386 version.
The solution is to downgrade amd64 version via (repeat for other lib conflicts):
sudo apt-get install libxml2=2.9.13+dfsg-1ubuntu0.1 libxml2-dev=2.9.13+dfsg-1ubuntu0.1
Then install i386 versions of libraries you are missing for Steam (add any further ones you need):
sudo apt install libxml2:i386 libgl1:i386
Optionally Steam will install these on next launch using your terminal / konsole. Just follow by pressing ENTER.