Score:4

How do I install kernel 5.15.7=> on Ubuntu 21.10 Impish Indri?

my flag

I'm using Ubuntu 21.10 impish indri.

For some specific hardware support, I'm advised to upgrade to kernel 5.16 (mainline). I tried manually installing the .deb files and installing them using dpkg -i. However, I'm getting dependency issues:

The following packages have unmet dependencies:
 linux-headers-5.16.0-051600-generic : Depends: libssl3 (>= 3.0.0~~alpha1) but it is not installable

I ran sudo apt -f install and it suggested removing the 5.16 kernel packages. So, I removed them for now.

How can I install kernel 5.16 on Ubuntu 21.10 impish indri? I've all the repositories enabled with no additional PPAs.

Score:6
my flag

TL;DR: You can manually install the package from 22.04 repositories.

Ubuntu mainline kernel 5.15.7+ and 5.16 bumps the requirement from libssl1.1 (>= 1.1.0) to libssl3 (>= 3.0.0~~alpha1). However, package libssl3 is not available for Ubuntu 21.10 impish indri.. It's only available for Ubuntu 22.04 jammy jellyfish which is not yet released.

libssl3 further depends on libc6>=2.34 and debconf which are available in 21.10 repositories.

So, you can manually install libssl3 from Jammy Jellyfish repositories. You'll not have any problems in doing that unless you've done something really strange with your system.

To install libssl3 on Ubuntu 21.10, run the following commands:

sudo apt update
sudo apt install libc6 debconf
wget http://mirrors.kernel.org/ubuntu/pool/main/o/openssl/libssl3_3.0.1-0ubuntu1_amd64.deb
sudo dpkg -i libssl3_3.0.1-0ubuntu1_amd64.deb
sudo apt -f install

Now, you can install the kernel 5.16 on Ubuntu 21.10 without any issues.

Keep in mind that mainline kernels have not been tested with their release of Ubuntu. That means YOU are doing the testing. You may encounter the unexpected. Ubuntu prefers stable LTS kernels over unstable mainline kernels.

You can use the following commands to install the unsigned kernel 5.16 (don't worry about unsigned unless you are using secure boot):

wget -c https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.16/amd64/linux-headers-5.16.0-051600_5.16.0-051600.202201092355_all.deb
wget -c https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.16/amd64/linux-headers-5.16.0-051600-generic_5.16.0-051600.202201092355_amd64.deb
wget -c https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.16/amd64/linux-image-unsigned-5.16.0-051600-generic_5.16.0-051600.202201092355_amd64.deb
wget -c https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.16/amd64/linux-modules-5.16.0-051600-generic_5.16.0-051600.202201092355_amd64.deb
sudo dpkg -i linux*.deb
sudo apt -f install
user535733 avatar
cn flag
Folks who discover this method should keep in mind that PPA kernels have not been tested with their release of Ubuntu. That means YOU are doing the testing. You may encounter the unexpected. Or it might work just fine. We all hope for the best, but when you wander the untracked wilderness, you should be prepared to encounter a bear.
gq flag
It's true, but for a time I used Arch Linux which uses mainline kernels very shortly after release and I never had any issues. Maybe I was lucky.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.