4

I just manually installed the mainline 5.16.2 kernel. I need it for the new alder lake cpu/igpu support.

The problem is that the headers for this kernel were not installed (and not installable), since a newer version of libc6 is required, as well as libssl.

The following packages have unmet dependencies:
 linux-headers-5.16.2-051602-generic : Depends: libc6 (>= 2.34) but 2.31-0ubuntu9.2 is installed
                                       Depends: libssl3 (>= 3.0.0~~alpha1) but it is not installable

Is there a workaround? If not, I can attempt and compile and configure the kernel from scratch, but all the links and guides I found about that are incredibly old, so I don't trust them.

EDIT: I'm on Kubuntu 20.04. I have an Alder Lake CPU, and also a Nvidia A6000 video card. The integrated graphics on Alder Lake has to provide the video output, so that the A6000 is left alone for computation. That's why I needed the 5.16 kernel.

EDIT2: I solved the problem by uplifting my whole distro to 22.04. Hardly the best solution (for obvious reasons).

Error404
  • 7,440
MadHatter
  • 481
  • 5
  • 17
  • 27
  • 2
    What is your Ubuntu version? Do you have Nvidia card? – N0rbert Jan 24 '22 at 13:50
  • 2
    There is a bug report, and it includes some workarounds. See also here and here. – Doug Smythies Jan 24 '22 at 16:00
  • 1
    You've not provided release details; but packages in your message that meet the requirements are available, but not for all releases. Are you expecting us to guess you're on focal? Why not provide such detail? 5.16 is not a supported kernel for Ubuntu, being only testing, but can be installed if you're on the right release. – guiverc Jan 24 '22 at 22:37
  • Excuse me for not witing a more detailed question. Editing right now. – MadHatter Jan 25 '22 at 14:56
  • To help other users I would recommend to move EDIT2 to the answer section below. – N0rbert Jan 25 '22 at 15:01
  • @N0rbert Why not installing the package manually? My answer explains the reason for the same. – Error404 Jan 25 '22 at 15:33
  • @N0rbert: because it could break something else and/or cause some dependecy hell. Also, I wouldn't move EDIT2 in the answers, for using an alpha distribution is hardly recommendable for any serious usage scenario. I did it only becuase I couldn't do otherwise. – MadHatter Jan 25 '22 at 17:43
  • Ubuntu 22.04 doesn't yet exist; it's currently the development release Ubuntu jammy and remains that until it reaches RC state which isn't expected until after 14 April 2022, and isn't on-topic here until release on 21 April 2022. https://discourse.ubuntu.com/t/jammy-jellyfish-release-schedule/23906 Please refer https://askubuntu.com/help/on-topic. For support issues with Ubuntu jammy you'll need to use a #ubuntu-next or #ubuntu+1 site (IRC, UF etc) – guiverc Jan 25 '22 at 21:05
  • Indeed I did NOT request support about 22.04, not I started any discussion about it. I merely stated that I installed it as a temporary solution. I asked about 20.04, and my question still stands. – MadHatter Jan 26 '22 at 21:38
  • 20.04 is currently transitioning to 20.04.4 if using HWE; the issues you require aren't needed by a focal system until it transitions to 20.04.5 which is ~6 months into the future; testing for it hasn't started yet on a focal base (it's not yet stable in jammy where issues get resolved before it starts getting back-ported to focal after jammy has reached stable and been released). – guiverc Jan 26 '22 at 21:47
  • @N0rbert I can see that kernel 5.16 is available in the tuxinvader PPA. Which is available for 20.04. What about that? Can I post an answer about it? – Error404 Jan 27 '22 at 13:40
  • @N0rbert https://launchpad.net/~tuxinvader/+archive/ubuntu/lts-mainline – Error404 Jan 27 '22 at 13:43
  • Of course you can, but Nvidia driver may fail to compile on this kernel because of its version. This moment needs testing on VM first – N0rbert Jan 27 '22 at 13:52
  • @N0rbert Tested on a VM of Ubuntu 20.04 focal. – Error404 Jan 27 '22 at 15:39
  • 1
    I’m voting to close this question because this can't be answered by anyone. The clear answer is NO, you cannot solve this issue. There's no way to install kernel 5.16 on focal. – Error404 Jan 28 '22 at 05:05

1 Answers1

2

TL;DR: Upgrade your system to 21.10 or wait for 22.04 to be released; Kernel 5.16 is unstable.

There are two problems, libc6 and libssl3.

After reading the above we can conclude that one can NOT install kernel 5.16 on Ubuntu 20.04 LTS focal fossa.

Don't want to lose hope? There are a few things to try.

  • Most of the drivers from 5.16 are also available in 5.13.9, you can try installing that kernel.

  • Upgrade to Ubuntu 21.10

  • Upgrade to Ubuntu 22.04

  • There is a PPA for mainline kernels available for LTS. If you'd like to test the PPA then run the following commands:

    sudo add-apt-repository ppa:tuxinvader/lts-mainline
    sudo apt update
    

    Install the kernel:

    sudo apt update
    sudo apt install linux-5.16.2
    sudo apt -f install
    
  • You may try installing all the packages manually from deb files but they may fully break, It may convert your system to a toaster! Don't go for that.

  • The only thing to try is temporarily adding the Jammy repositories and manually installing the correct version of packages. But Jammy repositories are unstable and they may also convert your system to a toaster!

N.B: If you're using NVIDIA graphics cards, your drivers may fail to compile. Kernel 5.16 is mainline and pretty unstable. Make sure to have a backup before doing something that can convert your system into a toaster ;)

"toaster" means it can make your system unopertable. Just like using Linux on a toaster.

Error404
  • 7,440