package:linux-image-4.15.0-30-generic:(not installed) Removing linux-image-4.15.0-30-generic (4.15.0-30.32~16.04.1) ... [?25l[?1c                          Package configuration┌────────────────┤ Removing linux-image-4.15.0-30-generic ├────────────────┐│ │ │ You are running a kernel (version 4.15.0-30-generic) and attempting to │ │ remove the same version. │ │ │ │ This can make the system unbootable as it will remove │ │ /boot/vmlinuz-4.15.0-30-generic and all modules under the directory │[ 40m │ /lib/modules/4.15.0-30-generic. This can only be fixed with a copy of │ │ the kernel image and the corresponding modules. │ │ │ │ It is highly recommended to abort the kernel removal unless you are │ │ prepared to fix the system after removal. │ │ │ │ Abort kernel removal? │ │ │ │   │ │ │ └──────────────────────────────────────────────────────────────────────────┘  [?25h[?0c  E: Aborting removal of the running kernel dpkg: error processing package linux-image-4.15.0-30-generic (--purge): subprocess installed pre-removal script returned error exit status 1