How to install / upgrade to Linux Kernel 4.12.5 in Ubuntu 17.04

How to install / upgrade to Linux Kernel 4.12.5 in Ubuntu 17.04

A Linux kernel is the essential part of any Linux operating system. It is responsible for resource allocation, low-level hardware interfaces, security, simple communications, basic file system management, and more. Linux is actually a clone of the UNIX operating system. It is geared towards POSIX and Single UNIX Specification compliances. This article will cover the ground on how to install or upgrade to Linux Kernel 4.12.5 in Ubuntu 17.04.

Installation/Upgradation procedure

To start with the installation procedure, update the kernel and check the kernel of your system by using the uname command.

root@linuxhelp:~# uname -r
4.10.0-041300rc1-generic

Now download the set of packages by executing the wget command followed by the download link.

root@linuxhelp11:~# wget kernel.ubuntu.com/~kernel-ppa/mainline/v4.12.5/linux-headers-4.12.5-041205_4.12.5-041205.201708061334_all.deb
--2017-08-23 14:58:13--  http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.12.5/linux-headers-4.12.5-041205_4.12.5-041205.201708061334_all.deb
Resolving kernel.ubuntu.com (kernel.ubuntu.com)... 91.189.94.216
Connecting to kernel.ubuntu.com (kernel.ubuntu.com)|91.189.94.216|:80... connected.
.
.
linux-headers-4.12. 100%[===================> ]  10.09M   295KB/s    in 20s     

2017-08-23 14:58:34 (508 KB/s) - ‘ linux-headers-4.12.5-041205_4.12.5-041205.201708061334_all.deb.1’  saved [10583972/10583972]

root@linuxhelp11:~# wget kernel.ubuntu.com/~kernel-ppa/mainline/v4.12.5/linux-headers-4.12.5-041205-generic_4.12.5-041205.201708061334_amd64.deb
--2017-08-23 14:59:30--  http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.12.5/linux-headers-4.12.5-041205-generic_4.12.5-041205.201708061334_amd64.deb
Resolving kernel.ubuntu.com (kernel.ubuntu.com)... 91.189.94.216
Connecting to kernel.ubuntu.com (kernel.ubuntu.com)|91.189.94.216|:80... connected.
.
.
linux-headers-4.12. 100%[===================> ] 653.66K   296KB/s    in 2.2s    

2017-08-23 14:59:32 (296 KB/s) - ‘ linux-headers-4.12.5-041205-generic_4.12.5-041205.201708061334_amd64.deb.1’  saved [669348/669348]

root@linuxhelp11:~# wget kernel.ubuntu.com/~kernel-ppa/mainline/v4.12.5/linux-image-4.12.5-041205-generic_4.12.5-041205.201708061334_amd64.deb
--2017-08-23 15:00:15--  http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.12.5/linux-image-4.12.5-041205-generic_4.12.5-041205.201708061334_amd64.deb
Resolving kernel.ubuntu.com (kernel.ubuntu.com)... 91.189.94.216Connecting to kernel.ubuntu.com (kernel.ubuntu.com)|91.189.94.216|:80... connected.
.
.
linux-image-4.12.5- 100%[===================> ]  48.83M   247KB/s    in 2m 53s  
2017-08-23 15:03:08 (289 KB/s) - ‘ linux-image-4.12.5-041205-generic_4.12.5-041205.201708061334_amd64.deb.1’  saved [51204268/51204268]

After downloading the set of files, we need to install the debian files by running the following command.

root@linuxhelp11:~# dpkg -i linux-headers-4.12*.deb linux-image-4.12*.deb
(Reading database ... 237671 files and directories currently installed.)
Preparing to unpack linux-headers-4.12.5-041205_4.12.5-041205.201708061334_all.deb ...
Unpacking linux-headers-4.12.5-041205 (4.12.5-041205.201708061334) over (4.12.5-041205.201708061334) ...
.
.
Found memtest86+ image: /boot/memtest86+.elf
Found memtest86+ image: /boot/memtest86+.bin
done

The package has been installed successfully. Restart the system by executing the following command.

root@linuxhelp11:~# init 6

After restarting the system, then we need to check the kernel version

root@linuxhelp11:~# uname -r
4.12.5-041205-generic

The installation/upgradation procedure of Linux kernel 4.12.5 in Ubuntu 17.04 is done successfully.

FAQ
Q
Where can I find kernel 2.4.20-3.16?
A
Kernel version numbers of this form are distribution kernels, meaning they are modified kernels produced by distributions. Please contact the relevant distributor; or check out https://mirrors.kernel.org/.
Q
Why are there files that are dated tomorrow?
A
All timestamps on kernel.org are in UTC (Coordinated Universal Time). If you live in the western hemisphere your local time lags behind UTC. Under Linux/Unix, type date -u to get the current time in UTC.
Q
What happened to ftp.kernel.org?
A
FTP service was terminated on March 1, 2017. All content that used to be available via ftp.kernel.org can be accessed by browsing https://www.kernel.org/pub/.
Q
Can I get an account on kernel.org?
A
Kernel.org accounts are usually reserved for subsystem maintainers or high-profile developers.
Q
What timestamp format they use with?
A
All timestamps on kernel.org are in UTC (Coordinated Universal Time).