As already discussed, Linux kernel 5.6 has seen the light of day with interesting new features. Recently we showed you how to install it in OpenSUSE 15.1 Now, in this post, I will show you how to install Linux kernel 5.6 in Ubuntu 18.04
Ubuntu comes standard with the 4.15 kernel with the possibility to upgrade it to 5.3 but this is not the last stable version either. This is what I’m going to show you.
However, before we start I want to give you a warning, updating the kernel brings advantages but also some problems. If your system is stable and you have no problems with it, it is not recommended to do this. If your system is a test system and you know what you are doing, then yes.
Install Linux Kernel 5.6 on Ubuntu 18.04
First, it’s a good idea to back up your system. Or at least, your files on an external hard drive. For that, we have a post that you can use.
Then, you can update the system so that all the security patches are installed.
:~$ sudo apt update && sudo apt upgrade
Once you have finished, create a folder called kernel from which we will download the necessary files.
:~$ mkdir kernel && cd kernel
And from there you have to download 3 DEB files. We will get it directly from the Ubuntu kernel team.
First, we will download the kernel headers.
:~$ wget -c https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.6/linux-headers-5.6.0-050600_5.6.0-050600.202003292333_all.deb
Once the file has been successfully downloaded, you must now download the kernel as such.
:~$ wget -c https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.6/linux-image-unsigned-5.6.0-050600-generic_5.6.0-050600.202003292333_amd64.deb
Finally, it is necessary to download the file where the kernel driver modules are located. If this the kernel will be useless.
:~$ wget -c https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.6/linux-modules-5.6.0-050600-generic_5.6.0-050600.202003292333_amd64.deb
Once the files have been downloaded successfully, it’s time to install them.
:~$ sudo dpkg -i *.deb Selecting previously unselected package linux-headers-5.6.0-050600. (Reading database … 66454 files and directories currently installed.) Preparing to unpack linux-headers-5.6.0-050600_5.6.0-050600.202003292333_all.deb … Unpacking linux-headers-5.6.0-050600 (5.6.0-050600.202003292333) … Selecting previously unselected package linux-image-unsigned-5.6.0-050600-generic. Preparing to unpack linux-image-unsigned-5.6.0-050600-generic_5.6.0-050600.202003292333_amd64.deb … Unpacking linux-image-unsigned-5.6.0-050600-generic (5.6.0-050600.202003292333) … Selecting previously unselected package linux-modules-5.6.0-050600-generic. Preparing to unpack linux-modules-5.6.0-050600-generic_5.6.0-050600.202003292333_amd64.deb … Unpacking linux-modules-5.6.0-050600-generic (5.6.0-050600.202003292333) … Setting up linux-headers-5.6.0-050600 (5.6.0-050600.202003292333) … Setting up linux-modules-5.6.0-050600-generic (5.6.0-050600.202003292333) … Setting up linux-image-unsigned-5.6.0-050600-generic (5.6.0-050600.202003292333) … I: /vmlinuz is now a symlink to boot/vmlinuz-5.6.0-050600-generic I: /initrd.img is now a symlink to boot/initrd.img-5.6.0-050600-generic Processing triggers for linux-image-unsigned-5.6.0-050600-generic (5.6.0-050600.202003292333) … /etc/kernel/postinst.d/initramfs-tools: update-initramfs: Generating /boot/initrd.img-5.6.0-050600-generic I: The initramfs will attempt to resume from /dev/sda3 I: (UUID=0ada7cfa-745c-11ea-8fe3-0800277dafa2) I: Set the RESUME variable to override this. /etc/kernel/postinst.d/x-grub-legacy-ec2: locale: Cannot set LC_ALL to default locale: No such file or directory Searching for GRUB installation directory … found: /boot/grub Searching for default file … found: /boot/grub/default Testing for an existing GRUB menu.lst file … found: /boot/grub/menu.lst Searching for splash image … none found, skipping … Found kernel: /boot/vmlinuz-4.15.0-20-generic Found kernel: /boot/vmlinuz-5.6.0-050600-generic Found kernel: /boot/vmlinuz-4.15.0-20-generic Replacing config file /run/grub/menu.lst with new version Updating /boot/grub/menu.lst … done
And so the installation will begin.
So, reboot the system and finally check the installed kernel.
:~$ uname -r
So, everything went ok and now you can enjoy the new kernel.
Remember if the system is ok, do not upgrade the kernel. Please share this post and join our Telegram Channel.