How to Install Linux Kernel 6.0 on Ubuntu 22.04 LTS

The Linux Kernel 6.0 is here, packed with many features, including support for the newest generation of processors from Intel, AMD, and ARM! In addition, the kernel includes updates to improve security and performance and support various new hardware devices. For users, the most significant change in this release will likely be the new capabilities and improved stability. As always, users are advised to upgrade to the latest kernel version if they require only to do so or understand the risks of using mainline kernels.

Some of the various changes besides the typical CPU improvements include the following.

  • Kernel support for NVMe in-band authentication.
  • Runtime verification subsystem.
  • Raspberry Pi 4 V3D kernel driver.
  • IO_uring user-space block driver.
  • Buffered writes on XFS file systems.
  • Send Protocol V2 support for Btrfs.
  • H.265/HEVC API promoted to stable.

For a complete list of changes, visit the 6.0 kernel changelog by visiting Kernel Newbies.

The following tutorial will teach you how to install Linux Kernel 6.0 on Ubuntu 22.04 LTS Jammy Jellyfish Linux using the command line terminal and remove and restore the original kernel.

Update Ubuntu

Before you begin, update your system to ensure all existing packages are up to date, as this is essential when installing/upgrading Linux kernels to avoid conflicts.

sudo apt update && sudo apt upgrade

Import PPA & Install Linux Kernel 6.0

The best option to install the Linux 6.0 kernels is to install the ppa:tuxinvader/jammy-mainline by TuxInvader. This has some of the most up-to-date mainline generic kernels and the previous 5.19 kernel.

Please note that these kernels will naturally be removed and replaced with updated kernels from this PPA since the mainline kernel builds naturally become EOL within a smaller time frame than LTS kernels. But, once you add the PPA, you will naturally be prompted to upgrade each time a minor update or significant release comes forward.

First, import the Jammy Mainline Tuxinvader PPA as follows.

sudo add-apt-repository ppa:tuxinvader/jammy-mainline -y

Once installed, update your repository list.

sudo apt-get update

Next, proceed to the installation of the Linux Kernel. Ensure that any sensitive documents are backed up in case anything goes wrong.

Next, install the 6.0 generic Linux kernel drivers by executing the following command.

sudo apt-get install linux-generic-6.0

Please note that this will only work during the lifetime of Linux Kernel 6.0. After its EOL, the command will not work, and you should not be seeking to install the generic version, regardless.

Once complete, you will need to reboot your system for the new kernel to be fully activated.


Once logged back into your system, run the following command to confirm the new kernel version is running.

uname -r

Example output:


For people that love pretty printouts, install the neofetch package.

sudo apt install neofetch -y

Now print your system specs that will show the kernel version as follows.


Example output:

How to Install Linux Kernel 6.0 on Ubuntu 22.04 LTS

How to Restore Default Kernel

For users who find the new kernel has bugs for their hardware, say, loss of sound, use the following steps to restore the default kernel; if you installed an alternative kernel, replace the default kernel section with whatever you want to install.

For users that installed the Tux PPA Mainline kernel, you must remove the repository by adding the –remove syntax to the previous add command.

sudo add-apt-repository --remove ppa:tuxinvader/jammy-mainline -y

Now run an APT update to ensure the repository is removed.

sudo apt update

Begin the removal and restoration; use the following command.

sudo apt-get autoremove linux-generic-6.0* linux-headers-6.0* linux-image-unsigned-6.0* linux-modules-6.0* -y

Next, you will see the following prompt advising that you must make sure a kernel is installed or re-installed before you reboot if you remove the current kernel. Otherwise, your system will be destroyed, unbootable, broken, etc.


How to Install Linux Kernel 6.0 on Ubuntu 22.04 LTS

Press the tab key, select <No>, and press the ENTER KEY.

Before we reboot, make sure the default generic is installed, do not fuss too much as you can install alternative versions later on as we are just trying to get your system back to working order.

sudo apt install --install-recommends linux-generic-hwe-22.04 -y

You may notice it will show an output saying this is already installed. You did not remove the kernel after installing Linux Kernel 6.0; users who did this will re-install the latest recommended kernel for Ubuntu 22.04 LTS.


joshua@ubuntu-22-04:~$ sudo apt install --install-recommends linux-generic-hwe-22.04 -y
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
linux-generic-hwe-22.04 is already the newest version (
linux-generic-hwe-22.04 set to manually installed.
0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.

Now reboot.


Now verify the kernel installed, which should be the default generic kernel.

sudo uname -r

Example output:


As above, you have fallen back to the default kernel.

Alternative Kernels

For those who want options besides the PPA or manually installing, check out the following custom kernel tutorials, which often boast the latest Linux custom-built kernels.

Comments and Conclusion

The tutorial taught you how to install the latest 6.0 Linux kernel and some other handy hints about using the Tuxinvader PPA. Note, if your system is a production system or for similar use, it would be advised to use the existing kernel that ships the standard installation for the most stability. However, those wanting to try kernel 6.0, ensure you have adequate backups.

Not what you were looking for? Try searching for additional tutorials.

3 thoughts on “How to Install Linux Kernel 6.0 on Ubuntu 22.04 LTS”

  1. I have tried to install via PPA, but I had some problem with kernel 6.0.1 in ubuntu 22.04

    First of all the version 6 is supposed to solve the issues with the keyboard on TUXEDO PCs. I owe one and indeed the keyboards resets properly, but then the back lighting is shut down.

    Also, I am using plank as dock bar and the bard does not appear any more.

    After a first glance I have decided to go back to the stock kernel.

    AND I had to reinstall the kernel explicitly (thank you for the advice)

    • Thanks for the message; it seems hit and miss for the fixes; from the feedback I have gotten, hopefully, things may be addressed soon in future 6.0 updates or 6.1.

      You could try the XanMod or Liquorix kernels, too, possibly. However unsure if it fixes your issue.


Leave a Comment