The kernel is the brain of any operating system, the very basis of its existence. It's not an exaggeration to say that the kernel dictates the limits of the OS. On Windows, only Microsoft can deliver changes to the Windows kernel as part of a complete update. In Linux, though, it's quick and easy for anyone to do a Kernel upgrade. Let's see how to upgrade the kernel in Linux Mint or Ubuntu.
Unblock any international website, browse anonymously, and download movies and Mp3 with complete safety with CyberGhost, just for $2.75 per month:
We prepared this guide on Linux Mint 18.1 and Ubuntu 16.04.2 LTS. It might work on recent earlier and future versions, as well as on other distributions based on Ubuntu.
However, a kernel upgrade is a delicate task in any capacity, so make sure you have backed up everything beforehand.
Table of Contents
Do I need a kernel upgrade?
If technology has taught us anything, is that the larger version numbers are better versions of any given program - most of the time.
Still, doing a kernel upgrade isn't a task to be taken lightly. It's nothing like doing a sudo apt-get upgrade, or even a sudo apt-get dist-upgrade. It's more like changing the complete engine of the operating system.
That means that even though the latest kernel is "stable," the upgrade could very well cripple our system, and have us format and reinstall our Linux distribution.
So, doing a kernel upgrade on a production PC is off-limits. And we must budget time to do a complete reinstall, should the upgrade go sideways.
A kernel upgrade is a good idea mostly for developers, who want to make sure that he future versions of their apps will be compatible with the latest kernel.
It could also be useful if we have a particular hardware problem that we can trace to the Linux kernel. Other than that, though, if it ain't broke...
How to do a kernel upgrade in Linux Mint / Ubuntu
First order of the day, before we even download the new kernel, is to make sure our system is up to date.
Linux Mint / Ubuntu full update
We open a terminal with ctrl+alt+T and type:
sudo apt-get update && sudo apt-get dist-upgrade -y
Depending on the last time we did a full update and our internet speed, this could take a couple of minutes.
When the update concludes, and provided it didn't encounter any problems and give off any error messages, we should reboot the system, with:
Download the latest kernel version
We will find the deb files for the new kernel on
The most recent kernel's folder should be near the bottom of the page. Unless you are feeling particularly adventurous, you should avoid the rc* kernels, which are release candidate versions, and thus unstable.
Inside the folder, we need to download three files. If we have the 64bit version of Ubuntu or Linux Mint installed, we download the _all.deb file and the generic amd64.deb files.
If we have the 32bit version, again we download the _all.deb, this time with the generic i386.deb files.
We make sure we download the files, and not run them.
After all three files download, we open a terminal and navigate to the download folder - usually ~/Downloads.
To do the kernel upgrade, we type:
sudo dpkg -i linux-headers-4*.deb linux-image-4*.deb
The installation will only take a few seconds. After the installation concludes without any errors, we reboot.
On the next boot, if everything went well, running the command...
...will show the new kernel version.
That's it. The kernel upgrade was successful.
If for any reason, we need to uninstall the new kernel, we just need to run the command:
sudo apt-get remove linux-headers-4.11.5* linux-image-4.11.5* -y
As opposed to the kernel upgrade, make sure you include the full 4.11.5. If you type remove linux-headers-4*, it will also delete the distro's kernel, and the Linux installation will be brain-dead.
On the test rig, we got a couple of errors while uninstalling the kernel upgrade.
However, upon rebooting the system, everything worked as it should, without us having to do anything. We were back to the 4.5.0-53 kernel that came with the distribution.
Did you have any trouble with the kernel upgrade?
If anything on the guide didn't work as described, and you weren't able to do a kernel upgrade, leave us a comment.
- How to Install Wine in Linux Mint / Ubuntu to Run Windows Apps
- Install Ubuntu Linux 17.04 Alongside Windows, or By Itself
- How to Install Origin on Linux Mint / Ubuntu (June 2017)
- Common Windows April 2018 Update Problems
- How To Install Steam and Play Games on Linux Mint 18.1 / Ubuntu 16.04
Do you want to support PCsteps, so we can post high quality articles throughout the week?
If you prefer your purchases from China, we are affiliated with the largest international e-shops: