How to Update Ubuntu Kernel

This wikiHow teaches you how to update your Ubuntu Linux kernel, which is the core software that runs the rest of your Linux distribution. The easiest way to do this is by installing and running a package manager called 'Ukuu', but you can...
Method 1 of 2:

Using Ukuu

  1. How to Update Ubuntu Kernel Picture 1How to Update Ubuntu Kernel Picture 1
    Open Terminal. Click the black Terminal icon on the left side of the screen. This will open the Terminal window.
    1. You can also press Ctrl+Alt+T to open Terminal.
  2. How to Update Ubuntu Kernel Picture 2How to Update Ubuntu Kernel Picture 2
    Add the Ukuu repository. Type in sudo add-apt-repository ppa:teejee2008/ppa and press Enter.
    1. Ukuu is a free program that will find and install the correct kernel for you.
  3. How to Update Ubuntu Kernel Picture 3How to Update Ubuntu Kernel Picture 3
    Enter your password when prompted. Type in the password you use to log into your computer, then press Enter.
    1. You won't see any characters or stars appear while typing.
  4. How to Update Ubuntu Kernel Picture 4How to Update Ubuntu Kernel Picture 4
    Press Enter when prompted. Doing so adds the repository; this may take a few minutes, so don't type anything until the repository finishes adding.
  5. How to Update Ubuntu Kernel Picture 5How to Update Ubuntu Kernel Picture 5
    Update the repository. Type in sudo apt-get update and press Enter. The repository will briefly update, after which point you can continue.
  6. How to Update Ubuntu Kernel Picture 6How to Update Ubuntu Kernel Picture 6
    Install Ukuu. Type in sudo apt-get install ukuu and press Enter, then type in y when prompted and press Enter.
  7. How to Update Ubuntu Kernel Picture 7How to Update Ubuntu Kernel Picture 7
    Verify that Ukuu installed. Type in ukuu, then press Enter. If you see a list of commands appear in Terminal, Ukuu successfully installed.
  8. How to Update Ubuntu Kernel Picture 8How to Update Ubuntu Kernel Picture 8
    Install the latest available kernel. Type in sudo ukuu --install-latest and press Enter, then allow Ukuu to run.
    1. Skip this step if you want to use Ukuu's interface to install a kernel.
  9. How to Update Ubuntu Kernel Picture 9How to Update Ubuntu Kernel Picture 9
    Install a kernel from the Ukuu program. If you would rather browse the available kernels using the Ukuu program, do the following:
    1. Click the "Applications" ⋮⋮⋮ icon in the bottom-left corner of the screen.
    2. Scroll down and click Ukuu.
    3. Select the Kernel you want to install, then click Install.
    4. Enter your password when prompted, then click Authenticate.
  10. How to Update Ubuntu Kernel Picture 10How to Update Ubuntu Kernel Picture 10
    Reboot your computer. Click the "Menu"
    How to Update Ubuntu Kernel Picture 11How to Update Ubuntu Kernel Picture 11
    icon in the top-right corner of the screen, then click the "Power"
    How to Update Ubuntu Kernel Picture 12How to Update Ubuntu Kernel Picture 12
    icon and click Restart in the resulting pop-up window.
  11. How to Update Ubuntu Kernel Picture 13How to Update Ubuntu Kernel Picture 13
    Check your current kernel. You can double-check that Ubuntu's installation of your kernel was successful by opening Terminal and entering uname -sr. You should see the version number of the most recent (or, if different, your selected) kernel.
Method 2 of 2:

Using Kernel Files

  1. How to Update Ubuntu Kernel Picture 14How to Update Ubuntu Kernel Picture 14
    Open the Ubuntu kernel list. Go to http://kernel.ubuntu.com/~kernel-ppa/mainline/ in your computer's web browser.
  2. How to Update Ubuntu Kernel Picture 15How to Update Ubuntu Kernel Picture 15
    Select a kernel version. Scroll down until you find the link to the kernel version number you want to install, then click it to open its page.
    1. As of August 2018, the newest kernel is version 4.18. You can find it at the very bottom of the page under the v4.18 link.
  3. How to Update Ubuntu Kernel Picture 16How to Update Ubuntu Kernel Picture 16
    Find the kernel for your computer. Usually the top list of kernel (.deb) files will work for your computer, but if you see a heading that contains files which seem better suited to your computer than the top heading, you may want to use its files instead.
    1. Each heading on the page should say "Build for [architecture] succeeded" where "architecture" refers to your computer's system architecture (32-bit or 64-bit).
  4. How to Update Ubuntu Kernel Picture 17How to Update Ubuntu Kernel Picture 17
    Download the kernel files. Click each kernel file's link to do so . You'll need the "headers" file marked for all versions, the "image" file with "generic" in its name (avoid the "low latency" versions of these files), and the "modules" file with "generic" in its name. For example, to download the necessary files for kernel 4.18, you would click the following links:
    1. linux-headers-4.18.0-041800_4.18.0-041800.201808122131_all.deb
    2. linux-image-unsigned-4.18.0-041800-generic_4.18.0-041800.201808122131_amd64.deb
    3. linux-modules-4.18.0-041800-generic_4.18.0-041800.201808122131_amd64.deb
  5. How to Update Ubuntu Kernel Picture 18How to Update Ubuntu Kernel Picture 18
    Open Terminal. Click the black Terminal icon on the left side of the screen. This will open the Terminal window.
    1. You can also press Ctrl+Alt+T to open Terminal.
  6. How to Update Ubuntu Kernel Picture 19How to Update Ubuntu Kernel Picture 19
    Switch to your default "Downloads" directory. Type in cd Downloads and press Enter. If your default "Downloads" location for your web browser differs from the "Downloads" folder, replace "Downloads" with the path to the folder into which your kernel files downloaded.
    1. If you have any .deb files not related to the kernel installation in this directory, either move them or delete them before proceeding.
  7. How to Update Ubuntu Kernel Picture 20How to Update Ubuntu Kernel Picture 20
    Prompt Ubuntu to open the .deb files. Type in sudo dpkg -i *.deb and press Enter.
  8. How to Update Ubuntu Kernel Picture 21How to Update Ubuntu Kernel Picture 21
    Enter your password when asked. Type in the password you use to log into your computer, then press Enter.
    1. You won't see any characters or stars appear while typing.
  9. How to Update Ubuntu Kernel Picture 22How to Update Ubuntu Kernel Picture 22
    Wait for Ubuntu to finish installing the kernel. This may take a few minutes. Once you see the "Downloads" directory tag reappear next to your name at the bottom of the window, you can proceed.
  10. How to Update Ubuntu Kernel Picture 23How to Update Ubuntu Kernel Picture 23
    Reboot your computer. Click the "Menu"
    How to Update Ubuntu Kernel Picture 24How to Update Ubuntu Kernel Picture 24
    icon in the top-right corner of the screen, then click the "Power"
    How to Update Ubuntu Kernel Picture 25How to Update Ubuntu Kernel Picture 25
    icon and click Restart in the resulting pop-up window.
  11. How to Update Ubuntu Kernel Picture 26How to Update Ubuntu Kernel Picture 26
    Check your current kernel. You can double-check that Ubuntu's installation of your kernel was successful by opening Terminal and entering uname -sr. If this command shows you a number that matches the version number of the kernel you downloaded, your kernel has successfully updated.
    1. If you don't see the correct kernel number here, you may have downloaded the wrong files for your computer. Delete the .deb files from your "Downloads" folder, then go back to the list of kernel files and try downloading them from under a different heading.
4 ★ | 1 Vote