How to Install Linux Kernel 6.1 on Linux Mint 21 or 20

The 6.1 version of the Linux Kernel can be implemented on either Linux Mint 21 or Linux Mint 20 systems, and offers a variety of new enhancements and upgrades, such as the inclusion of preliminary support for the Rust programming language, increased performance of the Btrfs file system, advancements in Intel Arc graphics, further development for AMD RDNA3 graphics processing units, Thunderbolt compatibility for Intel Meteor Lake, expanded support for audio systems, compatibility with Xbox One Elite Controller paddles, enhanced support for Nintendo replica controllers, and initial support for DualSense Edge controllers. Moreover, numerous other updates are included in this release, making it an important update for Linux users.

This guide will provide instructions for installing Linux Kernel 6.1 on your Linux Mint desktop using the TuxInvader Launchpad PPA. The PPA contains the most recent generic kernels, and the guide will demonstrate how to use the command line terminal to import the PPA and install the latest Linux Kernel.

Step 1: Update Linux Mint

Before installing the Linux Kernel 6.1, it is crucial to ensure your system is current. This includes updating all packages on your system, which can prevent any conflicts from occurring during installation or upgrading.

sudo apt update

Before proceeding, you have the option to preview the updates that will be made to your system by utilizing a command that lists all available upgrades.

apt list --upgradable

If any updates are present, execute the specified command to begin upgrading.

sudo apt upgrade

Step 2: Install Required Dependencies

The Linux Kernel 6.1 installation necessitates the packages listed below. You can install them by running the command provided.

sudo apt install ca-certificates apt-transport-https software-properties-common lsb-release -y

Step 3: Import TuxInvader PPA

The suggested way to install Linux Kernel 6.1 on Linux Mint is by utilizing the TuxInvader Launchpad PPA. However, it is crucial to be aware that these kernels will be superseded by newer versions from the PPA as the mainline kernels have shorter end-of-life than LTS kernels. Once you add the PPA, you will receive notifications of minor updates and new releases.

If you are new to importing GPG keys from Ubuntu‘s KeyServer, you may encounter an issue where your command line terminal does not create the necessary directories. However, this can be quickly resolved by using a command to create these directories, which will ensure seamless operation when launching PPAs on Launchpad.

sudo gpg --list-keys

Example output:

gpg: directory '/root/.gnupg' created
gpg: keybox '/root/.gnupg/pubring.kbx' created
gpg: /root/.gnupg/trustdb.gpg: trustdb created

This step is optional, but if you encounter any problems, you can run the command and repeat the process.

You can obtain the necessary GPG key by executing the command provided below.

sudo gpg --no-default-keyring --keyring /usr/share/keyrings/tuxinvader.gpg --keyserver --recv-keys 3844A6C1C6FD1056

Example output:

gpg: keybox '/usr/share/keyrings/tuxinvader.gpg' created
gpg: key 3844A6C1C6FD1056: public key "Launchpad PPA for tuxinvader" imported
gpg: Total number processed: 1
gpg:               imported: 1

The next step is to import the repository for your Linux Mint system by running the command provided below. Import with the appropriate command for your specific Linux Mint distribution version.

Option 1: Import Linux Kernel 6.1 Repository for Linux Mint 21.x:

echo 'deb [signed-by=/usr/share/keyrings/tuxinvader.gpg] jammy main' | sudo tee -a /etc/apt/sources.list.d/tuxinvader.list
echo 'deb-src [signed-by=/usr/share/keyrings/tuxinvader.gpg] jammy main' | sudo tee -a /etc/apt/sources.list.d/tuxinvader.list

Option 2: Import Linux Kernel 6.1 Repository for Linux Mint 20.x:

echo 'deb [signed-by=/usr/share/keyrings/tuxinvader.gpg] focal main' | sudo tee -a /etc/apt/sources.list.d/tuxinvader.list
echo 'deb-src [signed-by=/usr/share/keyrings/tuxinvader.gpg] focal main' | sudo tee -a /etc/apt/sources.list.d/tuxinvader.list

You can now run a quick update to refresh the new source with the imported repository.

sudo apt update

After importing the PPA and running an update, you may notice that some packages need to be updated. You can now proceed with running an upgrade.

sudo apt upgrade

It is now time to install the Linux Kernel 6.1 generic drivers by executing the below command.

sudo apt-get install linux-generic-6.01

It is important to remember that while the command may appear for version 6.0, it is intended for version 6.1.

