Hello,
I’m having a strange problem, today my webcam didn’t work, it happens from time to time and therefore I tried to rebuild the dkms modules.
This is the output of the command, and of course no external modules were built (I didn’t notice but also bluetooth and wifi weren’t working).
sudo dkms autoinstall --all ✔
[sudo] password di aleritty:
Error! Your kernel headers for kernel cannot be found at /usr/lib/modules//build or /usr/lib/modules//source.
Please install the linux-headers- package or use the --kernelsourcedir option to tell DKMS where it's located.
Notice that it seems like the kernel is not recognized.
Of course I have linux612 and linux612-headers installed.
But also linux66 and linux66-headers.
Thinking about some download problem I tried download the linux-ck kernel, with the same result.
Of course the sources are there:
ls -al /usr/lib/modules/ 11 ✘ 7s
drwxr-xr-x - root 27 dic 2024 6.6.65-1-MANJARO
drwxr-xr-x - root 22 gen 17:25 6.11.7-1-ck-generic-v3
drwxr-xr-x - root 22 gen 17:16 6.11.11-1-MANJARO
drwxr-xr-x - root 22 gen 17:01 6.12.4-1-MANJARO
So now I have the following situation:
uname -a ✔
Linux Cervello 6.11.7-1-ck-generic-v3 #1 SMP PREEMPT_DYNAMIC Sat Nov 9 12:02:35 EST 2024 x86_64 GNU/Linux
$ sudo dkms autoinstall --all
sudo] password di aleritty:
Error! Your kernel headers for kernel cannot be found at /usr/lib/modules//build or /usr/lib/modules//source.
Please install the linux-headers- package or use the --kernelsourcedir option to tell DKMS where it's located.
Error! Your kernel headers for kernel cannot be found at /usr/lib/modules//build or /usr/lib/modules//source.
Please install the linux-headers- package or use the --kernelsourcedir option to tell DKMS where it's located.
Error! Your kernel headers for kernel cannot be found at /usr/lib/modules//build or /usr/lib/modules//source.
Please install the linux-headers- package or use the --kernelsourcedir option to tell DKMS where it's located.
Error! Your kernel headers for kernel cannot be found at /usr/lib/modules//build or /usr/lib/modules//source.
Please install the linux-headers- package or use the --kernelsourcedir option to tell DKMS where it's located.
Autoinstall on failed for module(s) binder(1) r8168(1) ryzen_smu(1) v4l2loopback(1).
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
$ ls -al /usr/lib/modules/
drwxr-xr-x - root 27 dic 2024 6.6.65-1-MANJARO
drwxr-xr-x - root 22 gen 17:25 6.11.7-1-ck-generic-v3
drwxr-xr-x - root 22 gen 17:16 6.11.11-1-MANJARO
drwxr-xr-x - root 22 gen 17:01 6.12.4-1-MANJARO
Currently running: 6.11.7-1-ck-generic-v3 (linux611)
The following kernels are installed in your system:
linux611
linux612
linux66
But the problem persists with any kernel I tried (66, 612 and the current CK), please check the output of dkms because that’s the most strange and relevant.
This happens also with the manjaro official kernels, I switched to this one because the official kernels didn’t solve the problem, and of coures I have the relevant headers for all of them installed.
I tried and it get’s completely ignored…
I still get:
Error! Your kernel headers for kernel cannot be found at /usr/lib/modules//build or /usr/lib/modules//source.
Please install the linux-headers- package or use the --kernelsourcedir option to tell DKMS where it's located.
Look at this message, it seems like the system is missing the variable containing the kernel version… there is a double // and a double space instead of the kernel version…
I can’t currently uninstall the CK one, because it’s the one I’m running… But I’m trying to build from source again the kernel, so maybe will work…
uname -a ✔
Linux Cervello 6.6.65-1-MANJARO #1 SMP PREEMPT_DYNAMIC Wed Dec 11 22:24:04 UTC 2024 x86_64 GNU/Linux
~ sudo dkms autoinstall --all ✔
[sudo] password di aleritty:
Error! Your kernel headers for kernel cannot be found at /usr/lib/modules//build or /usr/lib/modules//source.
Please install the linux-headers- package or use the --kernelsourcedir option to tell DKMS where it's located.
Error! Your kernel headers for kernel cannot be found at /usr/lib/modules//build or /usr/lib/modules//source.
Please install the linux-headers- package or use the --kernelsourcedir option to tell DKMS where it's located.
Error! Your kernel headers for kernel cannot be found at /usr/lib/modules//build or /usr/lib/modules//source.
Please install the linux-headers- package or use the --kernelsourcedir option to tell DKMS where it's located.
Autoinstall on failed for module(s) r8168(1) ryzen_smu(1) v4l2loopback(1).
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
check your dkms config - you are using a non standard kernel
Arch is using just one kernel - to use two or more some configuration is required
… there is a likely significant difference …
between Manjaro and Arch
There is not extra module for r8169 as r8169/r8168 support is part of the kernel.
Historically there has been a need for a separate module r8168 - I know because a Clevo laptop I own worked better with the extra module - but kernel support for r8168/r8169 has improved and it has now been several years since r8168 became obsolete for my system.
Perhaps there still is a need for this separate r8168 module
Ok, I’ve repeated this many times now…
The issue started with the STANDARD kernel.
I HAD to switch to the “non standard one”, because the standard one is barely unusable.