protonscr

you are missing the following 32 bit libraries libGL.so.1 libdrm.so.2

steamclosed Distro Family: Ubuntu
ValveSoftware/steam-for-linux#11667 · opened 2025-01-17 by Niclas302 · updated 2025-01-17 · 4 comments · github
NNiclas302 2025-01-17 github

i am trying to install steam but i got a few problems. What do I have to do?
I downloaded steam from their online website and when i press the first time the return button it installs a few packages but then an error comes up and i dont know what i should do now, i tried a few methods but none of them worked for me.
i am currently using linux mint 21.3 Cinnamon and i got only intel core integrated graphics.

Here is it in cmd what i have done:

Steam needs to install these additional packages:
libc6:amd64 libc6:i386 libegl1:amd64 libegl1:i386 libgbm1:amd64 libgbm1:i386 libgl1-mesa-dri:amd64 libgl1-mesa-dri:i386 libgl1:amd64 libgl1:i386 steam-libs-amd64:amd64 steam-libs-i386:i386

Press return to proceed with the installation:
.........
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
libegl1 is already the newest version (1.4.0-1).
libgl1 is already the newest version (1.4.0-1).
libc6 is already the newest version (2.35-0ubuntu3.8).
libgbm1 is already the newest version (23.2.1-1ubuntu3.122.04.3).
libgl1-mesa-dri is already the newest version (23.2.1-1ubuntu3.122.04.3).
libc6:i386 is already the newest version (2.35-0ubuntu3.8).
libc6:i386 set to manually installed.
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:
libgl1-mesa-dri:i386 : Depends: libelf1:i386 (>= 0.142) but it is not installable
Recommends: libgl1-amber-dri:i386 but it is not installable
E: Unable to correct problems, you have held broken packages.

Press return to continue:

Know when i press continue this tab closes and a window opens that says:
you are missing the following 32 bit libraries libGL.so.1 libdrm.so.2

Kkisak-valve maintainer 2025-01-17 github

Hello @Niclas302, this is a package manager issue, not a Steam client issue. Linux Mint inherits Debian's behavior where architecture variants of a package must have exactly the same version and the package manager strongly dislikes downgrading packages to resolve conflicts.

Apt is telling you it can't install 32 bit mesa (libgl1-mesa-dri:i386) because there's a problem with adding libelf1:i386 to your system. You can check what package versions are available with something like apt policy libelf1 libelf1:i386. Please share the output of that command.

After that I'd try to install both the 64 bit and 32 bit variants of that package at the same time and see what apt tells us with something like sudo apt install libelf1 libelf1:i386.

NOTE: While trying to get this straightened out, if apt ever asks you to remove a bunch of packages at any point, DO NOT let it proceed.

NNiclas302 2025-01-17 github

Hi @kisak-valve thx for your answer firstly here is the output of the apt policy command:

niclas@niclas-desktop:~$ apt policy libelf1 libelf1:i386
libelf1:
  Installiert:           0.188-1~bpo22.04.1
  Installationskandidat: 0.188-1~bpo22.04.1
  Versionstabelle:
 *** 0.188-1~bpo22.04.1 100
        100 http://ftp.uni-mainz.de/ubuntu jammy-backports/main amd64 Packages
        100 /var/lib/dpkg/status
     0.186-1build1 500
        500 http://ftp.uni-mainz.de/ubuntu jammy/main amd64 Packages
libelf1:i386:
  Installiert:           (keine)
  Installationskandidat: 0.186-1build1
  Versionstabelle:
     0.188-1~bpo22.04.1 100
        100 http://ftp.uni-mainz.de/ubuntu jammy-backports/main i386 Packages
     0.186-1build1 500
        500 http://ftp.uni-mainz.de/ubuntu jammy/main i386 Packages

and when i do the install command this output comes:

niclas@niclas-desktop:~$ sudo apt install libelf1 libelf1:i386
[sudo] Passwort für niclas:              
Paketlisten werden gelesen… Fertig
Abhängigkeitsbaum wird aufgebaut… Fertig
Statusinformationen werden eingelesen… Fertig
libelf1 ist schon die neueste Version (0.188-1~bpo22.04.1).
Einige Pakete konnten nicht installiert werden. Das kann bedeuten, dass
Sie eine unmögliche Situation angefordert haben oder, wenn Sie die
Unstable-Distribution verwenden, dass einige erforderliche Pakete noch
nicht erstellt wurden oder Incoming noch nicht verlassen haben.
Die folgenden Informationen helfen Ihnen vielleicht, die Situation zu lösen:

Die folgenden Pakete haben unerfüllte Abhängigkeiten:
 libelf1 : Beschädigt: libelf1:i386 (!= 0.188-1~bpo22.04.1) aber 0.186-1build1 soll installiert werden
 libelf1:i386 : Beschädigt: libelf1 (!= 0.186-1build1) aber 0.188-1~bpo22.04.1 soll installiert werden
E: Probleme können nicht korrigiert werden, Sie haben zurückgehaltene defekte Pakete.
niclas@niclas-desktop:~$ 
Kkisak-valve maintainer 2025-01-17 github

Thanks, that's telling you that the same package versions are available from the package repos. On the 64 bit side, ~~188~~ at priority 100 libelf1 is installed and the installation candidate for 32 bit is ~~186~~ at priority 500, which is not installed. Since these are not the same exact version, apt gives up and tells you there's a problem.

You need to tell apt you explicitly want the same version to be installed from both of them. ~~188~~ might be needed for other packages in jammy-backports, or it might not matter for which version to use. There's not enough information here to know, so let's assume that the higher version is the safer option and I'd run something like sudo apt install libelf1=0.188-1~bpo22.04.1 libelf1:i386=0.188-1~bpo22.04.1 to tell it to try to install that specific version for both architectures. If that locks into place, then go back to trying to start Steam, and if apt has another blocker, then repeat the process of identifying the package with the conflict, finding what package versions are available, and manually match the versions between arch variants.

NNiclas302 2025-01-17 github

@kisak-valve yesssssssss it finally works i literally spend like a whole day in this problem thank you so so much

Nothing extracted yet.