Solved Issues upgrading LMDE 5 to 6

Solved issue

SeanK

Active Member
Joined
Mar 18, 2020
Messages
139
Reaction score
89
Credits
984
Well now this has been interesting. I have four laptops, one running Arch which gives no issues, three running LMDE 5 which has been fine until LMDE6 came out. Two of the three failed to upgrade correctly. No big deal with one, its a travel machine I use overseas or on holiday. Simple reformatted and upgraded. The second however is used for business and whilst its all backed up with Timeshift I simply cant get it to upgrade correctly. I've tried recon figuring the dpkg database and auto removing unused software packages.

Here's what I get at the end of the process:

dpkg: error processing package linux-headers-amd64 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-image-amd64:
linux-image-amd64 depends on linux-image-6.1.0-12-amd64 (= 6.1.52-1); however:
Package linux-image-6.1.0-12-amd64 is not configured yet.

dpkg: error processing package linux-image-amd64 (--configure):
dependency problems - leaving unconfigured
Processing triggers for mailcap (3.70+nmu1) ...
Processing triggers for desktop-file-utils (0.26-1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for gnome-menus (3.36.0-1.1) ...
Processing triggers for mate-menus (1.26.0-3) ...
Processing triggers for libc-bin (2.36-9+deb12u3) ...
Processing triggers for man-db (2.11.2-2) ...
Errors were encountered while processing:
linux-image-6.1.0-12-amd64
linux-headers-6.1.0-12-amd64
linux-headers-amd64
linux-image-amd64
E: Sub-process /usr/bin/dpkg returned an error code (1)

Any suggestions?
 


Can you run as root:
Code:
dpkg --configure -a
What happens? And what is the output?

It might be helpful if you use code tags to show output exactly. Precision helps.
 
Have a look here:


I attempted the upgrade from the beta....and ended up wishing I had not gone that route.

Instead. I did a fresh install......that worked wonders.
Thanks for the suggestion. I have used precisely the approach outlined and I was upgrading from LMDE 5 to 6 final (not beta). A fresh install in this instance is a massive headache as this laptop is a daily driver.
 
Can you run as root:
Code:
dpkg --configure -a
What happens? And what is the output?

It might be helpful if you use code tags to show output exactly. Precision helps.
I should point out it loads on a older kernel from grub menu but not the latest one, kernel panic.

Here's the output below:

Setting up linux-image-6.1.0-12-amd64 (6.1.52-1) ...
/etc/kernel/postinst.d/dkms:
dkms: running auto installation service for kernel 6.1.0-12-amd64.
Deprecated feature: REMAKE_INITRD (/var/lib/dkms/rtl8812au/5.6.4.2/source/dkms.conf)
Deprecated feature: REMAKE_INITRD (/etc/dkms/framework.conf)
Sign command: /usr/lib/linux-kbuild-6.1/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub

Building module:
Cleaning build area...
'make' -j4 KVER=6.1.0-12-amd64 KSRC=/lib/modules/6.1.0-12-amd64/build..........(bad exit status: 2)
Error! Bad return status for module build on kernel: 6.1.0-12-amd64 (x86_64)
Consult /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/make.log for more information.
Deprecated feature: REMAKE_INITRD (/etc/dkms/framework.conf)
Sign command: /usr/lib/linux-kbuild-6.1/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub
Deprecated feature: REMAKE_INITRD (/var/lib/dkms/rtl8812au/5.6.4.2/source/dkms.conf)

Building module:
Cleaning build area...
'make' -j4 KVER=6.1.0-12-amd64 KSRC=/lib/modules/6.1.0-12-amd64/build..........(bad exit status: 2)
Error! Bad return status for module build on kernel: 6.1.0-12-amd64 (x86_64)
Consult /var/lib/dkms/rtl8812au/5.6.4.2/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.1.0-12-amd64 failed!
run-parts: /etc/kernel/postinst.d/dkms exited with return code 11
dpkg: error processing package linux-image-6.1.0-12-amd64 (--configure):
installed linux-image-6.1.0-12-amd64 package post-installation script subprocess returned error exit status 1
Setting up linux-headers-6.1.0-12-amd64 (6.1.52-1) ...
/etc/kernel/header_postinst.d/dkms:
dkms: running auto installation service for kernel 6.1.0-12-amd64.
Deprecated feature: REMAKE_INITRD (/var/lib/dkms/rtl8812au/5.6.4.2/source/dkms.conf)
Deprecated feature: REMAKE_INITRD (/etc/dkms/framework.conf)
Sign command: /usr/lib/linux-kbuild-6.1/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub

Building module:
Cleaning build area...
'make' -j4 KVER=6.1.0-12-amd64 KSRC=/lib/modules/6.1.0-12-amd64/build...........(bad exit status: 2)
Error! Bad return status for module build on kernel: 6.1.0-12-amd64 (x86_64)
Consult /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/make.log for more information.
Deprecated feature: REMAKE_INITRD (/etc/dkms/framework.conf)
Sign command: /usr/lib/linux-kbuild-6.1/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub
Deprecated feature: REMAKE_INITRD (/var/lib/dkms/rtl8812au/5.6.4.2/source/dkms.conf)

Building module:
Cleaning build area...
'make' -j4 KVER=6.1.0-12-amd64 KSRC=/lib/modules/6.1.0-12-amd64/build.........(bad exit status: 2)
Error! Bad return status for module build on kernel: 6.1.0-12-amd64 (x86_64)
Consult /var/lib/dkms/rtl8812au/5.6.4.2/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.1.0-12-amd64 failed!
run-parts: /etc/kernel/header_postinst.d/dkms exited with return code 11
Failed to process /etc/kernel/header_postinst.d at /var/lib/dpkg/info/linux-headers-6.1.0-12-amd64.postinst line 11.
dpkg: error processing package linux-headers-6.1.0-12-amd64 (--configure):
installed linux-headers-6.1.0-12-amd64 package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of linux-headers-amd64:
linux-headers-amd64 depends on linux-headers-6.1.0-12-amd64 (= 6.1.52-1); however:
Package linux-headers-6.1.0-12-amd64 is not configured yet.

dpkg: error processing package linux-headers-amd64 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-image-amd64:
linux-image-amd64 depends on linux-image-6.1.0-12-amd64 (= 6.1.52-1); however:
Package linux-image-6.1.0-12-amd64 is not configured yet.

dpkg: error processing package linux-image-amd64 (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
linux-image-6.1.0-12-amd64
linux-headers-6.1.0-12-amd64
linux-headers-amd64
linux-image-amd64
 
I am not going to say that this will work for you....but.....I had an experience with Linux Mint sometime back, where I did a fresh install, and laid a timeshift snapshot from a previous install onto that. Yeah, i realise that was dicey, but in that case it worked.

Do you have a spare laptop etc lying around that you could try that on ?

(Maybe leave this option till last?.....see what magic @osprey can weave first)
 
I am not going to say that this will work for you....but.....I had an experience with Linux Mint sometime back, where I did a fresh install, and laid a timeshift snapshot from a previous install onto that. Yeah, i realise that was dicey, but in that case it worked.

Do you have a spare laptop etc lying around that you could try that on ?

(Maybe leave this option till last?.....see what magic @osprey can weave first)
Wow that worked? I might give it a go if all else fails. :)
 
if all else fails.
,,,,ONLY then.
Do you have an image backup by any chance?....that you would be able to restore it with in case things went south ?
 
I am not going to say that this will work for you....but.....I had an experience with Linux Mint sometime back, where I did a fresh install, and laid a timeshift snapshot from a previous install onto that. Yeah, i realise that was dicey, but in that case it worked.

Do you have a spare laptop etc lying around that you could try that on ?

,,,,ONLY then.
Do you have an image backup by any chance?....that you would be able to restore it with in case things went south ?
I have the system fully backed up yes.
 
In that case, if the "timeshift over a fresh install of LMDE6" does not work at least you can restore what was there before you tried it.
 
SOLVED (SORT OF). Here's what I did:

(1) sudo dpkg --list |grep linux-image
(2) sudo apt purge (latest kernel)
(3) Loaded on the previous functional kernel
(4) sudo apt search linux-image
(5) sudo apt install linux-image (6.1 kernel)
(6) added headers

Now:

OS: LMDE 6 (faye) x86_64
Host: 20EVCTO1WW ThinkPad E560
Kernel: 6.1.0-9-amd64

"So far" working fine.
 
Thanks for the output in post #5. It looks decisive and irretrievable for that kernel.

Just got your post #11 and the approach you describe was similar to to what I was about to propose.
Well done and good luck.

An alternative was to run on the previous kernel and wait for the next kernel upgrade beyond the troublesome one.
 
An alternative was to run on the previous kernel and wait for the next kernel upgrade beyond the troublesome one
Now that sounds like a good plan !
 
Thanks for the output in post #5. It looks decisive and irretrievable for that kernel.

Just got your post #11 and the approach you describe was similar to to what I was about to propose.
Well done and good luck.

An alternative was to run on the previous kernel and wait for the next kernel upgrade beyond the troublesome one.
I'm an impatient type but yes, waiting is a very valid approach and probably less risky, too.Thanks for the assist everyone. :)
 

Members online


Latest posts

Top