The Linux Channel

TUTORIALS :: How to upgrade or install a latest current release Linux Kernel version manually in Ubuntu?

Written by: Ramin Farajpour, edited by Kiran Kankipati - Published: 05-Jan-2018

Linux Kernel developers release frequent monthly kernel versions. If you use Linux distribution such as Ubuntu, we need upgrade kernel version for fix security bugs after Linux kernel developers recently released the same. So, in this article you will learning about this. How to install latest version Linux Kernel in Ubuntu?

First we should be aware of release Linux kernel version, hence check the same in the main Linux Kernel website: www.kernel.org. Here we can see the recent stable kernel version(s). In this case as you can see in the below screenshot it is Linux Kernel version 4.14.11.
Latest stable Linux Kernel version 4.14.11

We have now two ways to do the same:

  1. download current kernel source code, compile the source and install the kernel (compiled binaries) to your machine
  2. we can directly install .deb files of a kernel which is pre-compiled

In this article I am going to discuss the second method:
You need latest version code of kernel compiled or built with different architecture. This is a mainline of Ubuntu where we can see all versions of Linux kernel compiled/pre-built .deb files: http://kernel.ubuntu.com/~kernel-ppa/mainline/.

So let us take current kernel version of Linux which is 4.14.11. You should use this link for get kernel version 4.14.11 with format: http://kernel.ubuntu.com/~kernel-ppa/mainline/v<linux_kernel_version>.

So for Linux kernel version 4.14.11 it is: http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.14.11
1 Linux Kernel v4.14.11 mainline build


We can now download linux-headers from here:
http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.14.11/linux-headers-4.14.11-041411_4.14.11-041411.201801022143_all.deb
2 download kernel ubuntu kernel-ppa mainline linux-headers-4.14.11

and download linux-image from here:
http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.14.11/linux-image-4.14.11-041411-generic_4.14.11-041411.201801022143_amd64.deb
3 download kernel ubuntu kernel-ppa mainline linux-image-4.14.11


Now we have two .deb files we can now install the same. First install linux-headers .deb file followed by linux-image .deb file as shown below.

root@raminfp:~# dpkg -i linux-headers-4.14.11-041411_4.14.11-041411.201801022143_all.deb
root@raminfp:~# dpkg -i linux-image-4.14.11-041411-generic_4.14.11-041411.201801022143_amd64.deb


Now we can check if they are successfully installed as shown below:
4 verify linux-image
5 verify linux-headers

NOTE: if you want you can remove old kernel versions with dpkg command.

Now to boot into your newly installed kernel, kindly reboot your system and in grub under the advance option for Ubuntu navigate via arrow keys and choose/select kernel version 4.14.11 and press enter to boot into the same. The system should load successfully newly installed Linux Kernel version 4.14.11. You can verify the same with uname command as shown below:
6 verify booted kernel via uname -r and uname -a


Featured Video:

(API) Watch Video: 0x199 Network Interface Card - Device Drivers | Architecture, Components and The Big-Picture
0x199 Network Interface Card - Device Drivers | Architecture, Components and The Big-Picture
* Click the image to watch this video on Youtube ↗


Suggested Topics:


Network Software Development:
Bufferbloat in a Networking Device or an Appliance ↗
27-Jun-2018

Layer-2 (L2) Multicast Frame Deep Analysis ↗
21-Dec-2019

Network MTU and Path MTU Discovery PMTUD - WAN and Internet Performance Optimization ↗
30-Jan-2019

Introduction to Network Processors (NPU) ↗
03-Nov-2019

C code to check valid IP Address (IPv4) - Live Demo and Example ↗
18-Jun-2018

Socket Options - Socket Programming - setsockopt(), getsockopt() ↗
15-Feb-2020

TCP vs UDP an Expert Opinion ↗
18-Jan-2020

UDP sample socket code for Systems and Network software developers ↗
02-Feb-2017

Tail Drop - by Network Schedulers to Drop Packets in Network Appliances ↗
27-Jun-2018

Design & Architecture of custom Dynamic Routing Protocols ↗
01-Dec-2019

Data-Plane and Control-Plane of a Networking Device ↗
30-Oct-2019

iPerf tool - for network channel analysis, bandwidth tests and system & network benchmarking ↗
04-Jul-2018


Research and Projects:
Data Profiling and Visual Analysis tool for Deep Learning and AI - VLOG - The Linux Channel ↗
21-Jun-2018

CYRIL ING√ČNIERIE - CoreFreq Linux CPU monitoring software ↗
19-Jun-2018

