How to install Linux Kernel 5.1 in Ubuntu and derivatives?

Linux Kernel

Linux Kernel

The new version of the Linux kernel 5.1 was released recently and as our partner tells us in the next articleThis version of the kernel is not LTS, so the installation of this type of kernel is recommended for those who have compatibility problems with their hardware.

Kernel Linux 5.1 stands out for including the new io_uring interface for asynchronous I / O, the ability to use NVDIMMs as RAM, the support for shared virtual memory in Nouveau, support for scalable FS monitoring via fanotify.

In addition to the ability to configure Zstd compression levels in Btrfs, the new cpuidle TEO processor, implementation of system calls to solve the 2038 problem, the ability to boot from device mappers without initramfs, LSM's SafeSetID module, support for combined live patches, among other things.

Kernel 5.1 installation process

This new version of Kernel 5.1 was released a few hours ago and Ubuntu developers already made the necessary builds to make them available to users.

It is important to mention that in order to install this new version of the Linux Kernel we must download the packages corresponding to the architecture of our system as well as the version that we want to install.

So that this method is valid for any version of Ubuntu that is currently supportedThat is, Ubuntu 16.04 LTS, Ubuntu 18.04 LTS, Ubuntu 18.10 and the new version of Ubuntu that is version 19.04 Disco Dingo as well as its derivatives.

If you do not know the architecture of your system, you can find out by opening a terminal with Ctrl + Alt + T and in it you will type the following command:

uname -m

Where if you receive an answer with "x86" it means that your system is 32 bits and if you receive an "x86_64" it means that your system is 64 bits.

With this information you will be able to know which packages are those corresponding to the architecture of your computer's processor.

For those who still use 32-bit systems, they must download the following packages, for this we are going to open a terminal and in it execute the following commands:

wget kernel.ubuntu.com/~kernel-ppa/mainline/v5.1/linux-headers-5.1.0-050100_5.1.0-050100.201905052130_all.deb 

wget kernel.ubuntu.com/~kernel-ppa/mainline/v5.1/linux-headers-5.1.0-050100-generic_5.1.0-050100.201905052130_i386.deb

wget kernel.ubuntu.com/~kernel-ppa/mainline/v5.1/linux-image-5.1.0-050100-generic_5.1.0-050100.201905052130_i386.deb

wget kernel.ubuntu.com/~kernel-ppa/mainline/v5.1/linux-modules-5.1.0-050100-generic_5.1.0-050100.201905052130_i386.deb

In the case of those who are 64-bit system users, the packages corresponding to the architecture of your processor are as follows:

wget kernel.ubuntu.com/~kernel-ppa/mainline/v5.1/linux-headers-5.1.0-050100_5.1.0-050100.201905052130_all.deb

wget kernel.ubuntu.com/~kernel-ppa/mainline/v5.1/linux-headers-5.1.0-050100-generic_5.1.0-050100.201905052130_amd64.deb

wget kernel.ubuntu.com/~kernel-ppa/mainline/v5.1/linux-image-unsigned-5.1.0-050100-generic_5.1.0-050100.201905052130_amd64.deb

wget kernel.ubuntu.com/~kernel-ppa/mainline/v5.1/linux-modules-5.1.0-050100-generic_5.1.0-050100.201905052130_amd64.deb

At the end of the installation of the packages, we just have to execute the following command to install them on the system.

sudo dpkg -i linux-headers-5.1.0-*.deb linux-image-unsigned-5.1.0-*.deb linux-modules-5.1.0-050100-generic_5.1.0-*.deb

Linux Kernel 5.1 Low Latency Installation

In the case of low latency kernels, the packets that must be downloaded are the following, For those who are 32-bit users, they must download these:

wget kernel.ubuntu.com/~kernel-ppa/mainline/v5.1/linux-headers-5.1.0-050100_5.1.0-050100.201905052130_all.deb
wget kernel.ubuntu.com/~kernel-ppa/mainline/v5.1/linux-headers-5.1.0-050100-lowlatency_5.1.0-050100.201905052130_i386.deb
wget kernel.ubuntu.com/~kernel-ppa/mainline/v5.1/linux-image-5.1.0-050100-lowlatency_5.1.0-050100.201905052130_i386.deb
wget kernel.ubuntu.com/~kernel-ppa/mainline/v5.1/linux-modules-5.1.0-050100-lowlatency_5.1.0-050100.201905052130_i386.deb

O for those using 64-bit systems the packages to download are the following:

wget kernel.ubuntu.com/~kernel-ppa/mainline/v5.1/linux-headers-5.1.0-050100_5.1.0-050100.201905052130_all.deb
wget kernel.ubuntu.com/~kernel-ppa/mainline/v5.1/linux-headers-5.1.0-050100-lowlatency_5.1.0-050100.201905052130_amd64.deb
wget kernel.ubuntu.com/~kernel-ppa/mainline/v5.1/linux-image-unsigned-5.1.0-050100-lowlatency_5.1.0-050100.201905052130_amd64.deb
wget kernel.ubuntu.com/~kernel-ppa/mainline/v5.1/linux-modules-5.1.0-050100-lowlatency_5.1.0-050100.201905052130_amd64.deb

Finally we can install any of these packages with the following command:

sudo dpkg -i linux-headers-5.1.0-*.deb linux-image-unsigned-5.1.0-*.deb linux-modules-5.1.0-050100-generic_5.1.0-*.deb

Finally, we just have to restart our system so that when we start it again, our system runs with the new version of the Kernel that we just installed.

How to install Kernel 5.1 with Ukuu?

Si are you a newbie or think you can mess up your system by doing the above steps, you can make use of a tool which can help you simplify this kernel installation process.

I already spoke in a previous article about this Ukuu tool, which you can know and install from the link below.

Just run the application on the system after having installed it and the program has the same ease of Kernel update is very and simple.

A list of kernels is posted from the kernel.ubuntu.com site. and it shows you notifications when a new kernel update is available.


Be the first to comment

Leave a Comment

Your email address will not be published. Required fields are marked with *

*

*

  1. Responsible for the data: Miguel Ángel Gatón
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.