You are not logged in.

#1 2025-04-13 22:26:06

andret
Member
Registered: 2023-08-19
Posts: 4

[SOLVED] kernel modules version mismatch (reason: broken mirrorlist)

Hello fellow Arch users!

I'm running Arch Linux for quite some time now, and everything seemed to always work fine. I have an Nvidia graphics card and I am using nvidia-open as my graphics driver.

Yesterday I updated my system with "pacman -Syu" and shut down the PC. Today I wanted to boot, but I'm stuck with the boot screen and everything stops. I then found that I am able to log in on a virtual text terminal (by pressing Alt+F2, I get a new console for login). It took some digging, but I found that the nvidia drivers were not loaded anymore (lsmod). This explained why I'm stuck in textmode.

What I then found left me completely puzzled. The running (and installed) kernel is 6.14.1-arch1-1. The extra modules are, however, installed for 6.14.2-arch1-1:

# tree /lib/modules/6.14.2-arch1-1
/lib/modules/6.14.2-arch1-1
└── extramodules
    ├── nvidia-drm.ko.zst
    ├── nvidia.ko.zst
    ├── nvidia-modeset.ko.zst
    ├── nvidia-peermem.ko.zst
    ├── nvidia-uvm.ko.zst
    ├── vboxdrv.ko.zst
    ├── vboxnetadp.ko.zst
    └── vboxnetflt.ko.zst

On my system there is no kernel 6.14.2 available yet. (It seems to be core-testing at the moment.)

# uname -a
Linux ZenMachine 6.14.1-arch1-1 #1 SMP PREEMPT_DYNAMIC Mon, 07 Apr 2025 19:59:13 +0000 x86_64 GNU/Linux

After ~30 minutes to an hour I was finally able to get my system working – temprarily – with a manual workaround: I copied the extramodules directory from 6.14.2 to 6.14.1 (in /lib/modules) and ran depmod. At first modprobe lead to the obvious error message that the versions don't match. With modprobe --force-vermagic I could at least load nvidia and nvidia-drm, which then automatically fired up SDDM and lead to a working desktop. Hurray!

# cp -R /lib/modules/6.14.2-arch1-1/extramodules /lib/modules/6.14.1-arch1-1/
# depmod
# modprobe --force-vermagic nvidia
# modprobe --force-vermagic nvidia-drm

Now, the question is: how do I get the modules to build for my currently installed (and only available) kernel?

Last edited by andret (2025-04-15 20:48:43)

Offline

#2 2025-04-14 00:58:54

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,614

Re: [SOLVED] kernel modules version mismatch (reason: broken mirrorlist)

linux 6.14.2.arch1-1 has been in Core for well over 2 and a half days. If your mirror doesn't have it, pick a better mirror.

Last edited by Scimmia (2025-04-14 01:01:14)

Offline

#3 2025-04-15 20:47:22

andret
Member
Registered: 2023-08-19
Posts: 4

Re: [SOLVED] kernel modules version mismatch (reason: broken mirrorlist)

Yes, that was it. I recently ran reflector. I still don't grasp why this would lead to updated nvidia packages, but not updated kernel packages though....
Anyhow, reverting to my previous /etc/pacman.d/mirrorlist fixed it. Thanks.

Offline

Board footer

Powered by FluxBB