Current Kernel

~$ uname -r
4.4.0-124-generic

Download Pre-build Kernel

The official mianline pre-build kernel by Ubuntu development team http://kernel.ubuntu.com/~kernel-ppa/mainline

We need to download linux-headers-xxx-all.deb, linux-headers-xxx-generic.deb and linux-image-xxx-generic.deb.

~$ wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.9.103/linux-headers-4.9.103-0409103_4.9.103-0409103.201805251141_all.deb
~$ wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.9.103/linux-headers-4.9.103-0409103-generic_4.9.103-0409103.201805251141_amd64.deb
~$ wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.9.103/linux-image-4.9.103-0409103-generic_4.9.103-0409103.201805251141_amd64.deb

Installation and reboot

~$ dpkg -i *.deb

Remove old kernel

We will use byobu which an great utility can safely remove and purge old kernel from our system.

~$ sudo purge-old-kernels

Update GRUB

~$ sudo update-grub

Reference