protonscr

Problem installing dependencies libgl1-mesa-dri:i386 and libgl1-mesa-glx:i386 on 64bit Ubuntu

steamclosed questionSteam client
ValveSoftware/steam-for-linux#1967 · opened 2013-02-23 by benopotamus · updated 2013-02-23 · 4 comments · github
Bbenopotamus 2013-02-23 github

So I have been using Ubuntu for a while and, you know, I have always wondered what would happen if I chose to follow apt-get's instructions and get rid of unused packages by running:

sudo apt-get autoremove

Turns out it breaks things :-P

When I run Steam now it prompts me to install a couple of mesa libraries. Which I chose to do and then apt-get told me it wasn't going to install them. Output is:

Steam needs to install these additional packages: 
    libgl1-mesa-dri:i386, libgl1-mesa-glx:i386
[sudo] password for hippo: 
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-intel1:i386 (>= 2.4.38) but it is not going to be installed
                    Depends: libdrm-nouveau2:i386 (>= 2.4.34) 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.3) but it is not going to be installed
 libgl1-mesa-glx:i386 : Depends: libdrm2:i386 (>= 2.3.1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Press return to continue: 

After the package installation fails, Steam starts and everything appears to work fine (I can go to different sections and run games).

I thought about installing ia32-libs to solve things (will it?) but Syntaptic (package manager) tells me if choose to do that it will uninstall many things I like. For example: xorg and the ubuntu-gnome-desktop package.

I have tried:

  • Reinstalling Steam through Synaptic.
  • Installing the deb from the Steam website over the top of the repository installations.
  • Installing the steam64 package.
  • And removing the repository installations (both 64 and i386) and installing the deb from the Steam website again.

None of those changes made a difference.

I already had libgl1-mesa-dri and libgl1-mesa-glx installed - but I guess they are the 64 bit versions.

My system config: https://gist.github.com/MrHippo/81612bbf098cc10dc301

Sslouken 2013-02-23 github

Try upgrading your steam package? Ubuntu 12.04.2 introduced a new X stack that isn't compatible with the old glx packages. The latest steam package detects this situation and installs the new glx package.

If you want to try this yourself, do dpkg -l xorg and look for quantal lts packages. If you see those you should install glx like this:
sudo apt-get install libgl1-mesa-dri-lts-quantal:i386 libglapi-mesa-lts-quantal:i386 libgl1-mesa-glx-lts-quantal:i386

DONT DO THIS IF YOU DONT HAVE THE NEW X PACKAGES!!

Bbenopotamus 2013-02-23 github

Oh yes, I forgot to say I updated Steam from within the Steam client as well - didn't fix the problem though.

I don't see any packages with quantal in the name - though that is what I have installed (Ubuntu 12.10). Here is the output of the dpkg -l xorg command:

Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                          Version             Architecture        Description
+++-=============================-===================-===================-=====================
ii  xorg                          1:7.7+1ubuntu4      amd64               X.Org X Window System

What do you think? Should I run the apt-get command you mentioned above?

Sslouken 2013-02-23 github

No, instead try to install the other packages that it's saying it depends on, e.g.
sudo apt-get install libdrm-intel1:i386 libdrm-nouveau2:i386 libdrm-radeon1:i386 libdrm2:i386

That should give you more information about why apt won't install them.

Bbenopotamus 2013-02-23 github

Haha - well...it seems apt-get autoremove messed things up good and proper.

hippo@hippocomp:~$ sudo apt-get install libdrm-intel1:i386 libdrm-nouveau2:i386 libdrm-radeon1:i386 libdrm2: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:
 gwibber-service-identica : Depends: account-plugin-identica but it is not going to be installed
 gwibber-service-twitter : Depends: account-plugin-twitter but it is not going to be installed
 libaccount-plugin-1.0-0 : Depends: libsignon-glib1 (>= 1.1) but it is not going to be installed
                       Recommends: gnome-control-center-signon but it is not going to be installed
 openssh-client : Depends: adduser (>= 3.10) but it is not going to be installed
              Depends: passwd
 ssh : Depends: openssh-server
 telepathy-haze : Depends: libpurple0 (>= 1:2.7.0) but it is not going to be installed
 unity-webapps-service : Depends: geoclue-ubuntu-geoip but it is not going to be installed or
                              geoclue-provider
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

I will have to do more investigating - I thought it was just a Steam thing

Nothing extracted yet.