Every version of Ubuntu LTS sticks to a particular version of the Linux kernel. For example, Ubuntu 16.04 sticks to the 4.4.x series of kernels. Over the months and years you use and update this version of Ubuntu, only newer minor versions of the kernel are updated to maintain stability.
However, there might be reasons you might want to upgrade to a major new Linux kernel version. For example, to get support for newer hardware and firmware. For such options, Ubuntu developers maintain a series of the Linux mainline kernel which can be downloaded and installed.
http://kernel.ubuntu.com/~kernel-ppa/mainline/and decide which version of kernel you want. For example, I decided to upgrade from 4.4.x to 4.9.x.
You need to download 3 deb files for a full kernel installation. These will be named in this format:
$ sudo dpkg -i *.deb
- Restart the computer and check if you are using the new kernel:
$ uname -r
- Do not delete the kernel provided by Ubuntu even if
aptkeeps reminding you that you do not need it! If something goes wrong with the new kernel, you might want to keep the older one, so you can boot using that in the GRUB boot screen.