Switch Ubuntu Kernel Version: Step-by-Step

To switch kernel versions in Ubuntu, you can follow these steps:

  1. Open the terminal and use the following command to list the installed kernel versions in the system:
dpkg --list | grep linux-image
  1. Download the needed kernel version from the official Ubuntu source, for example, if you want to install Linux kernel version 5.4.0-42.
sudo apt-get install linux-image-5.4.0-42-generic linux-headers-5.4.0-42-generic
  1. After the installation is complete, you need to restart the system and select the newly installed kernel version at startup.
  2. To remove old kernel versions, you can use the following command:
sudo apt-get purge linux-image-x.x.x-x-generic linux-headers-x.x.x-x-generic

“x.x.x-x” is the old kernel version number to be deleted.

Please note that switching kernel versions may lead to system stability and compatibility issues, so it is recommended to back up important data before switching.

bannerAds