In this tutorial, you will learn how to install the recently released Linux kernel 3.14 on your Ubuntu machine. The new kernel has several improvements including more drivers support. To upgrade to kernel 3.14 Ubuntu users can download the kernel deb files. Alternatively, you can download the source code if you want to compile it yourself. Compiling the source code has the advantage that you can fine tune the kernel to your needs but for most users, it is not necessary. It will take a lot of time you may end up with rendering your system unbootable.
There are two major versions of the kernel:
- The generic kernel
- The low latency kernel.
If you are using Ubuntu Studio it is advisable to download the low latency version. However, the generic kernel would still work but some applications' performance would be affected.
Note: If your machine is 32 bit, download the i386 files. If it is 64 bit download the amd64 files.
64 Bit, Low Latency Kernel Installation
In this example the installation is the low latency kernel version on a 64 bit machine. There are three files that are required for the installation.
The Kernel headers for all architectures is used in case of a 64 bit or 32 bit install and also for both the generic and low latency kernel types.
Before beginning installation, check the kernel version of you have. You can this by using the uname command. Combine the options -m ,-r and -s to view the kernel details in a more comprehensive way.
$ uname -mrs
Place all your deb files in one folder. Use the ls command to ensure you have the correct files in the current folder.
To install the files use the dpkg package manager with the option --install or -i.
$ sudo dpkg -i linux-headers-3.14* linux-image-3.14.0-013400-lowlatency_3.14.0-031400.201403310035_amd64 .deb
Hint: You can use the Tab key to auto-complete long file names on your terminal.
This will automatically install the new kernel. It will also update your bootloader with the new kernel.
After this process is done reboot your machine to use the newly installed kernel. To confirm whether the changes took effect, use the uname command as follows:
$ uname -mrs
This installation method does not replace your kernel but installs a newer version and you can always use your older kernel by rebooting the computer and selecting the kernel version you want from the bootloader menu.
Update GRUB Manually
If the new kernel is not reflected on the bootloder menu, then you can still update GRUB manually. This is step is not necessary unless the changes have not been reflected on the bootloader menu for a couple of reasons.
$ sudo update-grub
After successfully running all these steps you may now use your kernel 3.14 and enjoy new features and various fixes.