Remove Linux kernel manually

In terminal:

  1. dpkg --list | grep linux-image
  2. sudo apt-get purge <name from previous output>

These steps generally work for me, first make sure you boot into the desired version of the kernel you would want to remove:

  1. rm /boot/{config-,initrd.img-,System.map-,vmlinuz-}`uname -r`
  2. rm -rf /lib/modules/`uname -r`
  3. sudo update-grub
  4. reboot - this should not reboot you back to the previous version of the kernel

sourcehttps://stackoverflow.com/questions/25993363/how-to-remove-a-newly-installed-kernel