Kernel Update Issue

Message
Author
rej
Posts: 160
Joined: Thu Mar 09, 2017 10:11 pm

Kernel Update Issue

#1 Post by rej »

Hi-

Today's update was stalled at 82%, while I assume involved kernels - "depmod" or something.

Long ago, as I did not want kernels to update and had uninstalled:

Code: Select all

linux-image-amd64 meta-package

linux-headers-amd64
And this is likely why the update issue stalled.

Went to reinstall them to get past this and Synaptic dialogue box popped up:

Code: Select all

E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem. 
E: _cache->open() failed, cannot continue.
Ran it and it stuck at:

Code: Select all

rj@mx23-rj:~
$ sudo dpkg --configure -a
[sudo] password for rj:    
Setting up rtl8821cu-dkms (5.12.0+git20250219-1~mx23+1) ...
Removing old rtl8821cu-5.12.0 DKMS files...
/usr/sbin/dkms.mx remove -m rtl8821cu -v 5.12.0 --all
Deleting module rtl8821cu-5.12.0 completely from the DKMS tree.
Loading new rtl8821cu-5.12.0 DKMS files...
/usr/sbin/dkms.mx add -m rtl8821cu -v 5.12.0
Building for 6.1.0-12-amd64
/usr/sbin/dkms.mx status -m rtl8821cu -v 5.12.0 -k 6.1.0-12-amd64
Building initial module for 6.1.0-12-amd64
/usr/sbin/dkms.mx build -m rtl8821cu -v 5.12.0 -k 6.1.0-12-amd64 -k 6.1.0-12-amd64 -k 6.1.0-11-amd64 -k 6.1.0-10-amd64 -a x86_64
Could it be fixed by manually installing those files uninstalled files through terminal, and if so, how?

I tried "sudo apt install linux-image-amd64 meta-package", which responded with:

"E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem."

Is there any way to fix this?

User avatar
dolphin_oracle
Developer
Posts: 22293
Joined: Sun Dec 16, 2007 12:17 pm

Re: Kernel Update Issue

#2 Post by dolphin_oracle »

the update probably didn't stall. we updated a bunch of dkms packages so that they won't build on 6.14 and up, because they are included in the 6.14 kernel. but the update could take a while, depeding on hardware.

if you don't need those drivers, remove them wit mx-cleanup, which will remove any unused wifi dkms packages.
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.

User avatar
Tallguy43
Posts: 3
Joined: Sat Apr 12, 2025 8:19 pm

Re: Kernel Update Issue

#3 Post by Tallguy43 »

I am having the same issue with my update. I had the installation pause at about 73% for a long time. Like earlier poster I interrupted the install.

dpkg --configure -a produces the following dialog.

S****@mxS****~
$ sudo dpkg --configure -a
[sudo] password for S****:
Setting up rtl8821cu-dkms (5.12.0+git20250219-1~mx23+1) ...
Removing old rtl8821cu-5.12.0 DKMS files...
/usr/sbin/dkms.mx remove -m rtl8821cu -v 5.12.0 --all
Deleting module rtl8821cu-5.12.0 completely from the DKMS tree.
Loading new rtl8821cu-5.12.0 DKMS files...
/usr/sbin/dkms.mx add -m rtl8821cu -v 5.12.0
Building for 6.1.0-31-amd64 6.1.0-33-amd64
/usr/sbin/dkms.mx status -m rtl8821cu -v 5.12.0 -k 6.1.0-31-amd64
Building initial module for 6.1.0-31-amd64
/usr/sbin/dkms.mx build -m rtl8821cu -v 5.12.0 -k 6.1.0-31-amd64 -k 6.1.0-31-amd64 -k 6.1.0-33-amd64 -k 6.1.0-32-amd64 -a x86_64

I attempted to use Mx Cleanup to remove rtl8821cu and got prompted to repeat "dpkg --configure -a"

My system runs without any apparent errors but I assume that dpkg is broken.

-----------------------------------------------------------

Code: Select all

