I urgently need to build a dkms package in dom0. However I always get the error that the kernel-headers cannot be found at /lib/modules/5.4.98-1.fc25.qubes.x86_64/build or /lib/modules/5.4.98-1.fc25.qubes.x86_64/source.
I think here is the error. The kernel and the kernel-devel package do not fit together. However, uninstalling and reinstalling does not help.
Has anyone a solution? Is it a bug?
Installing nvidia driver is huge headache sometimes, i’ve try install with different kernel-dkms in the past it succeeded with some tweaks, but it’s not worthed in qubes. i’d rather go with windows in different storage.
which is most likely not necessary since it is for the VMs not dom0.
Then:
sudo dnf remove kernel 5.4.98
However, I am not sure that it was the technically correct way. See also How to Update | Qubes OS.
If it was incorrect what I did, please comment on this post. You can never stop learning.