Being with the latest stable kernel usually brings lots of benefits resulting in:
- having the latest supported drivers for your hardware
- fixing commonly reported bugs
- increase in overall system performance
- various speed and stability related, software-oriented optimizations
Reference: Practical Ubuntu Linux Server for beginners
Here is a video of the update process:
In order to do a simple kernel upgrade, so to be sure to have the latest one installed.
First visit: https://www.kernel.org/
Then choose from stable or unstable(mainline) kernel branch you would like to have your kernel installed. Just look up the numbers. Note: r.c. has the meaning of release candidate, so the kernel is still in development.
Then go to http://kernel.ubuntu.com/~kernel-ppa/mainline/
You'll find a huge directory with supported kernels tailored for Ubuntu distributions.
Scroll down, to pick the chosen one and enter its directory. Then open up a terminal and write:
cd /tmpThis way we will enter the temporary folder, which will be erased automatically when we reboot our machine.
We have to download the proper kernel version. To check if we have 32 or 64-bit system installed type:
uname -mwhich if shows i686 then your kernel should be 32 bit, and if shows x86_64 then you have to download the 64-bit kernel packages.
Next point at the right kernel with the right mouse click, copy the link location from 3 files: one with a name ending on: _all, and two _generic .deb packages
linux-headers-4.15.2-041502_4.15.2-041502.201802072230_all.deb
linux-headers-4.15.2-041502-generic_4.15.2-041502.201802072230_amd64.deb
linux-headers-4.15.2-041502-lowlatency_4.15.2-041502.201802072230_amd64.deb
linux-image-4.15.2-041502-generic_4.15.2-041502.201802072230_amd64.deb
linux-image-4.15.2-041502-lowlatency_4.15.2-041502.201802072230_amd64.deb
from those we need to download everything, except the 2 lowlatency packages.
In terminal just enter wget then paste the link location. Here follows an example of the first package:
wget linux-headers-4.15.2-041502_4.15.2-041502.201802072230_all.debThe last step is to install the downloaded packages using sudo privileges:
sudo dpkg -i linux*Reboot the computer in order to load the new kernel:
sudo reboot
If you have problems with the newly installed kernel, just press several times on restart the 'ESC' key and choose from Advanced options the previous working stable kernel version.
After some time you may notice that kernels begin to pile up, thus reducing your disk space. I advise you to remove the redundant ones with: sudo apt remove linux- and then list the not used: modules, image and headers packages.
Congratulations and happy learning!