To downgrade the kernel in Ubuntu, you will need to follow these steps:
- First, check the version of the kernel that you are currently running by using the uname -r command. This will display the version of the kernel that is currently active on your system.
- Next, check the list of available kernel versions by running the dpkg -l | grep linux-image command. This will list all of the installed kernel versions on your system.
- Select the kernel version that you want to downgrade to and note the package name for that version.
- Use the apt-get purge command to remove the current kernel version that you are running. For example, if the package name of the kernel version that you want to remove is linux-image-4.15.0-118-generic, you would run the following command: sudo apt-get purge linux-image-4.15.0-118-generic.
- Install the kernel version that you want to downgrade to by using the apt-get install command. For example, if the package name of the kernel version that you want to install is linux-image-4.15.0-106-generic, you would run the following command: sudo apt-get install linux-image-4.15.0-106-generic.
- Reboot your system to activate the new kernel.
It's important to note that downgrading the kernel can potentially cause issues with your system, so it's generally not recommended unless you have a specific reason for doing so. If you do decide to downgrade the kernel, make sure to create a backup of your system before proceeding, just in case anything goes wrong.