See also
How to Install ExifTool on Linux Mint 21 or 20


terminal output for installing linux kernel 6.1 on linux mint 21 or 20Pin
How to Install Linux Kernel 6.1 on Linux Mint 21 or 20 4

After the installation process is finished, it is essential to reboot your system so that the new kernel can be activated.


After signing back into your system, you can run the command below to confirm if the new kernel version is operating.

uname -r

Example output:


Additional Commands & Tips

How to Restore Default Kernel

If users experience any issues with the new kernel, such as loss of sound affecting their hardware, they can follow these steps to restore the default kernel.

The first step is removing the TuxInvader LaunchPAD PPA by running the command below.

sudo rm /etc/apt/sources.list.d/tuxinvader.list

After removing the TuxInvader LaunchPAD PPA, it is important to perform an APT update to confirm that the repository has been removed from your system. This will ensure that the package lists for all the repositories you have added to your system are up-to-date.

sudo apt update

Use the command below to remove the current kernel and restore the default. This command will uninstall the current version of the Linux kernel and install the kernel version previously set as default. This will ensure that the system is restored to its original state and that any issues caused by the new kernel will be resolved.

sudo apt autoremove linux-generic-6.* linux-headers-6.* linux-image-unsigned-6.* linux-modules-6.* --purge

Note that you may see a message advising removing the Linux Kernel and making the system unbootable. Select <No> to abort, as this is a warning message to ensure you have a kernel installed before reboot, which will be covered shortly.


Before rebooting, confirming the default generic version is installed important. Do not worry too much about this step, as alternative versions can be installed later. The main goal is to get your system back to its working order.

For Linux Mint 21.x users, use the following command:

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

For Linux Mint 20.x users, use the following command:

sudo apt install --install-recommends linux-generic-hwe-20.04

It is normal to see an output message indicating that the Linux Kernel is already installed. The commands are designed to ensure that a Linux Kernel is on your system, preventing potential rebooting issues.

You can now reboot your Linux Mint system by using the command provided below or, for desktop users who prefer, use the GUI restart option.


At this stage, verifying that the default generic kernel is successfully installed is important.

sudo uname -r

Your system should be back to the standard, generic Linux Kernel that was present before upgrading. You can maintain this version, investigate different Linux Kernels like Liquorix and XanMod, or even create your own Linux Kernel if the TuxInvader PPA does not meet your needs.


Installing the latest Linux Kernel 6.1 on a Linux Mint system can provide many advantages, such as enhanced performance, security, and new features. The TuxInvader Launchpad PPA makes installing the kernel on Linux Mint 21 or 20 desktops or servers straightforward. By adhering to the steps outlined in this guide, you can import the PPA and install Linux Kernel 6.1 using the command line terminal. It’s essential to remember that updating your kernel can cause compatibility issues with some software, so it’s always advisable to back up your data before proceeding with any update. Overall, installing the latest Linux Kernel 6.1 on the Linux Mint system is a relatively straightforward process that can bring many benefits to your system.

2 thoughts on “How to Install Linux Kernel 6.1 on Linux Mint 21 or 20”

  1. Thanks for this very useful guide. I followed it and the 6.0 kernel is running on my Linux Mint 21 machine.
    I have one question tough. When I try to install the latest NVIDIA drivers from, the installation fails. I looked into the log and it seems that there is a mismatch of the compiler tool that was used for building the kernel and the kernel module the installer was trying to build:
    warning: the compiler differs from the one used to build the kernel
    The kernel was built by: x86_64-linux-gnu-gcc-12 (Ubuntu 12.1.0-2ubuntu1~22.04) 12.1.0
    You are using: cc (Ubuntu 11.3.0-1ubuntu1~22.04) 11.3.0
    Then I am getting the same error message multiple times:
    cc: error: unrecognized command-line option ‘-ftrivial-auto-var-init=zero’
    But this is probably due to the compiler version difference…
    If I use the latest Linux Mint kernel (5.15.0-56) the nvidia driver installation completes without any problem…
    Is it possible to solve this problem?
    If not, I would simply uninstall.

    • Hi Tamas,

      How did you install the Nvidia drivers just curious. The other option is I think a PPA exists to a more recent compiler I may need to test this first if I can find out what sort of set up you have, I did not think of this at the time it is a good point out and something I may need to add to my guides in the future.

      Thanks for the question.


Leave a Comment

Share to...