Download as TXT, PDF, TXT or read online from Scribd
Download as txt, pdf, or txt
You are on page 1/ 2
## Downgrading Linux Kernel version in Ubuntu 20.
# Check existing version
uname -a Linux cto-cnclassic5 5.4.0-110-generic #124-Ubuntu SMP Thu Apr 14 19:46:19 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
# Check if the desired version is available to install via apt
apt-cache search linux-image | grep 5.4.0-97-generic apt-cache search linux-image | grep 5.4.0-135 linux-image-5.4.0-97-generic - Signed kernel image generic linux-image-unsigned-5.4.0-97-generic - Linux kernel image for version 5.4.0 on 64 bit x86 SMP
dpkg --list | grep linux-image ii linux-image-5.4.0-110-generic 5.4.0-110.124 amd64 Signed kernel image generic ii linux-image-5.4.0-97-generic 5.4.0-97.91 amd64 Signed kernel image generic ii linux-image-generic 5.4.0.110.114 amd64 Generic Linux kernel image
# Making the newly installed kernel as the default one to boot
# Make below changes to grub file 1. Backup the existing grub file cp /etc/default/grub /etc/default/grub.bak 2. Replace value of the GRUB_DEFAULT From GRUB_DEFAULT=0 To GRUB_DEFAULT="Advanced options for Ubuntu>Ubuntu, with Linux 5.4.0-97-generic" GRUB_DEFAULT="Advanced options for Ubuntu>Ubuntu, with Linux 5.4.0-135-generic"
# Compile the new changes for Grub
update-grub
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg' Generating grub configuration file ... Found linux image: /boot/vmlinuz-5.4.0-110-generic Found initrd image: /boot/initrd.img-5.4.0-110-generic Found linux image: /boot/vmlinuz-5.4.0-97-generic Found initrd image: /boot/initrd.img-5.4.0-97-generic done