Dear Artixers,
Recently tried to install
nvidia-dkms 535.98-1
and I got an error regarding linux-headers.
:: Executando hooks pós-transação...
(1/1) Install DKMS modules
==> dkms install --no-depmod nvidia/535.98 -k 6.4.10-artix1-1
==> depmod 6.4.10-artix1-1
==> ERROR: Missing 5.16.14-artix1-1 kernel headers for module nvidia/535.98.
the missing 5.16.14-artix1-1 are old, currently I have 6.4.10-artix1-1 kernel headers so I don't understand where this is coming from.
Thank for your support
Check which kernel is running with
uname -a
If it is Linux Artix 6.4.10-artix1-1 look under /usr/lib/modules/ and see if there's still a directory "5.16.14-artix1-1"
If there is try moving it somewhere (I'm not suggesting deleting it so if moving it causes you problems you can restore it. If all is well then you can delete it.) then try to install nvidia-dkms again.
That's my best guess!
Thanks! That was it. I didn't know I had to manually clean /usr/lib/modules from time to time