升级Nvidia驱动后,ubuntu Steam报错

在ubuntu18.04中升级显卡驱动NVIDIA-Linux-x86_64-450.66.run之后,在运行steam会出现如下错误。

$ steam
Running Steam on ubuntu 18.04 64-bit
STEAM_RUNTIME is enabled automatically
Pins up-to-date!
Steam client's requirements are satisfied
/home/ly/.local/share/Steam/ubuntu12_32/steam
[2020-09-20 10:06:39] Startup - updater built Sep  3 2020 21:18:09
Installing breakpad exception handler for appid(steam)/version(1599174997)
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
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
Looks like steam didn't shutdown cleanly, scheduling immediate update check
Installing breakpad exception handler for appid(steam)/version(1599174997)
[2020-09-20 10:06:39] Checking for update on startup
[2020-09-20 10:06:39] 正在检查可用更新...
[2020-09-20 10:06:39] Downloading manifest: client-download.steampowered.com/client/steam_client_ubuntu12
Installing breakpad exception handler for appid(steam)/version(1599174997)
[2020-09-20 10:06:40] Download skipped: /client/steam_client_ubuntu12 version 1599174997, installed version 1599174997, downloaded version 0
[2020-09-20 10:06:40] Nothing to do
[2020-09-20 10:06:40] 正在验证安装...
[2020-09-20 10:06:40] Performing checksum verification of executable files
[2020-09-20 10:06:42] Verification complete
Loaded SDL version 2.0.13-5919606
Gtk-Message: 10:06:42.290: Failed to load module "gail"
Gtk-Message: 10:06:42.290: Failed to load module "atk-bridge"
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
Steam: An X Error occurred
X Error of failed request:  GLXBadContext
Major opcode of failed request:  151
Serial number of failed request:  48
xerror_handler: X failed, continuing
Steam: An X Error occurred
X Error of failed request:  BadValue (integer parameter out of range for operation)
Major opcode of failed request:  151
Value in failed request:  0x0
Serial number of failed request:  47
xerror_handler: X failed, continuing
Steam: An X Error occurred
X Error of failed request:  BadMatch (invalid parameter attributes)
Major opcode of failed request:  151
Serial number of failed request:  49
xerror_handler: X failed, continuing
assert_20200920100639_1.dmp[2235]: Uploading dump (out-of-process)
/tmp/dumps/assert_20200920100639_1.dmp
/home/ly/.local/share/Steam/steam.sh: 行 750:  2179 段错误               (核心已转储) $STEAM_DEBUGGER "$STEAMROOT/$STEAMEXEPATH" "$@"
ly@ly-Aspire-4750:~$ assert_20200920100639_1.dmp[2235]: Finished uploading minidump (out-of-process): success = yes
assert_20200920100639_1.dmp[2235]: response: CrashID=bp-3d7f91cf-b7c1-47cb-9ad8-b43b02200919
assert_20200920100639_1.dmp[2235]: file ''/tmp/dumps/assert_20200920100639_1.dmp'', upload yes: ''CrashID=bp-3d7f91cf-b7c1-47cb-9ad8-b43b02200919''

根据日志信息:/home/ly/.local/share/Steam/ubuntu12_32/steam,和 libGL error: No matching fbConfigs or visuals found, 在结合在github上的提问[https://github.com/ValveSoftware/steam-for-linux/issues/6517],大胆猜测同样是32bit驱动兼容问题。

解决:

  1. 列出驱动的32位版本是否安装。
$ sudo apt policy libnvidia-gl-450:i386
libnvidia-gl-450:i386:
  已安装:(无)
  候选: 450.66-0ubuntu0.18.04.1
  版本列表:
     450.66-0ubuntu0.18.04.1 500
        500 http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu bionic/main i386 Packages
  1. 安装32bit的nvidia版本。
$ sudo apt install libnvidia-gl-450:i386
正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
将会同时安装下列软件:
  libnvidia-common-450
下列【新】软件包将被安装:
  libnvidia-common-450 libnvidia-gl-450:i386
升级了 0 个软件包,新安装了 2 个软件包,要卸载 0 个软件包,有 28 个软件包未被升级。
需要下载 0 B/17.2 MB 的归档。
解压缩后会消耗 71.4 MB 的额外空间。
您希望继续执行吗? [Y/n] y
正在选中未选择的软件包 libnvidia-common-450。
(正在读取数据库 ... 系统当前共安装有 177962 个文件和目录。)
正准备解包 .../libnvidia-common-450_450.66-0ubuntu0.18.04.1_all.deb  ...
正在解包 libnvidia-common-450 (450.66-0ubuntu0.18.04.1) ...
正在选中未选择的软件包 libnvidia-gl-450:i386。
正准备解包 .../libnvidia-gl-450_450.66-0ubuntu0.18.04.1_i386.deb  ...
正在解包 libnvidia-gl-450:i386 (450.66-0ubuntu0.18.04.1) ...
正在设置 libnvidia-common-450 (450.66-0ubuntu0.18.04.1) ...
正在设置 libnvidia-gl-450:i386 (450.66-0ubuntu0.18.04.1) ...
正在处理用于 libc-bin (2.27-3ubuntu1.2) 的触发器 ...

至此,Steam可以正常运行了。

你可能感兴趣的:(升级Nvidia驱动后,ubuntu Steam报错)