New Kernel issue

Hi!

I am using:
UM 24.10
Kernel 6.11.0-9
Mate 1.26.2

I got an update notice for a new kernel. I triggered the update.
When rebooting under the new kernel It says:
'cryptsetup: Waiting for encrypted source device...'
then I get dropped to shell
So I rebooted under the previous 6.11.0-9 kernel so I can work
trying to force reinstall the new kernel doesn't solve the issue

So...

I tried this: 'sudo aptitude -f install'

And I get this:

Summary:
Upgrading: 0, Installing: 0, Removing: 0, Not Upgrading: 1
2 not fully installed or removed.
Space needed: 0 B / 356 GB available
Setting up linux-image-unsigned-6.12.3-061203-generic (6.12.3-061203.202412060638) ...
Setting up linux-headers-6.12.3-061203-generic (6.12.3-061203.202412060638) ...
/etc/kernel/header_postinst.d/dkms:

  • dkms: running auto installation service for kernel 6.12.3-061203-generic
    Sign command: /usr/bin/kmodsign
    Signing key: /var/lib/shim-signed/mok/MOK.priv
    Public certificate (MOK): /var/lib/shim-signed/mok/MOK.der
    Building module:
    Cleaning build area...
    'make' -j8 KLIB=/lib/modules/6.12.3-061203-generic KLIB_BUILD=/lib/modules/6.12.3-061203-generic/build....(bad exit status: 2)
    ERROR (dkms apport): kernel package linux-headers-6.12.3-061203-generic is not supported
    Error! Bad return status for module build on kernel: 6.12.3-061203-generic (x86_64)
    Consult /var/lib/dkms/backport-iwlwifi/0~89.12325-git36c5be1a/build/make.log for more information.
    dkms autoinstall on 6.12.3-061203-generic/x86_64 failed for backport-iwlwifi(10)
    Error! One or more modules failed to install during autoinstall.
    Refer to previous errors for more information.
  • dkms: autoinstall for kernel 6.12.3-061203-generic
    ...fail!
    run-parts: /etc/kernel/header_postinst.d/dkms exited with return code 11
    dpkg: error processing package linux-headers-6.12.3-061203-generic (--configure):
    installed linux-headers-6.12.3-061203-generic package post-installation script
    subprocess returned error exit status 11
    Processing triggers for linux-image-unsigned-6.12.3-061203-generic (6.12.3-06120 3.202412060638) ...
    /etc/kernel/postinst.d/dkms:
  • dkms: running auto installation service for kernel 6.12.3-061203-generic
    Sign command: /usr/bin/kmodsign
    Signing key: /var/lib/shim-signed/mok/MOK.priv
    Public certificate (MOK): /var/lib/shim-signed/mok/MOK.der

Building module:
Cleaning build area...
'make' -j8 KLIB=/lib/modules/6.12.3-061203-generic KLIB_BUILD=/lib/modules/6.12.
3-061203-generic/build....(bad exit status: 2)
ERROR (dkms apport): kernel package linux-headers-6.12.3-061203-generic is not s
upported
Error! Bad return status for module build on kernel: 6.12.3-061203-generic (x86_
64)
Consult /var/lib/dkms/backport-iwlwifi/0~89.12325-git36c5be1a/build/make.log for
more information.
dkms autoinstall on 6.12.3-061203-generic/x86_64 failed for backport-iwlwifi(10)
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.

  • dkms: autoinstall for kernel 6.12.3-061203-generic
    ...fail!
    run-parts: /etc/kernel/postinst.d/dkms exited with return code 11
    dpkg: error processing package linux-image-unsigned-6.12.3-061203-generic (--con
    figure):
    installed linux-image-unsigned-6.12.3-061203-generic package post-installation
    script subprocess returned error exit status 11
    Errors were encountered while processing:
    linux-headers-6.12.3-061203-generic
    linux-image-unsigned-6.12.3-061203-generic
    Error: Sub-process /usr/bin/dpkg returned an error code (1)

W

Find anything in there ^ ?

2 Likes

Right in the first lines I see this warning:

DKMS make.log for backport-iwlwifi-0~89.12325-git36c5be1a for kernel 6.12.3-061203-generic (x86_64)
Fri 13 Dec 20:54:06 EST 2024
Generating local configuration database from kernel ... done.
cc -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer -c -o conf.o conf.c
cc -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer -c -o zconf.tab.o zconf.tab.c
cc conf.o zconf.tab.o -o conf
#configuration written to .config
make[5]: 'conf' is up to date.
#configuration written to .config
Building backport-include/backport/autoconf.h ... done.
warning: the compiler differs from the one used to build the kernel
The kernel was built by: x86_64-linux-gnu-gcc-14 (Ubuntu 14.2.0-4ubuntu2) 14.2.0
You are using: gcc-14 (Ubuntu 14.2.0-4ubuntu2) 14.2.0

Over 224 lines in total. In some of them the lines end with either 'Error 1' or 'Error 2' (I humbly have no idea of implication)

W

Just tonight something called 'Berkekey 5.6'...something
Tried to instanl as an update. Connected to kernel 6.12.3
Something failed.

