【求助】NVIDIA GeForce RTX 5060 Laptop GPU驱动无法安装

我在 nvidia.cn/drivers/lookup 里输入GeForce→GeForce RTX 50 Series (Notebooks)→NVIDIA GeForce RTX 5060 Laptop GPU→linux 64-bit→Chinese (Simplified)找到了Linux x64 (AMD64/EM64T) Display Driver,驱动版本580.126.18。但在我安装驱动时,进度条跑完后出现报错:

  ERROR: Unable to load the kernel module 'nvidia.ko'.  This happens most frequently when this kernel module was built     
         against the wrong or improperly configured kernel sources, with a version of gcc that differs from the one used
         to build the target kernel, or if another driver, such as nouveau, is present and prevents the NVIDIA kernel
         module from obtaining ownership of the NVIDIA device(s), or no NVIDIA device installed in this system is          
         supported by this NVIDIA Linux graphics driver release.
                                                                                                                           
         Please see the log entries 'Kernel module load error' and 'Kernel messages' at the end of the file
         '/var/log/nvidia-installer.log' for more information.

这是/var/log/nvidia-installer.log位于最末端的报错:

ERROR: Unable to load the kernel module 'nvidia.ko'.  This happens most frequently when this kernel module was built against the wrong or improperly configured kernel sources, with a version of gcc that differs from the one used to build the target kernel, or if another driver, such as nouveau, is present and prevents the NVIDIA kernel module from obtaining ownership of the NVIDIA device(s), or no NVIDIA device installed in this system is supported by this NVIDIA Linux graphics driver release.