System:
  Kernel: 6.1.0-31-amd64 [6.1.128-1] arch: x86_64 bits: 64 compiler: gcc v: 12.2.0
    parameters: BOOT_IMAGE=/boot/vmlinuz-6.1.0-31-amd64 root=UUID=<filter> ro quiet nomodeset splash
    init=/lib/systemd/systemd
  Desktop: Xfce v: 4.20.0 tk: Gtk v: 3.24.38 info: xfce4-panel wm: xfwm v: 4.20.0 vt: 7
    dm: LightDM v: 1.32.0 Distro: MX-23.5_x64 Libretto Jan 12  2025 base: Debian GNU/Linux 12
    (bookworm)
Machine:
  Type: Laptop System: Dell product: Latitude 7390 v: N/A serial: <superuser required> Chassis:
    type: 10 serial: <superuser required>
  Mobo: Dell model: 0MXW44 v: A07 serial: <superuser required> UEFI: Dell v: 1.41.0
    date: 11/06/2024

User avatar
dolphin_oracle
Developer
Posts: 22293
Joined: Sun Dec 16, 2007 12:17 pm

Re: Kernel Update Issue

#4 Post by dolphin_oracle »

so building the dkms packages for three kenrels is going to take a while.

run the dpkg --configure -a command and let it finish.
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.

User avatar
Tallguy43
Posts: 3
Joined: Sat Apr 12, 2025 8:19 pm

Re: Kernel Update Issue

#5 Post by Tallguy43 »

How long would you guess? Running this in terminal does not give any feedback as to progress. Are we talking minutes? hours?

User avatar
siamhie
Global Moderator
Posts: 3390
Joined: Fri Aug 20, 2021 5:45 pm

Re: Kernel Update Issue

#6 Post by siamhie »

Tallguy43 wrote: Sat Apr 12, 2025 9:06 pm How long would you guess? Running this in terminal does not give any feedback as to progress. Are we talking minutes? hours?
As long as it takes to make sure it works.
This is my Fluxbox . There are many others like it, but this one is mine. My Fluxbox is my best friend. It is my life.
I must master it as I must master my life. Without me, my Fluxbox is useless. Without my Fluxbox, I am useless.

rej
Posts: 160
Joined: Thu Mar 09, 2017 10:11 pm

Re: Kernel Update Issue

#7 Post by rej »

dolphin_oracle wrote: Sat Apr 12, 2025 8:41 pm so building the dkms packages for three kenrels is going to take a while.

run the dpkg --configure -a command and let it finish.
Hi Dolphin -

You are right - guess this computer is pretty slow.

Thank you!

User avatar
Tallguy43
Posts: 3
Joined: Sat Apr 12, 2025 8:19 pm

Re: Kernel Update Issue

#8 Post by Tallguy43 »

Dolphin, Siamhie

My problem finally resolved by letting "dpkg --configure -a" run for a lengthy period of time. I wasn't watching closely, but I'd guess a little over an hour.

Thanks for the feedback!

Scott

User avatar
Stevo
Developer
Posts: 14612
Joined: Fri Dec 15, 2006 7:07 pm

Re: Kernel Update Issue

#9 Post by Stevo »

Use MX Cleanup to remove unused wifi drivers to really speed that up.
MXPI = MX Package Installer
QSI = Quick System Info from menu
The MX Test repository is mostly backports; not the same as Debian testing

User avatar
Eadwine Rose
Administrator
Posts: 14712
Joined: Wed Jul 12, 2006 2:10 am

Re: Kernel Update Issue

#10 Post by Eadwine Rose »

I did that for the first time, and boy did that make a massive difference! Should have done that a long time ago, so yeah, can recommend!
MX-23.6_x64 July 31 2023 * 6.1.0-37amd64 ext4 Xfce 4.20.0 * 8-core AMD Ryzen 7 2700
Asus TUF B450-Plus Gaming UEFI * Asus GTX 1050 Ti Nvidia 535.247.01 * 2x16Gb DDR4 2666 Kingston HyperX Predator
Samsung 870EVO * Samsung S24D330 & P2250 * HP Envy 5030

Post Reply

Return to “Software / Configuration”