无法使用 nvidia-drivers-465 加载 swast

无法使用 nvidia-drivers-465 加载 swast

当尝试加载蒸汽时它立即崩溃。

在终端运行 steam 这行似乎是一个问题:

Gtk-Message: Failed to load module "gail" Gtk-Message: Failed to load module "atk-bridge"

(steam:6811): Gtk-WARNING **: Unable to locate theme engine in module_path: "adwaita",
/usr/share/themes/Adwaita/gtk-2.0/main.rc:733: error: unexpected identifier `direction', expected character `}'

(steam:6811): Gtk-WARNING **: Unable to locate theme engine in module_path: "adwaita",
/usr/share/themes/Adwaita/gtk-2.0/hacks.rc:28: error: invalid string constant "normal_entry", expected valid string constant
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:  52
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:  51
xerror_handler: X failed, continuing
Steam: An X Error occurred
X Error of failed request:  BadMatch (invalid parameter attributes)

安装此修复该问题:

sudo apt install libnvidia-gl-465:i386

但是它删除了:libnvidia-gl-465 libnvidia-ifr1-465 nvidia-driver-465

导致游戏无法玩。(有点违背初衷,对吧?)

我在尝试让 TensorFlow 与我的 gpu(Nvidia 1070)一起工作时遇到了这个问题,现在它可以工作了,但我在不进行机器学习时还想玩游戏。

uname -a返回

Linux codedcosmos-UBUNTU 5.8.0-53-generic #60~20.04.1-Ubuntu SMP Thu May 6 09:52:46 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

Ubuntu 20.04.2 LTS

如果你能帮忙

谢谢你,我很感激你

https://www.reddit.com/r/Ubuntu/comments/nr8lnx/unable_to_load_swast_with_nvidiadrivers465/

答案1

以下步骤对我有用:

  1. 删除 nvidia 存储库,如 developer.download.nvidia.com/compute/cuda/repos/...

  2. 卸载所有 nvidia 驱动程序以及任何与 nvidia 相关的内容

  3. 跑步

    sudo apt 更新

  4. 安装驱动程序:

    安装 libnvidia-cfg1-465 libnvidia-common-465 libnvidia-common-465 libnvidia-compute-465 libnvidia-decode-465 libnvidia-encode-465 libnvidia-extra-465 libnvidia-fbc1-465 libnvidia-gl-465 libnvidia-ifr1-465 nvidia-compute-utils-465 nvidia-dkms-465 nvidia-driver-465 nvidia-kernel-common-465 nvidia-kernel-source-465 nvidia-utils-465 xserver-xorg-video-nvidia-465 libnvidia-gl-465:i386

安装 nvidia 驱动程序,5. 按照步骤操作https://www.tensorflow.org/install/gpu安装 tensorflow-gpu 所需的东西。

相关内容