I could not find this easily today so I am putting it here for other people, and myself in 6 months
How do you roll back a kernel in ubuntu LTS 16.04, answered below
Answer
do the following steps in order
- ssh into the box
- sudo su –
- count the menu and submenu lines to get to the kernel you want to boot, indexed at 0
- edit /etc/default/grub
- change GRUB_DEFAULT=0 to GRUB_DEFAULT=”M>N” and save
- M is menu count
- N is submenu count, the kernel you want to boot
- ON 16.04 you start counting N when you get here: submenu ‘Advanced options for Ubuntu’
- update-grub
- systemctl reboot
- ssh in
- uname -r to see if you booted to the right kernel
- sudo su –
- apt-get purge linux-headers-version_to_remove and linux-image-version_to_remove
- edit /etc/default/grub and change to: GRUB_DEFAULT=0
- systemctl reboot
- ssh in and uname -r to see if you are good
orignal article https://www.calazan.com/how-to-set-an-older-kernel-version-as-the-default-in-grub-during-bootup-ubuntu-12-04/
If you do this wrong you may not be able to boot the box, be warned
Attribution
Source : Link , Question Author : ms4720 , Answer Author : ms4720