Everyone on earth already uses DKMS for this installing a new kernel or driver triggers a rebuild.
The common fails are
User has neither disabled secure boot nor set it up to accept to sign with a key your motherboard is configured to accept.
You MUST do one or the other
User is using very new kernel with very old hardware. Support window is about 10 years for mainline. Legacy for 1-3 years. Beyond 11-13 years you are either using old kernels or third party patches.
Ex: Geforce 600 series from 2012 is stuck with nvidia driver version 470.x latest release 2024. Attempting to build against recent kernels released after 2024 may not work without patches but MAY work with up to 7.0 as of this message. See
Every distro makes this easy. Every single one. Some have to enable a separate repo for all proprietary shit which is the limit of the challenge.
But kernel upgrades? That’s where I’ve broken mine and gave up
Everyone on earth already uses DKMS for this installing a new kernel or driver triggers a rebuild.
The common fails are
You MUST do one or the other
Ex: Geforce 600 series from 2012 is stuck with nvidia driver version 470.x latest release 2024. Attempting to build against recent kernels released after 2024 may not work without patches but MAY work with up to 7.0 as of this message. See
https://github.com/joanbm/nvidia-470xx-linux-mainline