Hi everybody,
I don't always think about installing the Headers corresponding to the kernel in place before doing "apt-get dist-upgrade" and when I forget to do it, I always have this error that appears:
I have two questions:
1) How could I avoid this mistake every time ?
2) If I forgot to install the Headers corresponding to the kernel in place and I have the error, is it possible to run a command again so that the installation concerning DKMS ends properly ?
Many thanks
I don't always think about installing the Headers corresponding to the kernel in place before doing "apt-get dist-upgrade" and when I forget to do it, I always have this error that appears:
Code:
...
...
...
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.15.18-2-pve /boot/vmlinuz-4.15.18-2-pve
run-parts: executing /etc/kernel/postinst.d/dkms 4.15.18-2-pve /boot/vmlinuz-4.15.18-2-pve
dkms: WARNING: Linux headers are missing, which may explain the above failures.
please install the linux-headers-4.15.18-2-pve package to fix this.
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.15.18-2-pve /boot/vmlinuz-4.15.18-2-pve
...
...
...
I have two questions:
1) How could I avoid this mistake every time ?
2) If I forgot to install the Headers corresponding to the kernel in place and I have the error, is it possible to run a command again so that the installation concerning DKMS ends properly ?
Many thanks