You are not logged in.

#1 2024-07-03 23:16:29

UnluckyNinja
Member
Registered: 2022-02-14
Posts: 19

[SOLVED] Failed to start Load Kernel Modules and dkms issues

I'm having 2 issues and I think they may be related.

When dkms runs it outputs some errors like:

==> ERROR: Missing 6.1.67-1-lts kernel headers for module nvidia/555.58.02.

I have linux-headers and linux-lts-headers installed, and these are the 2 kernels I'm using. I get this error for old kernel versions that I do not have installed anymore, but it installs the modules for the kernels that are installed. When I run sudo dkms status I get:

Error! Could not locate dkms.conf file.
File: /var/lib/dkms/nvidia/525.89.02/source/dkms.conf does not exist.

The second issue is that when I boot the system I get the message Failed to start Load Kernel Modules, but nvidia and zfs (my 2 dkms packages) seem to be running fine when the system finishes booting. Still, I want to get rid of these errors. I suspect it has something to do with my /var/lib/dkms directory because inside it there are directories and symlinks for kernels and driver versions that I do not have installed anymore, but I don't know if it is safe to delete all of it. Anyone knows how I can get rid of these error messages?


SOLUTION:
Deleting old kernel and driver directories at /usr/lib/modules and /var/lib/dkms solved the dkms error messages.
Updating dracut solved the "Failed to start Load Kernel Modules" message.

Last edited by UnluckyNinja (2024-07-05 06:30:09)

Offline

#2 2024-07-04 06:23:29

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

Re: [SOLVED] Failed to start Load Kernel Modules and dkms issues

Check /usr/lib/modules/, you have old dirs there causing the first errors.

Check the status of systemd-modules-load.service, it should tell you what it's failing to load.

Offline

#3 2024-07-04 06:52:16

UnluckyNinja
Member
Registered: 2022-02-14
Posts: 19

Re: [SOLVED] Failed to start Load Kernel Modules and dkms issues

Scimmia wrote:

Check /usr/lib/modules/, you have old dirs there causing the first errors.

Alright. I cleaned up the /usr/lib/modules and /var/lib/dkms and the command dkms status works now without errors. I did some research and apparently I have those leftovers directories because I have 2 kernels installed at the same time. I guess it doesn't clean up the modules of the kernels I'm not using when I update.

Scimmia wrote:

Check the status of systemd-modules-load.service, it should tell you what it's failing to load..

I noticed I don't get the "Inserted module 'zfs'" message since I started getting the error, but zfs still works fine. There are no error messages in journalctl. Weird. It says it failed when I'm booting but it doesn't log that it "failed".

Last edited by UnluckyNinja (2024-07-04 06:52:45)

Offline

#4 2024-07-04 07:32:34

seth
Member
Registered: 2012-09-03
Posts: 64,260

Re: [SOLVED] Failed to start Load Kernel Modules and dkms issues

Scimmia wrote:

Check the status of systemd-modules-load.service, it should tell you what it's failing to load.

systemctl status systemd-modules-load.service

Please don't paraphrase, https://bbs.archlinux.org/viewtopic.php?id=57855

Online

Board footer

Powered by FluxBB