r/MXLinux • u/ARush1007 • Aug 25 '24
Solved Can't Update to latest Debian kernel 6.10.4 with error
SOLUTION AT BOTTOM OF POST:
- Installation
- Installing to /lib/modules/6.10.4-amd64/updates/dkms/Sign command: /lib/modules/6.10.4-amd64/build/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pubDeprecated feature: MODULES_CONF (/var/lib/dkms/rtl8821ce/5.5.2.1+git20240526/source/dkms.conf)
Building module:Signing module /var/lib/dkms/rtl8821ce/5.5.2.1+git20240526/build/rtl8821ce.ko
rtl8821ce.ko.xz:
Running module version sanity check. - Original module - No original module exists within this kernel
- Installation
- Installing to /lib/modules/6.10.4-amd64/updates/dkms/Sign command: /lib/modules/6.10.4-amd64/build/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pubError! The /var/lib/dkms/rtl8821cu/5.12.0/6.10.4-amd64/x86_64/dkms.conf for module rtl8821cu includes a BUILD_EXCLUSIVE directive which does not match this kernel/arch/config.
This indicates that it should not be built.Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
dkms: autoinstall for kernel: 6.10.4-amd64 failed!
run-parts: /etc/kernel/postinst.d/dkms exited with return code 11
dpkg: error processing package linux-image-6.10.4-amd64-unsigned (--configure):
installed linux-image-6.10.4-amd64-unsigned package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of linux-headers-6.10.4-amd64:
linux-headers-6.10.4-amd64 depends on linux-image-6.10.4-amd64 (= 6.10.4-1~mx23ahs) | linux-image-6.10.4-amd64-unsigned (= 6.10.4-1~mx23ahs); however:
Package linux-image-6.10.4-amd64 is not installed.
Package linux-image-6.10.4-amd64-unsigned is not configured yet.
dpkg: error processing package linux-headers-6.10.4-amd64 (--configure):
dependency problems - leaving unconfiguredErrors were encountered while processing:
linux-image-6.10.4-amd64-unsigned
linux-headers-6.10.4-amd64
E: Sub-process /usr/bin/dpkg returned an error code (1)
This is where it fails according to console output using MX Package Installer for the newest kernel, and I have to purge the new kernel in order to remove it from the boot menu, which simply kernel panics saying it cannot mount the root FS, which is expected.
It has something to do with my onboard Wifi/Bluetooth chip on my Asrock PG velocita z690 motherboard. I'm not sure what to do after googling for a couple days and reading other things about modules. I found similar posts on the ubuntu forums with this problem but they only give solutions for the current kernel I'm using, 6.1. I thought about disabling it in the BIOS and seeing if the installation succeeds but wouldn't I be left without Wifi/Bluetooth in the new kernel even if I re-enabled it afterwards?
I use systemd only and any suggestions or responses are greatly appreciated. I'm willing to post any additional info that may be required to help with this issue. You'd think my motherboard is new enough that it would be supported in the new kernel but maybe something else is going on. Thanks for any help.
ISSUE SOLVED:
It's a known issue
sudo dkms remove rtl8812CU/<kernel name> --all
Then I used the Package Installer and everything installed just fine.
Fixed it, and I'm now on:
Linux MainRigMxLinux 6.10.4-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.10.4-1~mx23ahs (2024-08-14) x86_64 GNU/Linux
With zero issues! Wifi and Bluetooth work and so does Ethernet along with everything else. Feels snappier too, but it might just be the placebo effect. Very pleased. Thank you for your help. I was about to literally shave my head and join a cult or something this was bothering me so much.
3
u/siamhie Aug 25 '24
Do you have a device that uses the rtl8821cu driver? You can open MX Cleanup and run "remove unused wifi drivers". If that driver gets removed then you can try and install 6.10 again.
2
u/HCharlesB Aug 25 '24
The modules for this driver have not been updated to work with the 6.10 kernel. If you know where the package for this module is coming from, you can watch that to see when it is updated and try again.
You are correct that if you disable the WiFi/BT H/W you will not have WiFi/BT and if the H/W depends on this module, re-enabling it after the new kernel is built will not get it working. Disabling the H/W may not result in a successful build. You would need to change the configuration for the build to not include this module. (I'm speculating on this - I'm more familiar with Debian and the kernel configuration determines which modules get built, not the actual H/W.)
I'm not sure of the context here. If this kernel is packaged by the MX devs, it is something they should fix (or hold off publishing a kernel that does not build.) If you're following instructions to download and build a newer kernel, then it is your responsibility to make sure that all required modules are compatible.
I've run into similar problems with ZFS on Debian Testing. The kernel gets updated and the required modules are not so the newest kernel cannot be used (on systems that use ZFS) until that happens. At the moment the ZFS release (https://github.com/openzfs/zfs/releases) is not compatible with 6.10 for example.
2
u/BradfordAdams Aug 25 '24
I have a post a few down from you, that I had an update issue with Nvidia dkms kernel, and broken pipe, the distro was un bootale into systemd but antix still worked, but I needed systemd so attempted to repair (made things absolutely worse) finaly gave up after 2 days and reinstalling the Distro, only after this being the 5th time an MX Linux update killed my OS, I am switching Distros