Steam has broken dependencies - Stretch [Solved]

If none of the more specific forums is the right place to ask

Steam has broken dependencies - Stretch [Solved]

Postby cdyrssen » 2018-09-29 16:00

Hello all,

Over the last couple days I have been trying to install Steam onto Debian 9 (Stretch), but have not had any luck. I have followed the wikis instructions and this tutorial https://linuxconfig.org/how-to-install-steam-client-on-debian-9-stretch-linux. Neither has been able to fully complete. Whenever I run:
Code: Select all
sudo apt install steam


I end up with these errors:
Code: Select all
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:
 steam:i386 : Depends: libgl1-mesa-dri:i386 but it is not going to be installed
              Depends: libgl1-mesa-glx:i386 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.


I have added multi-arch support via this command:
Code: Select all
dpkg --add-architecture i386

followed by
Code: Select all
sudo apt update


A force install didn't seem to accomplish anything, and after manually attempts to install these dependencies I receive similar errors:
Code: Select all
toffer@Kodia:~/Programs$ sudo apt install libgl1-mesa-dri:i386
Reading package lists... Done
Building dependency tree
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:
 libgl1-mesa-dri:i386 : Depends: libdrm-amdgpu1:i386 (>= 2.4.63) but it is not going to be installed
                        Depends: libdrm-intel1:i386 (>= 2.4.48) but it is not going to be installed
                        Depends: libdrm-nouveau2:i386 (>= 2.4.66) but it is not going to be installed
                        Depends: libdrm-radeon1:i386 (>= 2.4.31) but it is not going to be installed
                        Depends: libdrm2:i386 (>= 2.4.66) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
toffer@Kodia:~/Programs$ sudo apt install libgl1-mesa-glx:i386
Reading package lists... Done
Building dependency tree
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:
 libgl1-mesa-glx:i386 : Depends: libdrm2:i386 (>= 2.4.66) but it is not going to be installed
                        Depends: libglapi-mesa:i386 (= 13.0.6-1+b2) but it is not going to be installed
                        Recommends: libgl1-mesa-dri:i386 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.


Here is the output of my apt sources.list file:
Code: Select all
# deb cdrom:[Official Debian GNU/Linux Live 9.5.0 gnome 2018-07-14T17:01]/ stretch main

#deb cdrom:[Official Debian GNU/Linux Live 9.5.0 gnome 2018-07-14T17:01]/ stretch main

deb http://ftp.us.debian.org/debian/ stretch main contrib non-free
deb-src http://ftp.us.debian.org/debian/ stretch main

deb http://security.debian.org/debian-security stretch/updates main
deb-src http://security.debian.org/debian-security stretch/updates main

# stretch-updates, previously known as 'volatile'
deb http://ftp.us.debian.org/debian/ stretch-updates main contrib
deb-src http://ftp.us.debian.org/debian/ stretch-updates main

# stretch-backports
deb http://httpredir.debian.org/debian stretch-backports main contrib non-free

deb https://download.sublimetext.com/ apt/stable/
deb http://security.debian.org/debian-security wheezy/updates main


Any idea on how to fix these broken dependencies?
Last edited by cdyrssen on 2018-09-29 19:45, edited 1 time in total.
cdyrssen
 
Posts: 13
Joined: 2018-03-22 23:16

Re: Steam has broken dependencies - Stretch

Postby arzgi » 2018-09-29 16:05

I'm not sure, if it is the source of your problem, but why do you have wheezy in you sources list, when running stretch?
arzgi
 
Posts: 389
Joined: 2008-02-21 17:03
Location: Finland

Re: Steam has broken dependencies - Stretch

Postby cdyrssen » 2018-09-29 16:31

arzgi wrote:I'm not sure, if it is the source of your problem, but why do you have wheezy in you sources list, when running stretch?


I don't remember exactly what package was installed specifically, but I believe I needed it for a dependency of Sublime-Text? Or maybe for Spotify? I was probably following an outdated tutorial and it had me use a Wheezy source. Is there anyway I can check which packages where pulled from the Wheezy source and search for the equivalent in the Stretch source?
cdyrssen
 
Posts: 13
Joined: 2018-03-22 23:16

Re: Steam has broken dependencies - Stretch

Postby arzgi » 2018-09-29 16:47

arzgi
 
Posts: 389
Joined: 2008-02-21 17:03
Location: Finland

Re: Steam has broken dependencies - Stretch

Postby GarryRicketson » 2018-09-29 17:00

It does not matter why, the OP has mixed versions of Debian, the OP needs to read:
https://wiki.debian.org/DontBreakDebian

Is there anyway I can check which packages where pulled from the Wheezy source and search for the equivalent in the Stretch source?

Yes there is a way, and the key word here "search", you can search for: "How to check what packages were installed on a Debian system " if you need to, all you asked here is if there is a way, and there is.
How to check what packages were installed on a Debian system
First hit: https://wiki.debian.org/ListInstalledPackages

