3

I have tried to install Steam on my 64-bit Ubuntu 20.04 but each time I get the following errors:

~$: sudo apt-get install steam
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:
 steam:i386 : Depends: libgl1-mesa-dri:i386 (>= 17.3) but it is not going to be installed or
                       libtxc-dxtn0:i386 but it is not installable
              Depends: libgl1-mesa-glx:i386 but it is not going to be installed
              Recommends: mesa-vulkan-drivers:i386 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

I've tried this:

~$ apt-cache policy libgl1-mesa-dri:i386 libgl1-mesa-glx:i386
libgl1-mesa-dri:i386:
  Installed: (none)
  Candidate: 20.0.4-2ubuntu1
  Version table:
     20.1~git2004290730.35ee6b~oibaf~b -1
        100 /var/lib/dpkg/status
     20.0.4-2ubuntu1 500
        500 http://us.archive.ubuntu.com/ubuntu focal/main i386 Packages
libgl1-mesa-glx:i386:
  Installed: (none)
  Candidate: 20.0.4-2ubuntu1
  Version table:
     20.0.4-2ubuntu1 500
        500 http://us.archive.ubuntu.com/ubuntu focal/main i386 Packages

And this:

$ apt policy libgl1-mesa-dri
libgl1-mesa-dri:
  Installed: 20.0.4-2ubuntu1
  Candidate: 20.0.4-2ubuntu1
  Version table:
 *** 20.0.4-2ubuntu1 500
        500 http://us.archive.ubuntu.com/ubuntu focal/main amd64 Packages
        100 /var/lib/dpkg/status

Plus this:

sudo dpkg --add-architecture i386
sudo apt-get update

And lastly, this, which returned nothing:

dpkg --get-selections | grep hold

And that hasn't helped.

Malady
  • 248

1 Answers1

1

Downgrade some packages.

As this reports, I have a higher version than recommended. As with my previous question, downgrading fixed it.

$ apt-cache policy libgl1-mesa-dri:i386 libgl1-mesa-glx:i386
libgl1-mesa-dri:i386:
  Installed: (none)
  Candidate: 20.0.4-2ubuntu1
  Version table:
     20.1~git2004290730.35ee6b~oibaf~b -1
        100 /var/lib/dpkg/status
     20.0.4-2ubuntu1 500
        500 http://us.archive.ubuntu.com/ubuntu focal/main i386 Packages

Trying to install that version of that package, leads to this:

$ sudo apt-get install libgl1-mesa-dri:i386=20.0.4-2ubuntu1
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.100) but it is not going to be installed
                        Depends: libdrm-intel1:i386 (>= 2.4.38) 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.75) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

So, I needed to downgrade all those dependent packages, try installing the above package again, and then try installing Steam again.

That did it.

Malady
  • 248
  • Can you tell how you downgraded? – r4bb1t Jul 19 '20 at 10:58
  • @PyWalker2797 -As here says, https://askubuntu.com/a/190964/412701 : "apt-get install «pkg»=«version»" Like how I had "sudo apt-get install libgl1-mesa-dri:i386=20.0.4-2ubuntu1". – Malady Jul 19 '20 at 12:52