apt-get autoremove says dkms: WARNING: Linux headers are missing, which may explain the above failures.

Bug #1763999 reported by Scott Stensland
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
dkms (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

ubuntu 18.04

first I issue

sudo apt-get dist-upgrade

The following packages were automatically installed and are no longer required:
  linux-headers-4.15.0-10 linux-headers-4.15.0-10-generic linux-image-4.15.0-10-generic linux-image-extra-4.15.0-10-generic linux-signed-image-4.15.0-10-generic
Use 'sudo apt autoremove' to remove them.

OK so then I issue

sudo apt-get autoremove

Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  linux-headers-4.15.0-10 linux-headers-4.15.0-10-generic linux-image-4.15.0-10-generic linux-image-extra-4.15.0-10-generic linux-signed-image-4.15.0-10-generic
0 upgraded, 0 newly installed, 5 to remove and 0 not upgraded.
After this operation, 334 MB disk space will be freed.
Do you want to continue? [Y/n]
(Reading database ... 280528 files and directories currently installed.)
Removing linux-headers-4.15.0-10-generic (4.15.0-10.11) ...
Removing linux-headers-4.15.0-10 (4.15.0-10.11) ...
Removing linux-signed-image-4.15.0-10-generic (4.15.0-10.11) ...
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.15.0-15-generic
Found initrd image: /boot/initrd.img-4.15.0-15-generic
Found linux image: /boot/vmlinuz-4.15.0-13-generic
Found initrd image: /boot/initrd.img-4.15.0-13-generic
Found linux image: /boot/vmlinuz-4.15.0-10-generic
Found initrd image: /boot/initrd.img-4.15.0-10-generic
Found Windows Boot Manager on /dev/sda1@/EFI/Microsoft/Boot/bootmgfw.efi
Adding boot menu entry for EFI firmware configuration
done
Removing linux-image-extra-4.15.0-10-generic (4.15.0-10.11) ...
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.15.0-10-generic /boot/vmlinuz-4.15.0-10-generic
run-parts: executing /etc/kernel/postinst.d/dkms 4.15.0-10-generic /boot/vmlinuz-4.15.0-10-generic
dkms: WARNING: Linux headers are missing, which may explain the above failures.
      please install the linux-headers-4.15.0-10-generic package to fix this.
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.15.0-10-generic /boot/vmlinuz-4.15.0-10-generic
update-initramfs: Generating /boot/initrd.img-4.15.0-10-generic
run-parts: executing /etc/kernel/postinst.d/unattended-upgrades 4.15.0-10-generic /boot/vmlinuz-4.15.0-10-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 4.15.0-10-generic /boot/vmlinuz-4.15.0-10-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 4.15.0-10-generic /boot/vmlinuz-4.15.0-10-generic
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.15.0-15-generic
Found initrd image: /boot/initrd.img-4.15.0-15-generic
Found linux image: /boot/vmlinuz-4.15.0-13-generic
Found initrd image: /boot/initrd.img-4.15.0-13-generic
Found linux image: /boot/vmlinuz-4.15.0-10-generic
Found initrd image: /boot/initrd.img-4.15.0-10-generic
Found Windows Boot Manager on /dev/sda1@/EFI/Microsoft/Boot/bootmgfw.efi
Adding boot menu entry for EFI firmware configuration
done
Removing linux-image-4.15.0-10-generic (4.15.0-10.11) ...
Examining /etc/kernel/prerm.d.
run-parts: executing /etc/kernel/prerm.d/dkms 4.15.0-10-generic /boot/vmlinuz-4.15.0-10-generic
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 4.15.0-10-generic /boot/vmlinuz-4.15.0-10-generic
update-initramfs: Deleting /boot/initrd.img-4.15.0-10-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 4.15.0-10-generic /boot/vmlinuz-4.15.0-10-generic
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.15.0-15-generic
Found initrd image: /boot/initrd.img-4.15.0-15-generic
Found linux image: /boot/vmlinuz-4.15.0-13-generic
Found initrd image: /boot/initrd.img-4.15.0-13-generic
Found Windows Boot Manager on /dev/sda1@/EFI/Microsoft/Boot/bootmgfw.efi
Adding boot menu entry for EFI firmware configuration
done

system fails to realize I am auto removing header package so it outputs :

dkms: WARNING: Linux headers are missing, which may explain the above failures.
      please install the linux-headers-4.15.0-10-generic package to fix this.

That message to me indicates some logic bug ... system is OK so why that message ?

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in dkms (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.