Also there are literally 1000s, of threads on this forum, quite a few rather recent, where the user has mixed in various Debian versions, and trying to install Steam, in some cases they added Ubunto PPA's , as well, nothing new here at all.
Repo mix-and-match hit parade

Side note, : Nothing wrong with Steam it's self, the problem is these folks that can not or do not read and follow instructions carefully, or start trying to install it to a system that is all ready borked with mixed up repos.
User avatar
GarryRicketson
 
Posts: 5190
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: Steam has broken dependencies - Stretch

Postby cdyrssen » 2018-09-29 17:15

GarryRicketson wrote:It does not matter why, the OP has mixed versions of Debian, the OP needs to read:
https://wiki.debian.org/DontBreakDebian

Is there anyway I can check which packages where pulled from the Wheezy source and search for the equivalent in the Stretch source?

Yes there is a way, and the key word here "search", you can search for: "How to check what packages were installed on a Debian system " if you need to, all you asked here is if there is a way, and there is.
How to check what packages were installed on a Debian system
First hit: https://wiki.debian.org/ListInstalledPackages

Also there are literally 1000s, of threads on this forum, quite a few rather recent, where the user has mixed in various Debian versions, and trying to install Steam, in some cases they added Ubunto PPA's , as well, nothing new here at all.
Repo mix-and-match hit parade

Side note, : Nothing wrong with Steam it's self, the problem is these folks that can not or do not read and follow instructions carefully, or start trying to install it to a system that is all ready borked with mixed up repos.


Thanks for the link, but that does not tell me which source the package was installed from, just a list of packages. I would like to be able to identify which packages come from a specific source. Maybe you should read the question being asked more carefully.
cdyrssen
 
Posts: 13
Joined: 2018-03-22 23:16

Re: Steam has broken dependencies - Stretch

Postby stevepusser » 2018-09-29 17:15

Just to check, what architecture are you running?

There was just someone on Reddit that posted almost the exact same problem, but they were running on an ARM 64 platform, and thought that just by adding the i386 arch, they'd be able to run the Steam i386 binaries on ARM64.

P.S. You can sort packages by origin in Synaptic.
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Flightgear 2018.2.2, tlp-ui, wine-staging 3.21, Pale Moon 28.2.2, Mesa 18.2.6, Midori 7.0
User avatar
stevepusser
 
Posts: 10272
Joined: 2009-10-06 05:53

Re: Steam has broken dependencies - Stretch

Postby cdyrssen » 2018-09-29 17:23

stevepusser wrote:Just to check, what architecture are you running?

There was just someone on Reddit that posted almost the exact same problem, but they were running on an ARM 64 platform, and thought that just by adding the i386 arch, they'd be able to run the Steam i386 binaries on ARM64.

P.S. You can sort packages by origin in Synaptic.


It is an intel i7 cpu, so not ARM.

I am looking in synaptic package manager and I still can't see where it says any package is from a wheezy source.
cdyrssen
 
Posts: 13
Joined: 2018-03-22 23:16

Re: Steam has broken dependencies - Stretch

Postby cdyrssen » 2018-09-29 17:58

arzgi wrote:I'm not sure, if it is the source of your problem, but why do you have wheezy in you sources list, when running stretch?


After searching through my console and browser history I have determined the wheezy source was used to install spotify-client. I was following this tutorial from spotify.
https://community.spotify.com/t5/Newcomers-and-Contribution/How-to-Install-Spotify-in-Debian-Linux/td-p/1675400

I have since removed spotify-client and its dependencies with:
Code: Select all
sudo apt remove spotify-client && sudo apt autoremove


Afterwards, I removed the wheezy source from my sources.list file ran
Code: Select all
sudo apt update


Once that was completed. I reinstalled using the stretch source. Were these steps sufficient in cleaning my system of any packages installed from the wheezy source?

Also, if the above steps were sufficient, they did not seem to fix my problem with installing steam. I still run into the same broken packages error.
cdyrssen
 
Posts: 13
Joined: 2018-03-22 23:16

Re: Steam has broken dependencies - Stretch

Postby stevepusser » 2018-09-29 18:45

This error message of yours:
Code: Select all
The following packages have unmet dependencies:
 libgl1-mesa-dri:i386 : Depends: libdrm-amdgpu1:i386 (>= 2.4.63) but it is not going to be installed


Shows you need to keep trying to install the missing package that's next down the ladder until you get to the one that's really causing the issue. So, show us the result of
Code: Select all
apt-get install libdrm-amdgpu1:i386


Edit: It might be that you've upgraded these Mesa-related packages from stretch-backports since you have that enabled; if so, you have to also specify the matching upgraded i386 versions from stretch-backports be installed, usually with the "-t stretch-backports" flag.
Last edited by stevepusser on 2018-09-29 18:52, edited 1 time in total.
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Flightgear 2018.2.2, tlp-ui, wine-staging 3.21, Pale Moon 28.2.2, Mesa 18.2.6, Midori 7.0
User avatar
stevepusser
 
