当我尝试在 Linux 上启动 steam 时出现此消息:
您缺少以下 32 位库,Steam 可能无法运行:libGL.so.1 libdrm.so.2 libdrm.so.2 libdrm.so.2
我该如何解决?
答案1
我有同样的问题,这对我有帮助: https://steamcommunity.com/app/221410/discussions/0/1736635023062287934/?l=latam
尝试这些:
# install apt-file to search for files in packages
sudo apt install apt-file
# add i386 architecture for Steam i386 libraries (32 bit required)
sudo dpkg --add-architecture i386
# update packages including i386 architecture packages
sudo apt update
# search for each missing file for i386 architecture
# (in this case searching for libGL.so.1, libdrm.so.2)
apt-file search libGL.so.1 -a i386
# On Debian the package list is:
# libgl1: /usr/lib/i386-linux-gnu/libGL.so.1
# libgl1: /usr/lib/i386-linux-gnu/libGL.so.1.7.0
# libgl1-nvidia-legacy-390xx-glx: /usr/lib/i386-linux-gnu/nvidia/legacy-390xx/libGL.so.1
# libgl1-nvidia-tesla-418-glx: /usr/lib/i386-linux-gnu/nvidia/tesla-418/libGL.so.1
# primus-libs: /usr/lib/i386-linux-gnu/primus/libGL.so.1
# In this case the required library on Debian is libgl1-nvidia-legacy-390xx-glx for NVidia hardware,
# libgl1-nvidia-tesla-418-glx if we have to NVidia Tesla (very expensive, most likely not on a user machine),
# primus-libs if we want Bumblebee Optimus with NVidia,
# libgl1 for other hardware
apt-file search libdrm.so.2 -a i386
# On Debian the package list is:
# libdrm2: /usr/lib/i386-linux-gnu/libdrm.so.2
# libdrm2: /usr/lib/i386-linux-gnu/libdrm.so.2.4.0
# In this case the required library on Debian is libdrm2
# install packages that are most likely to be needed based on what is returned previously
# For some Ubuntu, in case in the list was returned 'libgl1-nvidia-glvnd-glx' then we install it
sudo apt install libgl1-nvidia-glvnd-glx:i386
# On Debian we install the missing packages based on the previous lists (you might want other packages if it doesn't work)
# 1. For NVidia hardware without Bumblebee:
sudo apt install libgl1-nvidia-legacy-390xx-glx:i386 libdrm2:i386
# 2. For NVidia Tesla (very expensive, most likely not on a user machine):
sudo apt install libgl1-nvidia-tesla-418-glx:i386 libdrm2:i386
# 3. For NVidia hardware with Bumblebee Optimus:
sudo apt install primus-libs:i386 libdrm2:i386
# 4. For other hardware:
sudo apt install libgl1:i386 libdrm2:i386
# Reload libraries (create dynamic links for new libraries so that libGL.so.1.7.0 points to libGL.so.1, for example)
sudo ldconfig