dkms is working great when an update of the 5.15 kernel series arrives. dkms installs drivers for virtualbox and a wifi usb adapter on my system.
This fails when I try to install a 6.1 lts series kernel via mhwd. Somehow building the modules fail.
(3/5) Install DKMS modules ==> dkms install --no-depmod vboxhost/7.0.6_OSE -k 6.1.12-1-MANJARO Error! Bad return status for module build on kernel: 6.1.12-1-MANJARO (x86_64) Consult /var/lib/dkms/vboxhost/7.0.6_OSE/build/make.log for more information. ==> WARNING: 'dkms install --no-depmod vboxhost/7.0.6_OSE -k 6.1.12-1-MANJARO' exited 10
The error indicates that in the make process programs are not available.
I have researched this and asked guidance on this issue on the forum. One issue leads to another and a solution seems not in sight.
I suspect that something whent wrong when struggling with linux-headers and installing a vbox driver without dkms a long time ago.
My conclusion for now is that is probably better for me (not a linux programmer) to completely remove and re-install dkms before doing the 6.1 kernel install.
What would be the best approach / steps to fully remove and re-install?