I just installed kernel 5.19 using the Manjaro settings tool. As I, of course, got errors saying that my nvidia and nvidia-modeset kernel modules were missing for that new kernel, I re-installed nvidia-dkms.
So far, so good, it installed the nvidia kernel modules for all installed kernels as required.
Currently, I have kernels 5.10, 5.15, 5.18, and 5.19 installed.
As of now, the system is running flawlessly with kernel 5.19 and the nvidia-dkms driver package.
However, I also got the following error message while re-installing nvidia-dkms:
ERROR: Missing 5.16.0-1-MANJARO kernel headers for module nvidia/515.48.07
This is a bit strange as kernel 5.16 was removed using Manjaro settings a long time ago following the announcement that it is no longer supported.
Apparently, the tool did not remove some configuration entries used by dkms for that kernel 5.16.
How do I get rid of that error message without breaking anything?
Just found this thread while searching for a solution to a similar problem:
ERROR: Missing 5.16.0-1-MANJARO kernel headers for module nvidia/515.48.07
Problem is that kernel 5.16 is not installed as I removed it long time ago following the applicable recommendations. How do I get rid of this error message?
If you can still boot, boot up and then install kernel version 5.15 as it is an LTS version.
If you are unable to boot, boot with a thumb drive into a live environment and start a chroot session. From there, install the new kernel, version 5.15.
Start a new thread if you require assistance, please. Do not necro-bump. See Forum Rules - Manjaro
Thank you very much for making me aware. In lots of other forums, it is just the opposite: You get blamed if you start a new thread asking for something that is already discussed elsewhere.
Then I suspect it’s something in your /lib/modules directory as per your other post. Let’s continue there, so as not get confused and end up ready to murder each other from the frustration.
Indeed, that seems to be the case. After moving all the unneeded folders away, that error is gone as well.
So thanks a lot again for your good advice!
For all other readers: If you encounter errors similar to the one discussed here, just check if there are leftovers from kernels you already uninstalled, in /lib/modules and move them out of the way. That should solve it.
Move them to a backup file or directory, so that they’re no longer accessible at the location, and if everything continues working as it should, then delete them. If not, restore the backup.