更新到 Ubuntu 19.04 后 Steam 无法运行

Par*_*dhu 8 steam opengl drivers

我今天从 Ubuntu 18.04 更新到 19.04,但令我惊讶的是,更新后 Steam 停止工作。

从命令行运行 Steam 会出现以下错误:

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:  152 (GLX)
Minor opcode of failed request:  3 (X_GLXCreateContext)
Value in failed request:  0x0
Serial number of failed request:  51
xerror_handler: X failed, continuing
Major opcode of failed request:  152 (GLX)
Minor opcode of failed request:  6 (X_GLXIsDirect)
Serial number of failed request:  52
xerror_handler: X failed, continuing
Run Code Online (Sandbox Code Playgroud)

由于重启后问题没有解决,我用谷歌搜索,发现我的opengl驱动程序坏了。

glxinfo 的输出:

name of display: :0
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
X Error of failed request:  GLXBadContext
  Major opcode of failed request:  152 (GLX)
  Minor opcode of failed request:  6 (X_GLXIsDirect)
  Serial number of failed request:  63
  Current serial number in output stream:  62
Run Code Online (Sandbox Code Playgroud)

我做了以下尝试解决这个问题:

sudo apt install mesa-utils
sudo add-apt-repository ppa:ubuntu-x-swat/updates
sudo apt dist-upgrade
Run Code Online (Sandbox Code Playgroud)

现在,输出glxinfo | grep "OpenGL version"是:(glxgears 也可以工作)

OpenGL version string: 4.6.0 NVIDIA 430.26
Run Code Online (Sandbox Code Playgroud)

但是 Steam 仍然给出完全相同的错误。我应该如何解决这个问题?

任何帮助将不胜感激,提前致谢。

ren*_*tov 7

Steam 使用 32 位库 (i386) 而您没有它们。就我而言,我有 nvidia 390 驱动程序,所以我安装了libnvidia-gl-390:i386包并解决了问题。在您的情况下,由于您有 nvidia 430 驱动程序,这应该可以为您解决问题:

sudo apt install libnvidia-gl-430:i386
Run Code Online (Sandbox Code Playgroud)