Mainline – Another Tool to Install Latest Kernel in Ubuntu / Linux Mint

August 14, 2020

Mainline is a graphical tool to install the latest mainline Kernel in Ubuntu, Linux Mint, and derivatives.

Mainline (Ubuntu Mainline Kernel Installer) is an open-source fork of ukuu, which now is pay for use. It offers a simple interface with updated list of the “mainline” Kernels, allows to one-click install, remove, or purge Kernels in Ubuntu-based distributions.

Mainline features:

  • Fetches list of available kernels from Ubuntu Mainline PPA
  • Optionally watches and displays notifications when a new kernel update is available
  • Downloads and installs packages automatically
  • Display available and installed kernels conveniently
  • Install/remove kernels from gui
  • For each kernel, the related packages (headers & modules) are installed or removed at the same time

How to install Mainline in Ubuntu:

NOTE: The mainline kernels are provided by Ubuntu Kernel Team for testing and debugging purposes. They are not supported and are not appropriate for production use. You should only install these if they may fix a critical problem you’re having with the current kernel.

The software has an official PPA so far contains packages for Ubuntu 18.04, Ubuntu 19.10, Ubuntu 20.04, and derivatives.

1.) To add the PPA, open terminal from system application launcher and run command:

sudo add-apt-repository ppa:cappelikan/ppa

2.) Then check updates and install the tool via commands:

sudo apt update

sudo apt install mainline


To remove the PPA, run command:

sudo add-apt-repository --remove ppa:cappelikan/ppa

To remove the Ubuntu Mainline Kernel Installer, run command:

sudo apt remove mainline


I'm a freelance blogger who started using Ubuntu in 2007 and wishes to share my experiences and some useful tips with Ubuntu beginners and lovers. Please notify me if you find any typo/grammar/language mistakes. English is not my native language. Contact me via [email protected]

8 responses to Mainline – Another Tool to Install Latest Kernel in Ubuntu / Linux Mint

  1. kde plasma ftw! August 14, 2020 at 8:03 pm

    Sweet, thank you!

  2. Is it necessary to purge present kernel before installing another one?
    Thank you

  3. luigi provencher January 9, 2021 at 12:30 pm

    Well that didn’t take long. lol How long has this been around?

  4. But… how do you launch the GUI??? Running ‘mainline’ on the console only seems to execute it as a CLI program…

  5. mainline –check responds with Segmentation Fault:

    ~# strace mainline –check

    Found installed: 4.15.0-140.144
    Found installed:
    ) = ?
    +++ killed by SIGSEGV +++

    ~# uname -rs
    Linux 4.15.0-142-generic

    ~# lsb_release -a
    No LSB modules are available.
    Distributor ID: Ubuntu
    Description: Ubuntu 18.04.5 LTS
    Release: 18.04
    Codename: bionic