protonscr

Steam Installation deletes the wrong packages.

steamclosed Distro Family: Ubuntu
ValveSoftware/steam-for-linux#8623 · opened 2022-06-10 by luimen6 · updated 2022-06-10 · 5 comments · github
Lluimen6 2022-06-10 github

Your system information

  • Distribution (e.g. Ubuntu): Ubuntu 22.04
  • Opted into Steam client beta?: [Yes/No] Yes
  • Have you checked for system updates?: [Yes/No] Yes

I would like to install Steam on my Ubuntu 22. 04.
However, the libxml2:i386 package is required.

But I have installed the amd64 package. If I install i386, the amd64 package will be uninstalled incl. some programs like php or apache or ubuntu-desktop etc. .

How can I install Steam without libxml2:i386?

The following packages are then always deleted. But that must not be the case:

https://gist.github.com/luimen6/197167b32b7dc7feb6f093cacdf75e5a

Kkisak-valve maintainer 2022-06-10 github

Hello @luimen6, definitely do not allow apt to break your system. Can you share the output of apt policy libxml2 libxml2:i386?

Lluimen6 2022-06-10 github

Hello @kisak-valve,

the output:

libxml2:
  Installiert:           2.9.14+dfsg-0+ubuntu20.04.1+deb.sury.org+1
  Installationskandidat: 2.9.14+dfsg-0+ubuntu20.04.1+deb.sury.org+1
  Versionstabelle:
 *** 2.9.14+dfsg-0+ubuntu20.04.1+deb.sury.org+1 500
        500 https://ppa.launchpadcontent.net/ondrej/php/ubuntu focal/main amd64 Packages
        100 /var/lib/dpkg/status
     2.9.13+dfsg-1ubuntu0.1 500
        500 http://de.archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages
     2.9.13+dfsg-1build1 500
        500 http://de.archive.ubuntu.com/ubuntu jammy/main amd64 Packages
libxml2:i386:
  Installiert:           (keine)
  Installationskandidat: 2.9.13+dfsg-1ubuntu0.1
  Versionstabelle:
     2.9.13+dfsg-1ubuntu0.1 500
        500 http://de.archive.ubuntu.com/ubuntu jammy-updates/main i386 Packages
        500 http://security.ubuntu.com/ubuntu jammy-security/main i386 Packages
     2.9.13+dfsg-1build1 500
        500 http://de.archive.ubuntu.com/ubuntu jammy/main i386 Packages
     2.9.12+dfsg-0+ubuntu20.04.1+deb.sury.org+1 500
        500 https://ppa.launchpadcontent.net/ondrej/php/ubuntu focal/main i386 Packages
Kkisak-valve maintainer 2022-06-10 github

Thanks, the issue here is that Debian's multiarch implementation requires that arch variants have exactly the same version, and it also hates to downgrade packages. Your issue is with the old packages from the ondrej/php PPA which got disabled in a unfriendly way when you upgraded from Focal to Jammy and apt can't resolve the dependency conflict across arches or there is some other PPA mis-configuration happening there.

It's strange that your system is configured to use packages intended for Focal with that PPA.

This is a general package manager issue and not a Steam client issue. One option is to ask apt to explicitly install a specific package version which is available with amd64 and i386 package variants. Something like sudo apt install libxml2=2.9.13+dfsg-1ubuntu0.1. Another option to consider is to ppa-purge to cleanly revert all the packages from that PPA back to the mainline repos, then re-adding the PPA with it looking at the Jammy packages.

Kkisak-valve maintainer 2022-06-10 github

The PPA package version mismatch is from a failed build: https://launchpad.net/~ondrej/+archive/ubuntu/php/+packages?field.name_filter=libxml

Lluimen6 2022-06-10 github

Thank you very much, I removed the php focal line and installed libxml2:i386 now and it works :)

Nothing extracted yet.