Я пытался установить Steam на 64-разрядную версию Ubuntu 20.04, но каждый раз получаю следующие ошибки:
~$: 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.
Я пробовал это:
~$ 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
И это:
$ 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
Плюс это:
sudo dpkg --add-architecture i386
sudo apt-get update
И, наконец, это, которое ничего не возвращало:
dpkg --get-selections | grep hold
И это не помогло.
Понизить версию некоторых пакетов.
Как сообщается, у меня версия выше, чем рекомендуется. Как и в моем предыдущем вопросе, исправление было исправлено.
$ 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
Попытка установить эту версию этого пакета приводит к следующему:
$ 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.
Итак, мне нужно было понизить версию всех этих зависимых пакетов, попробуйте установить вышеупомянутый пакет снова, а затем попробуйте установить Steam снова.
Это сделало это.