Reverting to previous kernel to avoid booting the new one that breaks my system [duplicate]
backup old version
sudo cp /etc/default/grub /etc/default/grub.backup
edit grub config file
gksudo gedit /etc/default/grub
#GRUB_DEFAULT=0
GRUB_DEFAULT="Advanced options for Ubuntu>Ubuntu, with Linux 3.16.0-50-generic"
Update prior line for the kernel you want to boot from
save, then
sudo update-grub
sudo reboot
The grub2 documentation refers to some useful settings that can be used to set the default boot option.
Edit /etc/default/grub
(you need root privilege to do this) and change and/or add the following settings:
GRUB_DEFAULT=saved
GRUB_SAVEDEFAULT=true
and then run:
sudo update-grub
On the next reboot, select the kernel you want to boot from now on. The next reboot should boot from that selected kernel.