Thursday, February 22, 2024
 Popular · Latest · Hot · Upcoming
rated 0 times [  32] [ 0]  / answers: 1 / hits: 79848  / 2 Years ago, sun, october 31, 2021, 8:47:02

I want to update my Kernel to the latest stable version which is v5.16.1

I followed a guide which showed how to install kernel 5.16. Everything went fine until I received this error:

dpkg: dependency problems prevent configuration of linux-headers-5.16.1-051601-generic:
linux-headers-5.16.1-851601-generic depends on libc6 (>= 2.34); however:
Version of libc6:amd64 on system is 2.31-8ubuntu9.2.
linux-headers-5.16.1-851601-generic depends on libssl3 (>= 3.8.0--alphal); however:
Package libssl3 is not installed.

dpkg: error processing package linux-headers-5.16.1-051601-generic (--install):
dependency problems - leaving unconfigured Setting up linux-image-unsigned-5.16.1-051601-generic (5.16.1-051601.282201160933) ...
I: /boot/vmlinuz.old is now a symlink to vmlinuz-5.13.0-27-generic
I: /boot/initrd.img.old is now a symlink to initrd.img-5.13.0-27-generic
I: /boot/vmlinuz is now a symlink to vmlinuz-5.16.1-051601-generic
I: /boot/initrd.img is now a symlink to initrd.img-5.16.1-051601-generic
Setting up linux-modules-5.16.1-051601-generic (5.16.1-051601.202201160933)
Processing triggers for linux-image-unsigned-5.16.1-051601-generic (5.16.1-051601.202201160933)
update-initramfs: Generating /boot/initrd.img-5.16.1-851681-generic
I: The initramfs will attempt to resume from /dev/sda2
I: (UUID=91b5f7d6-87fe-498a-a823-88828fa8256a)
I: Set the RESUME variable to override this.
Sourcing file 7etc/default/grub.
Sourcing file 7etc/default/grub.d/99_breeze-grub.cfg.
Sourcing file 7etc/default/grub.d/init-select.cfg. Generating grub configuration file ...
Found theme: /boot/grub/themes/breeze/theme.txt
Found linux image: /boot/vmlinuz-5.16.1-851681-generic
Found initrd image: /boot/initrd.img-5.16.1-051601-generic
Found linux image: /boot/vmlinuz-5.15.15-051515-generic
Found initrd image: /boot/initrd.img-5.15.15-851515-generic
Found linux image: /boot/vmlinuz-5.13.8-27-generic
Found initrd image: /boot/initrd.img-5.13.8-27-generic
Found linux image: /boot/vmlinuz-5.11.0-46-generic
Found initrd image: /boot/initrd.img-5.11.0-46-generic
Found linux image: /boot/vmlinuz-5.4.0-96-generic
Found initrd image: /boot/initrd.img-5.4.0-96-generic
Found memtest86+ image: /boot/memtest86+.elf
Found memtest86+ image: /boot/memtest86+.bin
Errors were encountered while processing:

What are the dependencies and why are not they installed automatically while updating the kernel? I need a step by step guide to update the kernel to the latest one. Please help. I watched many youtube videos and they didn't have this error even after following the exact same steps.

I didn't get any satisfactory answers to this problem, please help me. My os is fully up-to-date. I'm new to linux and I can't use linux because of this problem because I want the latest kernel.

Hardware info:

  • OS : Kubuntu 21.10 (Currently running Kernel 5.13)

  • CPU: i3-8100

  • Storage: 250GB NVMe M.2 SSD

  • GPU : Nvidia GeForce GTX 1650

  • RAM: 8GB 2400 MHz

More From » kernel


NOTE: Make sure to disable secure boot from BIOS settings before proceeding. If you don't want to disable Secure Boot, you've to manually sign the kernel. This answer may help.

A few points to note:

  • The kernel you want to install is 5.16.1 whereas the tutorial you're following shows the method to install 5.16.

  • 5.16 is a mainline kernel.

  • Ubuntu uses the latest stable LTS kernel instead of the latest stable kernel.

  • You should not upgrade your kernel manually unless you want some specific driver support.

  • As of Jan 20, 2022, there is no easy way to install 5.16.1 except compiling from the source. You can get the Tarball from its official website (direct link). Compiling is easy but installing dependencies and configuring installation is hard. You'll more likely face errors.

  • Manual kernel installations do not upgrade automatically with apt upgrade. You need to manually upgrade them each time or use the script mentioned below in this answer.

Fixing the installation issue

It's because of a dependency issue, running a force install will fix it:

sudo apt -f install

Preferably, you can use aptitude for a better result:

sudo aptitude -f install

Alternative way to install kernel 5.16

Alternatively, running the below commands will also install the kernel v5.16:

cd ~/Downloads 

wget -c
wget -c
wget -c
wget -c

sudo dpkg -i *.deb
sudo apt -f install

Installing the latest kernel.

The title says that you want to install the latest kernel, you can use an automated script to install the latest kernel:

  1. Install the shell script which automatically checks and install the latest kernel:

    sudo install /usr/local/bin/

  2. Run the shell script:

    sudo -c     

  3. Install the latest stable kernel:

    sudo -i

  4. Press Y to accept the installation.

  5. Reboot to boot into the latest kernel:

    sudo reboot      

for the future, if you'd like to recheck and reinstall the latest stable kernel, you can simply run:

sudo -i

Note: You can check the kernel you are using, using the following command:

uname -r

[#844] Tuesday, November 2, 2021, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.

Total Points: 118
Total Questions: 95
Total Answers: 117

Location: Virgin Islands (U.S.)
Member since Tue, Jul 7, 2020
4 Years ago
erranbe questions