如何修复 modprobe 后未找到 nvidia-current?

如何修复 modprobe 后未找到 nvidia-current?

我在 i386 系统上使用 Debian 10 (Buster) 和 NVidia GT630 显卡。 apt install nvidia-driver安装了 nvidia-legacy-390xx 驱动程序。遗憾的是内核模块未加载(/var/log/Xorg.log 的输出):

[   100.857] (II) LoadModule: "nvidia"
[   100.858] (WW) Warning, couldn't open module nvidia
[   100.858] (EE) Failed to load module "nvidia" (module does not exist, 0)
[   100.858] (EE) No drivers available.

/lib/modules/4.19.0-12-686-pae/updates/dkms包含三个 nvidia-legacy-390xx*.ko 文件。

dkms status声称已安装 nvidia 模块。 modprobe nvidia想要加载 nvidia-current,但失败了(见下面的日志)。不确定这是否不应该读取 nvidia-legacy?

任何帮助将非常感激。

htpc:~# systemctl status nvidia-persistenced.service
● nvidia-persistenced.service - NVIDIA Persistence Daemon
   Loaded: loaded (/lib/systemd/system/nvidia-persistenced.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Wed 2020-11-25 12:42:40 CET; 33s ago

Nov 25 12:42:40 htpc systemd[1]: Starting NVIDIA Persistence Daemon...
Nov 25 12:42:40 htpc nvidia-persistenced[7376]: nvidia-persistenced failed to initialize. Check syslog for more details.
Nov 25 12:42:40 htpc systemd[1]: nvidia-persistenced.service: Control process exited, code=exited, status=1/FAILURE
Nov 25 12:42:40 htpc systemd[1]: nvidia-persistenced.service: Failed with result 'exit-code'.
Nov 25 12:42:40 htpc systemd[1]: Failed to start NVIDIA Persistence Daemon.
htpc:~# modprobe nvidia
modprobe: FATAL: Module nvidia-current not found in directory /lib/modules/4.19.0-12-686-pae
modprobe: ERROR: ../libkmod/libkmod-module.c:979 command_do() Error running install command for nvidia
modprobe: ERROR: could not insert 'nvidia': Operation not permitted
htpc:~# dkms status
nvidia-legacy-390xx, 390.138, 4.19.0-12-686-pae, i686: installed
htpc:~# dkms install nvidia-legacy-390xx/390.138 -k $(uname -r)
Module nvidia-legacy-390xx/390.138 already installed on kernel 4.19.0-12-686-pae/i686

有关 nvidia-persistenced 的 syslog 输出

Nov 25 12:42:40 htpc nvidia-persistenced: Started (7377)
Nov 25 12:42:40 htpc nvidia-persistenced: Failed to open libnvidia-cfg.so.1: libnvidia-cfg.so.1: cannot open shared object file: No such file or directory
Nov 25 12:42:40 htpc nvidia-persistenced: Shutdown (7377)

中存在指向 libnvidia-cfg.so.390.138 的 libnvidia-cfg.so.1 符号链接/usr/lib/i386-linux-gnu/nvidia/legacy-390xx。 中不存在此类符号链接和文件/usr/lib/i386-linux-gnu/nvidia/current

答案1

我能够解决这个问题:无论出于什么原因,apt install nvidia-driver安装了 Nvidia 390.132 和 418.152 驱动程序的混合体(可能与 418.152 所需的 nvidia-kernel-dkms 仅适用于 amd64 而不适用于 i386 有关)。

运行apt purge *nvidia* && apt install nvidia-legacy-390xx-driver使我的 X 系统恢复了。

相关内容