Linux modprob 无法加载 Nvidia 驱动程序

Linux modprob 无法加载 Nvidia 驱动程序

我正在尝试为我的 Kali Linux 机器安装 nvidia 驱动程序,它在默认的 nouveau 驱动程序下运行良好。

我按照这个教程操作https://www.kali.org/docs/general-use/install-nvidia-drivers-on-kali-linux/

安装后,显示分辨率变得非常低。所以我用检查了设备状态, lspci -s 26:00.0 –v输出如下

26:00.0 VGA compatible controller: NVIDIA Corporation TU106 [GeForce RTX 2060 Rev. A] (rev a1) (prog-if 00 [VGA controller])
    Subsystem: Device 7377:1501
    Flags: bus master, fast devsel, latency 0, IRQ 10, IOMMU group 15
    Memory at f6000000 (32-bit, non-prefetchable) [size=16M]
    Memory at e0000000 (64-bit, prefetchable) [size=256M]
    Memory at f0000000 (64-bit, prefetchable) [size=32M]
    I/O ports at e000 [size=128]
    Expansion ROM at 000c0000 [disabled] [size=128K]
    Capabilities: <access denied>
    Kernel modules: nvidia

内核模块确实显示 Nvidia,但是kernel driver in use没有显示。

我注意到在启动过程中,出现了错误, System[1]: Failed to start Load Kernel Modules所以我用systemctl status systemd-modules-load.service命令检查了一下。输出显示无法找到 nvidia-current 和 nvidia-current-modeset,如下所示

     Loaded: loaded (/lib/systemd/system/systemd-modules-load.service; static)
     Active: failed (Result: exit-code) since Thu 2022-06-02 00:54:24 HKT; 7h left
       Docs: man:systemd-modules-load.service(8)
             man:modules-load.d(5)
    Process: 446 ExecStart=/lib/systemd/systemd-modules-load (code=exited, status=1/FAILURE)
   Main PID: 446 (code=exited, status=1/FAILURE)
        CPU: 10ms

Jun 02 00:54:24 kali systemd-modules-load[455]: modprobe: FATAL: Module nvidia-current not found in directory /lib/modules/5.15.0-kali3-amd64
Jun 02 00:54:24 kali systemd-modules-load[453]: modprobe: ERROR: ../libkmod/libkmod-module.c:990 command_do() Error running install command 'modprobe -i nvidia-current ' for module nvidia: retcode 1
Jun 02 00:54:24 kali systemd-modules-load[453]: modprobe: ERROR: could not insert 'nvidia': Invalid argument
Jun 02 00:54:24 kali systemd-modules-load[459]: modprobe: FATAL: Module nvidia-current-modeset not found in directory /lib/modules/5.15.0-kali3-amd64
Jun 02 00:54:24 kali systemd-modules-load[451]: modprobe: ERROR: ../libkmod/libkmod-module.c:990 command_do() Error running install command 'modprobe nvidia ; modprobe -i nvidia-current-modeset ' for module nvidia_modeset: retcode 1
Jun 02 00:54:24 kali systemd-modules-load[451]: modprobe: ERROR: could not insert 'nvidia_modeset': Invalid argument
Jun 02 00:54:24 kali systemd-modules-load[464]: modprobe: FATAL: Module nvidia-current-drm not found in directory /lib/modules/5.15.0-kali3-amd64
Notice: journal has been rotated since unit was started, output may be incomplete.

这是 /lib/modules 下的 Nvidia 相关文件

./modules/5.15.0-kali3-amd64/kernel/drivers/usb/typec/altmodes/typec_nvidia.ko
./modules/5.15.0-kali3-amd64/kernel/drivers/net/ethernet/nvidia/forcedeth.ko

除了清除所有 nvidia 软件包并重新安装外,我还尝试将 nouveau 添加到nvidia-blacklists-nouveau.conf,结果仍然是相同的。我记得我之前曾成功安装过此驱动程序一次(大约 1-1.5 年前),我不确定这里出了什么问题,欢迎任何建议。谢谢。

显卡:RTX2060 CPU:R5-2600

相关内容