package:linux-image-extra-4.10.0-27-generic:4.10.0-27.30~16.04.2 Removing linux-image-extra-4.10.0-27-generic (4.10.0-27.30~16.04.2) ... depmod: FATAL: could not load /boot/System.map-4.10.0-27-generic: No such file or directory run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.10.0-27-generic /boot/vmlinuz-4.10.0-27-generic run-parts: executing /etc/kernel/postinst.d/dkms 4.10.0-27-generic /boot/vmlinuz-4.10.0-27-generic Error! Your kernel headers for kernel 4.10.0-27-generic cannot be found. Please install the linux-headers-4.10.0-27-generic package, or use the --kernelsourcedir option to tell DKMS where it's located Error! Your kernel headers for kernel 4.10.0-27-generic cannot be found. Please install the linux-headers-4.10.0-27-generic package, or use the --kernelsourcedir option to tell DKMS where it's located run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.10.0-27-generic /boot/vmlinuz-4.10.0-27-generic update-initramfs: Generating /boot/initrd.img-4.10.0-27-generic E: /usr/share/initramfs-tools/hooks/plymouth failed with return 1. update-initramfs: failed for /boot/initrd.img-4.10.0-27-generic with 1. run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1 dpkg: error processing package linux-image-extra-4.10.0-27-generic (--remove): subprocess installed post-removal script returned error exit status 1