W

Just got an update email from
https://bugzilla.kernel.org/show_bug.cgi?id=219447
It says a patch was added to the 6.12 queue
https://git.kernel.org/pub/scm/linux/kernel/git/stable/stable-queue.git/commit/?id=ab6659f3b7149f1a8521d0f91cd14fa2c13d107e
Would it be connected with the fail I faced ?

W

I've never attempted to install something like a mainline kernel (or non-distro kernel packages), let alone had it fail. So I am stabbing in the dark.

It looks like when you attempted to install the kernel (module) package, it has failed to build a backported iwlwifi (DKMS) module. I have no idea what the consequences are when a DKMS fails to build during this process; but maybe this is causing some later post-installation step to be skipped; hence the failure to boot.

I'd guess that that bug fix is not related, because it doesn't look related to build failures.

I'm a little curious as to why a 'backported' iwlwifi module is in play at all for such a new kernel and system (24.10).

1 Like

If you're puzzled... I'm lost :sweat_smile:

W

1 Like

What's the output of apt list --installed *iwlwifi*?

1 Like

apt list --installed iwlwifi
backport-iwlwifi-dkms/oracular,now 1:0~89.12325-git36c5be1a-0ubuntu1 all [installed]
linux-modules-iwlwifi-6.11.0-12-generic/oracular-updates,oracular-security,now 6.11.0-12.13 amd64 [installed,automatic]
linux-modules-iwlwifi-6.11.0-9-generic/oracular-updates,now 6.11.0-9.9 amd64 [installed,automatic]
linux-modules-iwlwifi-generic/oracular-updates,oracular-security,now 6.11.0-12.13 amd64 [installed]

W

Software Updater just triggered this:


I accepted and got this:

but apt list --installed iwlwifi gives me this:
backport-iwlwifi-dkms/oracular,now 1:0~89.12325-git36c5be1a-0ubuntu1 all [installed]
linux-modules-iwlwifi-6.11.0-12-generic/oracular-updates,oracular-security,now 6.11.0-12.13 amd64 [installed,auto-removable]
linux-modules-iwlwifi-6.11.0-13-generic/oracular-updates,now 6.11.0-13.14 amd64 [installed,automatic]
linux-modules-iwlwifi-6.11.0-9-generic/oracular-updates,now 6.11.0-9.9 amd64 [installed,automatic]
linux-modules-iwlwifi-generic/oracular-updates,now 6.11.0-13.14 amd64 [installed]

Moments ago I got a notification to restart my system for use of new software version... not knowing which it was related to. SO I did restart.
Given it goes to 6.12 first, I got this


I rebooted and tried with 6.11.0-13 and got

So I rebooted with 6.11.0-9, which works
The first two has install problems (even though I was simply activating the 'Software Updater')

This is too far away from what I can understand

W

So 6.11.0-13 is not working?

No or partly. It lead to the screen waiting for the encrypted device.

I guess I'm better (for now) to remove these two that have problems.

Advice ?

'dpkg -l | grep linux-image' get me this:
rc linux-image-6.11.0-12-generic 6.11.0-12.13 amd64 Signed kernel image generic
ii linux-image-6.11.0-13-generic 6.11.0-13.14 amd64 Signed kernel image generic
rc linux-image-6.11.0-8-generic 6.11.0-8.8 amd64 Signed kernel image generic
ii linux-image-6.11.0-9-generic 6.11.0-9.9 amd64 Signed kernel image generic
iF linux-image-unsigned-6.12.3-061203-generic 6.12.3-061203.202412060638 amd64 Linux kernel image for version 6.12.3 on 64 bit x86 SMP

W

p.s. by the way the Software Updater was indicating that 6.11.0-8.8 was flushed, given the updates... and I see it here.

I figured that "ii" stands for "installed, and successfully installed/configured." and that "rc" stands for "removed, but the configuration files are still present."

As a hail mary ... trysudo update-initramfs -u -k all.

1 Like

Do you know if you need the backports iwlwifi dkms for your wifi? It's not always necessary on newer kernels. Obviously, if removing it disables your wifi, then that's not going to be a solution.

1 Like

With: sudo update-initramfs -u -k all
I got this:
update-initramfs: Generating /boot/initrd.img-6.11.0-13-generic
update-initramfs: Generating /boot/initrd.img-6.11.0-9-generic

So I guess it seems having worked for these two

W

2 Likes

I guess it does, if the whole exchange I got here (UM 24.10 no wifi) is of any indication

W

1 Like

Right, I remember that issue. So the backport solved the wifi problems you were having?

1 Like

Frankly, no idea what solved it, since it apparently solved itself by one of the random pushed updates... But I do connect as usual now, yes.

W

2 Likes

From the previous issue, it looks like you have: Intel Wi-Fi 6 AX201. That has been supported in the kernel since 5.2 (see https://www.intel.com/content/www/us/en/support/articles/000005511/wireless.html).

I would suggest removing the backport; especially as that module failed to build.

Of course, if the wifi drops out again ... then we're really stuck!

1 Like