Steam installation fails

Hello!

A couple of months ago I reinstalled Zorin OS and since then steam stopped working for me. Before the reset it worked fine. Installing from the Software app and choosing the package that's for Zorin OS (I mean it says Zorin OS under the install button) it throws a error:

The following packages have unmet dependencies:
lbgl1-mesa-dri: libelf1 (>=0.142) but it is not going to be installed
Recommends: libgl1-amber-dri but is not installable

I've tried the installer from steam's official website, but nothing.
I'm using a Dell Latitude 5400 with Zorin OS 17.3 Core and everything is up to date.

Did You added any third-party Repos? Doesn't matter for what. If You not sure, post the Output of the Terminal Command sudo apt update

What are your sources, as well?

apt search libelf1
Sorting... Done
Full Text Search... Done
libelf-dev/jammy-updates,jammy-security,now 0.186-1ubuntu0.1 amd64 [installed]
libelf1 development libraries and header files

libelf1/jammy-updates,jammy-security,now 0.186-1ubuntu0.1 amd64 [installed]
library to read and write ELF files

ls /etc/apt/sources.list.d

cat /etc/apt/sources.list

I don't exactly remember, so here's the output:

sudo apt update
Hit:1 Index of /ubuntu jammy-updates InRelease
Hit:2 Index of /ubuntu jammy InRelease
Hit:3 Index of /ubuntu jammy-backports InRelease
Hit:4 Index of /ubuntu jammy-updates InRelease
Hit:5 Index of /ubuntu jammy-backports InRelease
Hit:6 Index of /repos/code/ stable InRelease
Hit:7 Index of /ubuntu jammy-security InRelease
Hit:8 Index of /tomtomtom/conky-manager/ubuntu jammy InRelease
Hit:9 Index of /zorinos/apps/ubuntu jammy InRelease
Hit:10 Index of /zorinos/drivers/ubuntu jammy InRelease
Hit:11 Index of /zorinos/patches/ubuntu jammy InRelease
Hit:13 Index of /zorinos/stable/ubuntu jammy InRelease
Hit:14 https://packages.mozilla.org/apt mozilla InRelease
Hit:12 https://hub-dist.unity3d.com/artifactory/hub-debian-prod-local stable InRelease
Hit:15 https://packages.zorinos.com/stable jammy InRelease
Hit:16 https://packages.zorinos.com/patches jammy InRelease
Hit:17 https://packages.zorinos.com/apps jammy InRelease
Hit:18 https://packages.zorinos.com/drivers jammy InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.

Here are them:

apt search libelf1

Sorting... Done
Full Text Search... Done
libelf-dev/jammy-updates,jammy-security,jammy-updates 0.186-1ubuntu0.1 amd64
libelf1 development libraries and header files

libelf1/jammy-updates,jammy-security,jammy-updates 0.186-1ubuntu0.1 i386
library to read and write ELF files

ls /etc/apt/sources.list.d

mozilla.list steam-stable.list.save unityhub.list vscode.sources zorinos-ubuntu-apps-jammy.list zorinos-ubuntu-drivers-jammy.list.save zorinos-ubuntu-stable-jammy.list
mozilla.list.save tomtomtom-ubuntu-conky-manager-jammy.list unityhub.list.save zorin.list zorinos-ubuntu-apps-jammy.list.save zorinos-ubuntu-patches-jammy.list zorinos-ubuntu-stable-jammy.list.save
steam-beta.list.save tomtomtom-ubuntu-conky-manager-jammy.list.save vscode.list.save zorin.list.save zorinos-ubuntu-drivers-jammy.list zorinos-ubuntu-patches-jammy.list.save

cat /etc/apt/sources.list

# deb cdrom:[Zorin-OS 17.2 Core 64bit]/ jammy main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://archive.ubuntu.com/ubuntu jammy main restricted
# deb-src http://ua.archive.ubuntu.com/ubuntu/ jammy main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://ua.archive.ubuntu.com/ubuntu/ jammy-updates main restricted
# deb-src http://ua.archive.ubuntu.com/ubuntu/ jammy-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://archive.ubuntu.com/ubuntu jammy universe
# deb-src http://ua.archive.ubuntu.com/ubuntu/ jammy universe
deb http://ua.archive.ubuntu.com/ubuntu/ jammy-updates universe
# deb-src http://ua.archive.ubuntu.com/ubuntu/ jammy-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu 
## team, and may not be under a free licence. Please satisfy yourself as to 
## your rights to use the software. Also, please note that software in 
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://archive.ubuntu.com/ubuntu jammy multiverse
# deb-src http://ua.archive.ubuntu.com/ubuntu/ jammy multiverse
deb http://ua.archive.ubuntu.com/ubuntu/ jammy-updates multiverse
# deb-src http://ua.archive.ubuntu.com/ubuntu/ jammy-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://ua.archive.ubuntu.com/ubuntu/ jammy-backports main restricted universe multiverse
# deb-src http://ua.archive.ubuntu.com/ubuntu/ jammy-backports main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu jammy-security main restricted
# deb-src http://security.ubuntu.com/ubuntu jammy-security main restricted
deb http://security.ubuntu.com/ubuntu jammy-security universe
# deb-src http://security.ubuntu.com/ubuntu jammy-security universe
deb http://security.ubuntu.com/ubuntu jammy-security multiverse
# deb-src http://security.ubuntu.com/ubuntu jammy-security multiverse

# This system was installed using small removable media
# (e.g. netinst, live or single CD). The matching "deb cdrom"
# entries were disabled at the end of the installation process.
# For information about how to configure apt package sources,
# see the sources.list(5) manual.
deb http://archive.ubuntu.com/ubuntu jammy-updates universe main restricted multiverse
deb http://archive.ubuntu.com/ubuntu jammy-backports universe main restricted multiverse

