By default the Ubuntu 16.04 kernel as of 6/21/2016 is at 4.4 rev 24 and for most people this is perfectly fine. However, if you are the type of person who likes to try new things, tinker, something doesn't work quite right or always want the latest and greatest then you may want to try a newer kernel. New kernels have the advantage of introducing new hardware support, adding new features and fixing bugs that may cause issues for you. Keep in mind while new kernels can fix bugs they can also introduce new ones so your mileage will vary. What ever your reason there is a simple way to try out a new kernel, and if it doesn't work for you it is also easily removed. If you are still in the market for a new kernel after reading the aforementioned then please continue on.
The first thing you will want to do is download the new kernel and related files. This can be done by browsing to the following URL:
Next you will want to pick a new kernel for your distribution, I chose 4.6.2, it is technically for the next release 16.10 but it has worked thus far without issue. I then downloaded the files relevant to my CPU architecture, AMD64 to a new directory. Note, if you are running a 32 bit system then you will want to download the files that end with i386, instead of AMD64.
64 bit files:
32 bit files:
Once the files are downloaded run the following commands to install the new kernel files:
Installs the new kernel files. This command will install all packages with the deb extention, this is why these files must be downloaded to a new directory.
sudo dpkg -i *.deb
Updates grub,your bootlader with the new kernel entries so you are able to boot them.
Restart your computer.
If the kernel does not work properly on your computer then you can remove it by following the steps below:
The first thing you will want to do is change directory into the /boot directory.
Next you will want to remove all the files that are related to the new kernel. In the example above this would be all the files for kernel 4.6.2.
sudo rm abi-4.6.2-040602-generic
sudo rm config-4.6.2-040602-generic
sudo rm initrd.img-4.6.2-040602-generic
sudo rm System.map-4.6.2-040602-generic
sudo rm vmlinuz-4.6.2-040602-generic
Run the command:
The new entries in the grub bootloader will be removed.