downgrade the kernel version of Linux/ UbuntuVM

Elsayed, Omar 25 Reputation points
2025-01-23T10:15:14.9866667+00:00

Hello everyone,

I´m trying to downgrade the kernel version of Linux> Ubuntu ( 20.04.6 LTS) from 5.15.0-1078-azure to 5.4.0-050400-generic.

I have downloaded and installed the image and header packages successfully, and then updated the GRUP and then reboot, but it keeps showing the same kernel version 5.15.0-1078 again.

so can anyone help me with this out?

thanks in advance for the support

Best regards

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
9,033 questions
{count} votes

Accepted answer
  1. Prrudram-MSFT 28,206 Reputation points Moderator
    2025-01-29T09:39:35.3833333+00:00

    Hello @Elsayed, Omar

    Do you still see the same kernel version or there any progress further. If not, it looks like you're almost there! Let's try a few steps to ensure the downgrade is applied correctly:

    dpkg -l | grep linux-image
    

    As you mentioned, sometimes the GRUB configuration file needs to be updated manually, ensure that it is updated.
    Below link has a similar scenario with detailed steps. Please check
    https://learn.microsoft.com/en-us/answers/questions/918155/how-can-i-downgrade-the-kernel-version-of-ubuntu-o

    Other options If you are rolling back the kernel to address VM issues after applying kernel changes, the recommendation is to delete the affected Linux VM and keep the operating system disk which is then attached to a new VM with the same version and running one of the following repair options:

    https://learn.microsoft.com/en-us/troubleshoot/azure/virtual-machines/kernel-related-boot-issues

    1. Roll back the kernel and start from a previous working setup by editing the configuration file.
    2. Install or reinstall a kernel by attaching the affected VM operating system disk to a temporary new VM and running a tool like apt-get, Yellowdog Updater Modified (YUM), or Zypper. See Linux Recovery: Using CHROOT steps to recover VMs that are not accessible.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.