Difference between Intel Xeon Server vs Desktop Core i7 vs Intel Mobile Atom vs ARM Processors ↗
19-Jun-2018

Research Socket overhead in Linux vs Message Queues and benchmarking ↗
21-Jun-2017

Tour of my new Home Networking Lab within VirtualBox VM ↗
16-May-2017


Linux (user-space), Systems Architecture:
C code to read a /proc file in Linux user-space - Live Demo and Example ↗
11-Jun-2018

A Linux system call in C without a standard library ↗
10-Mar-2017

Dynamic linking without STDLIB in Linux user-space C programming ↗
05-May-2017

Synchronization in Linux user-space - Architecting multi-process and multi-threads ↗
18-Sep-2018

Coding a simple look-up-table in C - without Linked lists and a binary search ↗
17-Jun-2018

Linux user-space Pthread Synchronization via Mutex - Live Demo and Example ↗
03-Jun-2018

Linux user-space Atomic Operations via GCC Atomic builtins ↗
22-Mar-2017

Linux user-space - Shared Memory IPC - Live Demo and Example ↗
18-Jul-2018

mmap() munmap() - map or unmap files or devices into memory ↗
22-Feb-2020


Linux Kernel Software Development:
Linux Networking Stack :: RFS: Receive Flow Steering ↗
09-Dec-2017

Tracking Linux Kernel bugs in Kernel.org Bugzilla (or Bugzee as we call it in the Industry) ↗
24-Sep-2018

Tracking code changes in Linux Kernel Source code ↗
19-Nov-2018

KERNEL - The Linux Channel - a High Performance Linux Kernel ↗
12-Dec-2018

Kernel customization via make menuconfig - Linux Kernel Compilation (or a Kernel Build) ↗
11-Jul-2018

How to submit your Linux Kernel Patch ↗
07-Feb-2017

How to upgrade or install a latest current release Linux Kernel version manually in Ubuntu? ↗
05-Jan-2018


Linux Kernel Internals (PDFs) - by Ramin Farajpour:
Linux Kernel Internals :: Linux Kernel Development ↗
03-May-2019

Linux Kernel Internals :: Linux Kernel Boot Process ↗
19-Nov-2018

Linux Kernel Internals :: Implementing a Linux Kernel System Call ↗
03-May-2019


Software Development (Programming) Tools:
SNMP and MIB Browsers ↗
12-Feb-2019

What is a Toolchain | gcc Cross-Compiler | Libraries | BSP (Board Support Package) | Embedded ↗
24-Jun-2019

What is a BSP | Board Support Package | Big Picture | Embedded Systems Software Development ↗
24-Jun-2019

Kompare GUI patch and diff tool in Linux ↗
19-Jun-2018

Bluefish IDE - a simple versatile light-weight best editor to edit kernel source files, html files, c source code, text files, SQL schema and so on. ↗
19-Jun-2018


Embedded Projects:
GPS Geo-tracking system using LinkIt ONE ↗
11-Jan-2017

Using a GPS Sensor ↗
28-Jul-2017

 

Join The Linux Channel :: Facebook Group


Join a course:

💎 Linux, Kernel, Networking and Device Drivers: PDF Brochure
💎 PhD or equivalent (or Post Doctoral) looking for assistance: Details
💎 ... or unlimited life-time mentorship: Details


💗 Help shape the future: Sponsor/Donate


Recommended Topics:
Featured Video:
(API) Watch Video: 0x1cc How to become a programmer? - FAQ #TheLinuxChannel #KiranKankipati
0x1cc How to become a programmer? - FAQ #TheLinuxChannel #KiranKankipati
* Click the image to watch this video on Youtube ↗

Download: Linux kernel Development.pdf


Trending Video:
(API) Watch Video: 0x1ce New Job Offer? verify in Glassdoor before you join #TheLinuxChannel #KiranKankipati
0x1ce New Job Offer? verify in Glassdoor before you join #TheLinuxChannel #KiranKankipati
* Click the image to watch this video on Youtube ↗

TUTORIALS :: UDP sample socket code for Systems and Network software developers:


Linux Kernel Programming - Device Drivers:


Research :: Content Delivery Networks (CDN):
CDN Networks


Recommended Video:
(API) Watch Video: 269 Linux Kernel TCP Congestion Control CUBIC BIC-TCP Pluggable congestion control datastructure Ep2
269 Linux Kernel TCP Congestion Control CUBIC BIC-TCP Pluggable congestion control datastructure Ep2
* Click the image to watch this video on Youtube ↗