Artix Linux Forum

Artix Linux => Package management => Topic started by: deborgen on 18 August 2023, 05:45:42

Title: [SOLVED] nvidia-dkms 538.98-1 installation error
Post by: deborgen on 18 August 2023, 05:45:42
Dear Artixers,

Recently tried to install
Code: [Select]
nvidia-dkms 535.98-1
and I got an error regarding linux-headers.

Code: [Select]
:: 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
Title: Re: nvidia-dkms 538.98-1 installation error
Post by: gripped on 18 August 2023, 13:03:56
Check which kernel is running with
Code: [Select]
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!
Title: Re: nvidia-dkms 538.98-1 installation error
Post by: deborgen on 21 August 2023, 05:40:46
Thanks! That was it. I didn't know I had to manually clean /usr/lib/modules from time to time