Please see the log entries 'Kernel module load error' and 'Kernel messages' at the end of the file '/var/log/nvidia-installer.log' for more information.
-> Kernel module load error: Exec format error
-> Kernel messages:
[    6.890483] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[    6.890485] Bluetooth: BNEP filters: protocol multicast
[    6.890489] Bluetooth: BNEP socket layer initialized
[    7.747151] Bluetooth: hci0: RTL: fw version 0x040d7225
[    7.923075] Bluetooth: hci0: AOSP extensions version v1.00
[    7.923086] Bluetooth: hci0: AOSP quality report is supported
[    7.923407] Bluetooth: MGMT ver 1.23
[    7.937284] NET: Registered PF_ALG protocol family
[    8.764811] r8169 0000:03:00.0 enp3s0: Link is Up - 1Gbps/Full - flow control off
[   21.314100] amdgpu 0000:05:00.0: vgaarb: VGA decodes changed: olddecodes=io+mem,decodes=none:owns=none
[   34.509804] nvme nvme0: using unchecked data buffer
[   36.572243] Bluetooth: RFCOMM TTY layer initialized
[   36.572315] Bluetooth: RFCOMM socket layer initialized
[   36.572337] Bluetooth: RFCOMM ver 1.11
[   37.379380] wlp4s0: authenticate with 7c:39:85:77:0c:60 (local address=f4:4e:b4:cd:cf:9f)
[   37.379385] wlp4s0: send auth to 7c:39:85:77:0c:60 (try 1/3)
[   37.381356] wlp4s0: authenticated
[   37.383695] wlp4s0: associate with 7c:39:85:77:0c:60 (try 1/3)
[   37.389158] wlp4s0: RX AssocResp from 7c:39:85:77:0c:60 (capab=0x1531 status=0 aid=5)
[   37.494040] wlp4s0: associated
[  155.800455] warning: `ThreadPoolForeg' uses wireless extensions which will stop working for Wi-Fi 7 hardware; use nl80211
[  180.926635] VFIO - User Level meta-driver version: 0.3
[  181.199597] nvidia: version magic '6.18.9-arch1-2 SMP preempt mod_unload ' should be '6.12.74-1-lts SMP preempt mod_unload '
[ 1447.812078] VFIO - User Level meta-driver version: 0.3
[ 1447.906002] nvidia: version magic '6.18.9-arch1-2 SMP preempt mod_unload ' should be '6.12.74-1-lts SMP preempt mod_unload '
ERROR: Installation has failed.  Please see the file '/var/log/nvidia-installer.log' for details.  You may find suggestions on fixing installation problems in the README available on the Linux driver download page at www.nvidia.com.

请问我该如何解决报错?昨晚在夜里找了半天解决方案但还是无济于事,求求各位大佬orz

URL 与上下文之间最好用空格隔开,避免上下文也被渲染成 URL 的一部分、生成错误的超链接。

比如这样:

我在 nvidia.cn/drivers/lookup 里输入GeForce→GeForce 

效果如下:

我在 nvidia.cn/drivers/lookup 里输入GeForce→GeForce

可以看到这次 "我在" 两个字没有被当作 URL 的一部分。

好的好的

官方仓库里的nvidia-open不能用吗?

你什么版本的内核?

内核版本是6.12.74-1-lts
仓库里的nvidia-open似乎连不上显卡,不过也有可能是我操作问题,有时间再试试

原来是真的……那你为什么要用这么旧的版本?

我安装时用的是archlinux-2025.10.01-x86_64.iso,是我硬盘里现有的,图省事就直接用了这个

不过现在看来应该还是需要用最新的内核……

似乎更新一下就可以?

诶?可是你安装好了之后应该是最新的软件包呀。你pacman -Qi linux-lts看看?另外你应该装-lts对应的nvidia-open-lts包。

字           : linux-lts
版本           : 6.12.74-1
描述           : The LTS Linux kernel and modules
架构           : x86_64
URL            : https://www.kernel.org
软件许可       : Apache-2.0 OR MIT  BSD-2-Clause OR GPL-2.0-or-later  BSD-3-Clause  BSD-3-Clause OR GPL-2.0-only
                 BSD-3-Clause OR GPL-2.0-or-later  BSD-3-Clause-Clear  GPL-1.0-or-later  GPL-1.0-or-later OR BSD-3-Clause
                 GPL-2.0-only  GPL-2.0-only OR Apache-2.0  GPL-2.0-only OR BSD-2-Clause  GPL-2.0-only OR BSD-3-Clause
                 GPL-2.0-only OR CDDL-1.0  GPL-2.0-only OR Linux-OpenIB  GPL-2.0-only OR MIT  GPL-2.0-only OR MPL-1.1
                 GPL-2.0-only OR X11  GPL-2.0-only WITH Linux-syscall-note  GPL-2.0-or-later
                 GPL-2.0-or-later OR BSD-2-Clause  GPL-2.0-or-later OR BSD-3-Clause  GPL-2.0-or-later OR MIT
                 GPL-2.0-or-later OR X11  GPL-2.0-or-later WITH GCC-exception-2.0  ISC  LGPL-2.0-or-later  LGPL-2.1-only
                 LGPL-2.1-only OR BSD-2-Clause  LGPL-2.1-or-later  MIT  MPL-1.1  X11  Zlib
组             : 无
提供           : KSMBD-MODULE  VIRTUALBOX-GUEST-MODULES  WIREGUARD-MODULE
依赖于         : coreutils  initramfs  kmod
可选依赖       : wireless-regdb: to set the correct wireless channels of your country
                 linux-firmware: firmware images needed for some devices [已安装]
                 scx-scheds: to use sched-ext schedulers
依赖它         : 无
被可选依赖     : 无
与它冲突       : 无
取代           : wireguard-lts
安装后大小     : 138.45 MiB
打包者         : Andreas Radke <andyrtr@archlinux.org>
编译日期       : 2026年02月20日 星期五 00时48分19秒
安装日期       : 2026年02月21日 星期六 00时24分01秒
安装原因       : 作为其他软件包的依赖关系安装
安装脚本       : 否
验证者         : 数字签名


okok我试下装-lts

哦,原来linux-lts就是这么旧……那没事。你装对应的nvidia-open-lts应该就好了。

装完-lts,我执行了一下nvidia-smi,出现如下内容

[Tzddxg@ArchLinux Downloads]$ nvidia-smi
Wed Feb 25 10:21:42 2026       
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 590.48.01              Driver Version: 590.48.01      CUDA Version: 13.1     |
+-----------------------------------------+------------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id          Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |           Memory-Usage | GPU-Util  Compute M. |
|                                         |                        |               MIG M. |
|=========================================+========================+======================|
|   0  NVIDIA GeForce RTX 5060 ...    Off |   00000000:01:00.0 Off |                  N/A |
| N/A   49C    P4              8W /   55W |       0MiB /   8151MiB |      0%      Default |
|                                         |                        |                  N/A |
+-----------------------------------------+------------------------+----------------------+

+-----------------------------------------------------------------------------------------+
| Processes:                                                                              |
|  GPU   GI   CI              PID   Type   Process name                        GPU Memory |
|        ID   ID                                                               Usage      |
|=========================================================================================|
|  No running processes found                                                             |
+-----------------------------------------------------------------------------------------+

请问是显卡连接成功了嘛

nvidia-smi输出这个就说明显卡已经正常驱动。

没有进程是因为没有进程在使用它。你的图形界面应该是运行于核显上了。可以使用prime-run命令来把指定的OpenGL软件运行于nvidia显卡之上。Vulkan软件的方式有所区别,具体请查阅ArchWiki。CUDA的话装了直接用就行。

谢谢大佬!orz