![更新 nvidia 驱动程序 Ubuntu 20.04 后 Steam 无法运行](https://linux22.com/image/938687/%E6%9B%B4%E6%96%B0%20nvidia%20%E9%A9%B1%E5%8A%A8%E7%A8%8B%E5%BA%8F%20Ubuntu%2020.04%20%E5%90%8E%20Steam%20%E6%97%A0%E6%B3%95%E8%BF%90%E8%A1%8C.png)
我有 nvidia-450 驱动程序,一切运行正常。今天我更新了操作系统,之后 steam 就无法使用了。
Running Steam on ubuntu 20.04 64-bit
STEAM_RUNTIME is enabled automatically
Pins up-to-date!
Steam client's requirements are satisfied
WARNING: Using default/fallback debugger launch
/home/ilys/.steam/ubuntu12_32/steam -nominidumps -nobreakpad
[2021-06-16 16:28:49] Startup - updater built Jun 16 2021 05:25:53
[2021-06-16 16:28:49] Opted in to client beta 'publicbeta' via beta file
You are in the 'publicbeta' client beta.
SteamUpdateUI: An X Error occurred
X Error of failed request: GLXBadContext
SteamUpdateUI: An X Error occurred
X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 151 (GLX)
Minor opcode of failed request: 3 (X_GLXCreateContext)
Value in failed request: 0x0
Serial number of failed request: 45
xerror_handler: X failed, continuing
Major opcode of failed request: 151 (GLX)
Minor opcode of failed request: 6 (X_GLXIsDirect)
Serial number of failed request: 46
xerror_handler: X failed, continuing
所以我重新安装了所有新驱动程序
sudo apt install nvidia-driver-460 --reinstall`
sudo apt install nvidia-dkms-460 --reinstall
sudo apt install libnvidia-gl-460 --reinstall
sudo apt install libnvidia-common-460 --reinstall
nvidia-smi
Wed Jun 16 16:33:46 2021
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 460.80 Driver Version: 460.80 CUDA Version: 11.2 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|===============================+======================+======================|
| 0 GeForce GTX 1060 Off | 00000000:01:00.0 On | N/A |
| N/A 48C P8 7W / N/A | 433MiB / 6069MiB | 6% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| 0 N/A N/A 1348 G /usr/lib/xorg/Xorg 35MiB |
| 0 N/A N/A 2119 G /usr/lib/xorg/Xorg 117MiB |
| 0 N/A N/A 2287 G /usr/bin/kwin_x11 36MiB |
| 0 N/A N/A 2295 G /usr/bin/plasmashell 60MiB |
| 0 N/A N/A 2773 G /usr/lib/firefox/firefox 171MiB |
+-----------------------------------------------------------------------------+
我在一个主题中读到使用 STEAM_RUNTIME=0 steam 运行
Running Steam on ubuntu 20.04 64-bit
STEAM_RUNTIME is disabled by the user
Error: You are missing the following 32-bit libraries, and Steam may not run:
libXtst.so.6
libgtk-x11-2.0.so.0
libpipewire-0.3.so.0
我有所有这些包裹
重新安装了 steam。但没什么用。我不知道该怎么办。
答案1
这是一个众所周知的错误,正如所报告的Linux 版 Steam。
我想知道为什么你使用 460 驱动程序,而 465 驱动程序可用。但是,尝试安装以下库
sudo apt install libnvidia-gl-460:i386
否则检查 apt-policy
apt-cache policy libnvidia-gl-460 libnvidia-gl-460:i386
如果这不起作用,请从以下 ppa 安装新的驱动程序
sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt update
sudo apt install nvidia-driver-465 libnvidia-gl-465 libnvidia-gl-465:i386
顺便说一句,重新安装 steam 是个聪明的做法。