Posts: 10272
Joined: 2009-10-06 05:53

Re: Steam has broken dependencies - Stretch

Postby cdyrssen » 2018-09-29 18:52

stevepusser wrote:This error message of yours:
Code: Select all
The following packages have unmet dependencies:
 libgl1-mesa-dri:i386 : Depends: libdrm-amdgpu1:i386 (>= 2.4.63) but it is not going to be installed


Shows you need to keep trying to install the missing package that's next down the ladder until you get to the one that's really causing the issue. So, show us the result of
Code: Select all
apt-get install libdrm-amdgpu1:i386


Before I run your suggested command, I would like to point out, I have no AMD hardware present in my machine. The gpu is a nVidia gtx 1050ti from PNY. I have already installed the nvidia drivers via the following command:
Code: Select all
sudo apt install nvidia-driver


Currently I have version 390.87-2~bpo9+1 installed.
cdyrssen
 
Posts: 13
Joined: 2018-03-22 23:16

Re: Steam has broken dependencies - Stretch

Postby stevepusser » 2018-09-29 18:54

Did you upgrade those Mesa related packages from stretch-backports also?

Code: Select all
apt policy libgl1-mesa-dri
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Flightgear 2018.2.2, tlp-ui, wine-staging 3.21, Pale Moon 28.2.2, Mesa 18.2.6, Midori 7.0
User avatar
stevepusser
 
Posts: 10272
Joined: 2009-10-06 05:53

Re: Steam has broken dependencies - Stretch

Postby cdyrssen » 2018-09-29 18:56

stevepusser wrote:Did you upgrade those Mesa related packages from stretch-backports also?

Code: Select all
apt policy libgl1-mesa-dri


This is the output I received
Code: Select all
libgl1-mesa-dri:
  Installed: 13.0.6-1+b2
  Candidate: 13.0.6-1+b2
  Version table:
     18.1.6-1~bpo9+1 100
        100 http://httpredir.debian.org/debian stretch-backports/main amd64 Packages
 *** 13.0.6-1+b2 500
        500 http://ftp.us.debian.org/debian stretch/main amd64 Packages
        500 http://deb.debian.org/debian stretch/main amd64 Packages
        100 /var/lib/dpkg/status


So if I'm understanding you correctly I should install via the command?
Code: Select all
sudo apt -t stretch-backports install libgl1-mesa-dri
cdyrssen
 
Posts: 13
Joined: 2018-03-22 23:16

Re: Steam has broken dependencies - Stretch

Postby cdyrssen » 2018-09-29 19:14

I went ahead and ran the following commands and they seemed to have fixed my issues as steam has now successfully installed via apt.

Code: Select all
sudo apt -t stretch-backports install libgl1-mesa-dri:i386
sudo apt -t stretch-backports install libgl1-mesa-glx:i386


However, after I try to run steam and wait for it to update it launches with this error:
Code: Select all
You are missing the following 32-bit libraries, and Steam may not run:
libGL.so.1
Press enter to continue:


After pressing enter another error window pops up stating:
Code: Select all
Fatal Error: Failed to load steamui.so


Opening steam from command line yields similar errors:
Code: Select all
toffer@Kodia:/etc/ld.so.conf.d$ steam
Running Steam on debian 9 64-bit
STEAM_RUNTIME is enabled automatically
Pins up-to-date!
Error: You are missing the following 32-bit libraries, and Steam may not run:
libGL.so.1
[2018-09-29 15:14:26] Startup - updater built Sep  8 2018 19:20:58
Looks like steam didn't shutdown cleanly, scheduling immediate update check
[2018-09-29 15:14:26] Checking for update on startup
[2018-09-29 15:14:26] Checking for available updates...
[2018-09-29 15:14:27] Download skipped: /client/steam_client_ubuntu12 version 1536436120, installed version 1536436120
[2018-09-29 15:14:27] Nothing to do
[2018-09-29 15:14:27] Verifying installation...
[2018-09-29 15:14:27] Performing checksum verification of executable files
[2018-09-29 15:14:27] Verification complete
[2018-09-29 15:14:32] Shutdown
cdyrssen
 
Posts: 13
Joined: 2018-03-22 23:16

Re: Steam has broken dependencies - Stretch

Postby cdyrssen » 2018-09-29 19:44

The final step I took to get steam started with no errors was:
Code: Select all
sudo apt install libgl1-nvidia-glx:i386


This step was found here:
https://wiki.debian.org/Steam

Thanks for guidance and pointing in me the right direction. The issue has now been solved.
cdyrssen
 
Posts: 13
Joined: 2018-03-22 23:16


Return to General Questions

Who is online

Users browsing this forum: No registered users and 4 guests

fashionable