Steam 要求安装其他 NVIDIA 驱动程序,游戏冻结/崩溃

Steam 要求安装其他 NVIDIA 驱动程序,游戏冻结/崩溃

我最近使用他们网站上的 .deb 在我的 Kubuntu 20.04 LTS 机器上安装了 steam,启动时,它会打开一个终端,要求我安装其他 Nvidia 驱动程序。

Nvidia-driver-470在 1660ti 上运行专有驱动程序。(也尝试过nvidia-driver-495
我的电脑中的其他规格是:
i7 8700
16GB 内存

以下是 Steam 启动时打开的终端的屏幕截图:

终端截图

Enter 在第一个提示后按下,它会要求输入root密码,然后打印出图 1 中显示的内容。在第二个提示后按下 Enter 会关闭终端窗口并立即打开 steam。每次启动时都会这样做。

我努力了:

sudo apt-get remove --purge steam steam-launcher
rm -rf ~/.local/share/Steam && rm -rf ~/.steam
sudo apt clean && sudo apt -f install

此后安装 steam 也没有解决任何问题。

最糟糕的是,大多数游戏根本无法运行。它们要么在启动时或中途冻结或崩溃。而且不仅是使用 Proton 的游戏(我用的是 6.3),像 Portal 2 这样以原生方式运行的游戏我相信也会崩溃。

我已经在 Google 上搜索过了,没有找到解决方案,所以请帮忙。

输出sudo ubuntu-drivers devices

sudo ubuntu-drivers 设备的输出

apt list --installed | grep libnvidia                                                                                               [3:59:44]

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

libnvidia-cfg1-470/unknown,now 470.82.01-0ubuntu1 amd64 [installed,automatic]
libnvidia-common-470/unknown,now 470.82.01-0ubuntu1 all [installed,automatic]
libnvidia-compute-470/unknown,now 470.82.01-0ubuntu1 amd64 [installed,automatic]
libnvidia-decode-470/unknown,now 470.82.01-0ubuntu1 amd64 [installed,automatic]
libnvidia-encode-470/unknown,now 470.82.01-0ubuntu1 amd64 [installed,automatic]
libnvidia-extra-470/unknown,now 470.82.01-0ubuntu1 amd64 [installed,automatic]
libnvidia-fbc1-470/unknown,now 470.82.01-0ubuntu1 amd64 [installed,automatic]
libnvidia-gl-470/unknown,now 470.82.01-0ubuntu1 amd64 [installed,automatic]
libnvidia-ifr1-470/unknown,now 470.82.01-0ubuntu1 amd64 [installed,automatic]

sudo ubuntu-drivers autoinstall                                                                                                     [4:18:44]
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 linux-modules-nvidia-495-generic-hwe-20.04 : Depends: linux-modules-nvidia-495-5.11.0-43-generic (= 5.11.0-43.47~20.04.2) but it is not going to be installed
                                              Depends: nvidia-kernel-common-495 (>= 495.44) but 495.29.05-0ubuntu1 is to be installed
E: Unable to correct problems, you have held broken packages.

所有连接到 nvidia 的 ppa

/etc/apt/sources.list:deb https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/ /
/etc/apt/sources.list:# deb-src https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/ /

所有连接到 steam 的 ppa

/etc/apt/sources.list.d/steam.list:deb [arch=amd64,i386] https://repo.steampowered.com/steam/ stable steam
/etc/apt/sources.list.d/steam.list:deb-src [arch=amd64,i386] https://repo.steampowered.com/steam/ stable steam
/etc/apt/sources.list.d/steam.list:
/etc/apt/sources.list.d/steam.list:# Uncomment these lines to try the beta version of the Steam launcher
/etc/apt/sources.list.d/steam.list:#deb [arch=amd64,i386] https://repo.steampowered.com/steam/ beta steam
/etc/apt/sources.list.d/steam.list:#deb-src [arch=amd64,i386] https://repo.steampowered.com/steam/ beta steam

提前致谢,如果您需要更多信息,请发表评论,我会编辑问题

答案1

您已经了解到,您不能随意将来自不同来源的软件包/库放在一起并期望它能正常工作。Nvidia 驱动程序(470 或 495)和 steam 软件包可从标准存储库(受限、多元宇宙)获得 - 使用它们。CUDA 确实提供了一个用于安装的 .run 文件,它允许您将库和可执行文件放入您自己的目录而不是系统区域(避免尝试 deb 安装路线或用错误版本的东西污染系统区域的疯狂依赖性)。跳过任何 Nvidia 驱动程序的提供,您从标准存储库获得了一个可用的驱动程序。

如何安装 cuda

cuda 位置选择

清除所有不必要的 steam 和 cuda,以及谁知道还有什么来自您的存储库。确保从软件和更新/源选项卡中选择了多元宇宙和受限选项,然后使用 sudo apt-get update 更新您的软件包信息,然后只需安装所需的 cuda 驱动程序和 steam。steam 软件包可能需要 32 位库,但您可能已经拥有了这些库。我拥有的唯一 steam 软件包是 steam:i386、steam-installer 和 steam-devices,并且 steam 游戏运行良好。

答案2

我已经设法解决了我的问题,答案来自stackoverflow 上的线程

问题是 cuda

相关内容