-
Check current kernel version:
uname -r
-
List installed kernels:
dpkg --list | grep linux-image
3.a Option 1: Use GRUB menu
- Reboot system
- Press Shift or Esc to access GRUB menu
- Select "Advanced options for Ubuntu"
- Choose the desired older kernel version
- Boot into the selected kernel
3.b Option 2: Modify GRUB default
- Edit GRUB configuration:
sudo nano /etc/default/grub
- Modify GRUB_DEFAULT line:
GRUB_DEFAULT="Advanced options for Ubuntu>Ubuntu, with Linux X.X.X-XX-generic"
- Update GRUB:
sudo update-grub
-
Remove new kernel
- Identify new and old kernel versions
- Remove new kernel:
sudo apt remove linux-image-[new-version] linux-headers-[new-version]
- Update GRUB:
sudo update-grub
-
Reboot system
-
Verify kernel version after reboot:
uname -r
Note: Always ensure at least one working kernel remains installed. Back up important data before making system changes.
apt install linux-image-6.8.0-40-generic linux-headers-6.8.0-40-generic linux-modules-6.8.0-40-generic linux-modules-extra-6.8.0-40-generic