Failed kernel update Mx-23  [Solved]

Help for Current Versions of MX
When asking for help, use Quick System Info from MX Tools. It will be properly formatted using the following steps.
1. Click on Quick System Info in MX Tools
2. Right click in your post and paste.
Message
Author
User avatar
Pakos
Posts: 58
Joined: Sat Feb 13, 2021 1:10 pm

Re: Failed kernel update Mx-23

#31 Post by Pakos »

Asked ChatGPT for help and solved the remaining issues by doing this:
Errors encountered while processing:
linux-headers-6.9.9-1-liquorix-amd64
linux-image-6.9.9-1-liquorix-amd64

Code: Select all

sudo apt-get remove --purge linux-headers-6.9.9-1-liquorix-amd64 linux-image-6.9.9-1-liquorix-amd64
sudo apt-get autoremove
sudo apt-get clean
sudo apt-get update
sudo apt-get dist-upgrade
After that, I went into "grub customizer" and removed the broken default boot entry, replacing it with the older kernel entry. Both the error in the terminal and the issue at boot up are gone. I'm not sure if I only masked the problem, but my machine is back to its previous working normal state again.

I bet if I had tried and had a little courage, I could have solved it myself. However, I was quite nervous since it went completely wrong the last time I attempted to fix it on my own. Nonetheless, I really appreciate it. Thank you so much, everyone.

Charlie Brown

Re: Failed kernel update Mx-23

#32 Post by Charlie Brown »

Ok but if I knew that you wanted to remove the Liquorix kernel, too: You could do all of these with 1-2 clicks with "MX Cleanup".

Yes, you could do it yourself however those half installed / stuck 6.1.0-23 should've been removed this way only. Otherwise, no matter what you do (autoremove , Synaptic etc..) it would go on showing that "E: Sub-process /usr/bin/dpkg returned an error code (1)" during all kinds of updates, installing/removing anything ...

Glad to hear it's ok now.


P.S. In case you want the auto-update (for the default 6.1 kernel) back: (re)install those two packages ( linux-headers-amd64 , linux-image-amd64 ), or (re)install the "Debian 64bit" kernel from MXPI ..

User avatar
Pakos
Posts: 58
Joined: Sat Feb 13, 2021 1:10 pm

Re: Failed kernel update Mx-23

#33 Post by Pakos »

Charlie Brown wrote: Fri Jul 19, 2024 2:57 pm Ok, but if I knew that you wanted to remove the Liquorix kernel too, you could do all of these with 1-2 clicks using "MX Cleanup".
Oh, I assumed we needed to delete the Liquorix kernel since the installation we both were trying to achieve failed earlier.
Yes, you could do it yourself; however, those half-installed/stuck 6.1.0-23 versions should've been removed this way only. Otherwise, no matter what you do (autoremove, Synaptic, etc.), it would continue showing "E: Sub-process /usr/bin/dpkg returned an error code (1)" during all kinds of updates, installations, or removals.

P.S. In case you want the auto-update (for the default 6.1 kernel) back, (re)install those two packages (linux-headers-amd64, linux-image-amd64), or (re)install the "Debian 64bit" kernel from MXPI.
It seemed to fail again, like it did with the Liquorix kernel install.

This is from MXPI:

Code: Select all

Geraakt:1 http://nl.mxrepo.com/mx/repo bookworm InRelease
Geraakt:2 http://deb.debian.org/debian bookworm-updates InRelease
Geraakt:3 http://security.debian.org/debian-security bookworm-security InRelease
Geraakt:4 http://deb.debian.org/debian bookworm InRelease
Ophalen:5 https://packages.microsoft.com/repos/edge stable InRelease [3.590 B]
Ophalen:6 https://packages.microsoft.com/repos/edge stable/main amd64 Packages [9.260 B]
12,8 kB opgehaald in 1s (11,4 kB/s)
Pakketlijsten worden ingelezen...
Pakketlijsten worden ingelezen...
Boom van vereisten wordt opgebouwd...
De statusinformatie wordt gelezen...
linux-image-6.6.11-amd64-unsigned is reeds de nieuwste versie (6.6.11-1~mx23ahs).
linux-headers-6.6.11-amd64 is reeds de nieuwste versie (6.6.11-1~mx23ahs).
broadcom-sta-dkms is reeds de nieuwste versie (6.30.223.271-23).
rtl8812au-dkms is reeds de nieuwste versie (5.13.6+git20240329-1~mx23).
rtl8821cu-dkms is reeds de nieuwste versie (5.12.0+git20230215-1~mx23+3).
0 opgewaardeerd, 0 nieuw geïnstalleerd, 0 te verwijderen en 36 niet opgewaardeerd.
2 niet volledig geïnstalleerd of verwijderd.
Na deze bewerking zal er 0 B extra schijfruimte gebruikt worden.
Wilt u doorgaan? [J/n] 
jInstellen van linux-image-6.6.11-amd64-unsigned (6.6.11-1~mx23ahs) .../etc/kernel/postinst.d/dkms:
dkms: running auto installation service for kernel 6.6.11-amd64./usr/sbin/dkms.mx autoinstall --kernelver 6.6.11-amd64Sign command: /lib/modules/6.6.11-amd64/build/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pubThe /var/lib/dkms/rtl8821cu/5.12.0/6.6.11-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. Skipping...Sign command: /lib/modules/6.6.11-amd64/build/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub
Building module:(bad exit status: 1)Error! Bad return status for module build on kernel: 6.6.11-amd64 (x86_64)
Consult /var/lib/dkms/rtl88x2bu/"@PKGVER@"/build/make.log for more information.Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
dkms: autoinstall for kernel: 6.6.11-amd64 failed!
run-parts: /etc/kernel/postinst.d/dkms exited with return code 11
dpkg: fout bij verwerken van pakket linux-image-6.6.11-amd64-unsigned (--configure):
 subproces van pakket linux-image-6.6.11-amd64-unsigned werd script post-installation geïnstalleerd gaf de foutwaarde 1 terug
dpkg: vereistenproblemen verhinderen de configuratie van linux-headers-6.6.11-amd64:
 linux-headers-6.6.11-amd64 is afhankelijk van linux-image-6.6.11-amd64 (= 6.6.11-1~mx23ahs) | linux-image-6.6.11-amd64-unsigned (= 6.6.11-1~mx23ahs); maar:
  Pakket linux-image-6.6.11-amd64 is niet geïnstalleerd.
  Pakket linux-image-6.6.11-amd64-unsigned is nog niet geconfigureerd.

dpkg: fout bij verwerken van pakket linux-headers-6.6.11-amd64 (--configure):
 vereistenproblemen - blijft ongeconfigureerdFouten gevonden tijdens verwerken van:
 linux-image-6.6.11-amd64-unsigned
 linux-headers-6.6.11-amd64
E: Sub-process /usr/bin/dpkg returned an error code (1)
Geraakt:1 http://deb.debian.org/debian bookworm-updates InRelease
Geraakt:2 http://security.debian.org/debian-security bookworm-security InRelease
Geraakt:3 http://nl.mxrepo.com/mx/repo bookworm InRelease
Geraakt:4 http://deb.debian.org/debian bookworm InRelease
Geraakt:5 https://packages.microsoft.com/repos/edge stable InRelease
Pakketlijsten worden ingelezen...

Charlie Brown

Re: Failed kernel update Mx-23  [Solved]

#34 Post by Charlie Brown »

Ok, but the the one you tried to install is 6.6.x , not the 6.1 that would auto-update . (Others won't, other than the Liquorix auto-update package).

Post Reply

Return to “MX Help”