Interesting.

Can you try:

sudo apt --fix-broken install

sudo add-apt-repository ppa:ernstp/mesarc

sudo apt update && sudo apt full-upgrade

I ran these commands and didn't encounter any issues, but unfortunately they didn't fix the problem. Let me know if you need the output!

In terminal, what happens if you run:

sudo apt install steam

The same problem appears:

Reading package lists... Done
Building dependency tree... Done
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:
mesa-libgallium:i386 : Depends: libelf1:i386 (>= 0.142) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

it should not be requesting 32 bit packages...

Did you switch your system architecture to 32 bit during a WINE (Wine32) install?
What is your terminal output for:

dpkg --print-architecture

dpkg --list | grep i386

No, I don't think I've changed it to 32bit.

dpkg --print-architecture
amd64

dpkg --list|grep i386

ii  gcc-12-base:i386                                    12.3.0-1ubuntu1~22.04                      i386         GCC, the GNU Compiler Collection (base package)
ii  libc6:i386                                          2.35-0ubuntu3.10                           i386         GNU C Library: Shared libraries
ii  libc6-i386                                          2.35-0ubuntu3.10                           amd64        GNU C Library: 32-bit shared libraries for AMD64
ii  libcap2:i386                                        1:2.44-1ubuntu0.22.04.2                    i386         POSIX 1003.1e capabilities (library)
ii  libcom-err2:i386                                    1.46.5-2ubuntu1.2                          i386         common error description library
ii  libcrypt1:i386                                      1:4.4.27-1                                 i386         libcrypt shared library
ii  libdbus-1-3:i386                                    1.12.20-2ubuntu4.1                         i386         simple interprocess messaging system (library)
ii  libgamemode0:i386                                   1.6.1-1build2                              i386         Optimise Linux system performance on demand (host library)
ii  libgamemodeauto0:i386                               1.6.1-1build2                              i386         Optimise Linux system performance on demand (client library)
ii  libgcc-s1:i386                                      12.3.0-1ubuntu1~22.04                      i386         GCC support library
ii  libgcrypt20:i386                                    1.9.4-3ubuntu3                             i386         LGPL Crypto library - runtime library
ii  libgpg-error0:i386                                  1.43-3                                     i386         GnuPG development runtime library
ii  libgssapi-krb5-2:i386                               1.19.2-2ubuntu0.7                          i386         MIT Kerberos runtime libraries - krb5 GSS-API Mechanism
ii  libidn2-0:i386                                      2.3.2-2build1                              i386         Internationalized domain names (IDNA2008/TR46) library
ii  libk5crypto3:i386                                   1.19.2-2ubuntu0.7                          i386         MIT Kerberos runtime libraries - Crypto Library
ii  libkeyutils1:i386                                   1.6.1-2ubuntu3                             i386         Linux Key Management Utilities (library)
ii  libkrb5-3:i386                                      1.19.2-2ubuntu0.7                          i386         MIT Kerberos runtime libraries
ii  libkrb5support0:i386                                1.19.2-2ubuntu0.7                          i386         MIT Kerberos runtime libraries - Support library
ii  liblz4-1:i386                                       1.9.3-2build2                              i386         Fast LZ compression algorithm library - runtime
ii  liblzma5:i386                                       5.2.5-2ubuntu1                             i386         XZ-format compression library
ii  libnsl2:i386                                        1.3.0-2build2                              i386         Public client interface for NIS(YP) and NIS+
ii  libnss-nis:i386                                     3.1-0ubuntu6                               i386         NSS module for using NIS as a naming service
ii  libnss-nisplus:i386                                 1.3-0ubuntu6                               i386         NSS module for using NIS+ as a naming service
ii  libssl3:i386                                        3.0.2-0ubuntu1.19                          i386         Secure Sockets Layer toolkit - shared libraries
ii  libsystemd0:i386                                    249.11-0ubuntu3.16                         i386         systemd utility library
ii  libtirpc3:i386                                      1.3.2-2ubuntu0.1                           i386         transport-independent RPC library
ii  libunistring2:i386                                  1.0-1                                      i386         Unicode string library for C
ii  libzstd1:i386                                       1.4.8+dfsg-3build1                         i386         fast lossless compression algorithm

This shows that your system has been installed as 32 bit. THe most common cause of this is a user installing Wine and it claiming it needs wine32 - which if installed, sets the system packages all to 32 bit, too.

I am sorry to suggest this but...
I recommend another clean Reinstall.
This time, however, let's install steam and other things you need first, then install Wine - if you need it, without rolling your entire system to 32bit.

You can restore to 64 bit without reinstalling - but it can be tricky and dangerous - which you can tell by the long listed output of i386 packages, including critical libc6

1 Like

Thanks for the help! I think I will just reinstall Zorin OS. That's the most stable option. Also I searched for possible reasons why my system could be 32 bit and I think when I followed this tutorial on how to install forge, a command changed it.

The video: https://www.youtube.com/watch?v=tC-DxsBoliQ

There's this command: sudo apt install -y libc6-x32 libc6-i386

I'm not a linux expert so there's a high chance I'm wrong.

You are not wrong - that would indeed do it.

You have Steam stable and Steam Beta. Maybe these collide. Interestingly they are not (like others) showing in the sudo apt update Command ...

1 Like

I just installed Steam from the software store, which is a flatpack of course. Then I used Flatseal to give permissions to Steam, to utilize external drives. Since computers have been 64-bit since 2005, there was 0-reason for me to install 32-bit libraries.

I concur with the decision to reinstall Zorin OS. You will now be more careful on what you install from now on. I think after the reinstall, you'll be all set.