Error upgrade MX21 - MX23 without reinstall

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
Adlermania
Posts: 43
Joined: Thu Dec 31, 2020 10:32 am

Re: Error upgrade MX21 - MX23 without reinstall

#21 Post by Adlermania »

which may be have left over. So not sure how to fix this "mess".
Perhaps, as already requested, boot with MX LiveUSB -> Boot Rescue -> efi GRUB loader
and select MX23 efiLoader.
Just did this, it shows 1 second the blue screen with booting MX Linux 6.10. and then directly the error from my first post.

User avatar
fehlix
Developer
Posts: 12729
Joined: Wed Apr 11, 2018 5:09 pm

Re: Error upgrade MX21 - MX23 without reinstall

#22 Post by fehlix »

Adlermania wrote: Sun Sep 17, 2023 7:45 am
which may be have left over. So not sure how to fix this "mess".
Perhaps, as already requested, boot with MX LiveUSB -> Boot Rescue -> efi GRUB loader
and select MX23 efiLoader.
Just did this, it shows 1 second the blue screen with booting MX Linux 6.10. and then directly the error from my first post.
Are you saying you don't get a GRUB menu? Otherwise select another kernel on the GRUB menu under advanced.

Adlermania
Posts: 43
Joined: Thu Dec 31, 2020 10:32 am

Re: Error upgrade MX21 - MX23 without reinstall

#23 Post by Adlermania »

Yes maybe 1 second the screen with Booting Debian from Linux 6.10.... and then the error.
I just went into Advanced Options but cant see another Kernel there. Tried rollback option, but same error.

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

Re: Error upgrade MX21 - MX23 without reinstall

#24 Post by Eadwine Rose »

Respect to Fehlix for trying to help you to fix this mess.. but to be honest, at this point you would have been done a while ago by installing 23 clean after backing up your important files. I'd suggest going this route and stop spending energy trying to fix what we have no idea went wrong.
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

Charlie Brown

Re: Error upgrade MX21 - MX23 without reinstall

#25 Post by Charlie Brown »

Adlermania wrote: Sun Sep 17, 2023 7:36 am Yes I upgraded from MX19 to 21, over one year before, everything worked fine, and now from 21 to 23...
Yes. A clean install takes 10-15 min or so, plus it's fresh, healthy.. And your customizations etc. are already in home folder ..

This one looks like something experimental.

User avatar
MadMax
Posts: 483
Joined: Wed Aug 04, 2021 3:25 pm

Re: Error upgrade MX21 - MX23 without reinstall

#26 Post by MadMax »

Agreed. You can always TRY an in-place upgrade, but if it doesn't work after some tinkering, you have to be ready to scrap it and just do a clean install instead. In-place upgrades are not officially recommended for a reason.
If it ain't broke, don't fix it.
Main: MX 23 | Second: Mint 22 | HTPC: Linux Lite 7 | VM Machine: Debian 12 | Testrig: Arch/FreeBSD 14 | Work: RHEL 8

User avatar
fehlix
Developer
Posts: 12729
Joined: Wed Apr 11, 2018 5:09 pm

Re: Error upgrade MX21 - MX23 without reinstall

#27 Post by fehlix »

Eadwine Rose wrote: Sun Sep 17, 2023 8:22 am Respect to Fehlix for trying to help you to fix this mess.. but to be honest, at this point you would have been done a while ago by installing 23 clean after backing up your important files. I'd suggest going this route and stop spending energy trying to fix what we have no idea went wrong.
+1 ...
Also not sure why they have weakened the warning within the migration instructions.
IIRC, that had a strong warning kind of "For experts only." or something like that.
OK, they strongly recommend to have a backup in any kind. e.g by making Snapshot ISO.

But anyway, last attempt to try fxing the "mess":
Within the chroot-rescue-scan terminal ,
try get rid of the show stopper during kernel + intrd build:

Code: Select all

apt purge "virtualbox*"
This may trigger finish the kernel build process.
may be followed by

Code: Select all

apt install -f
and

Code: Select all

apt autoremove

Adlermania
Posts: 43
Joined: Thu Dec 31, 2020 10:32 am

Re: Error upgrade MX21 - MX23 without reinstall

#28 Post by Adlermania »

It worked =)! Thank you so much for the help!
It just booted into the new system. Do I still have to change the mirrors or something like that, as one of the browsers shows it would be outdated.
Anyway I will save my data and do a clean install next time.

User avatar
fehlix
Developer
Posts: 12729
Joined: Wed Apr 11, 2018 5:09 pm

Re: Error upgrade MX21 - MX23 without reinstall

#29 Post by fehlix »

Adlermania wrote: Sun Sep 17, 2023 12:13 pm It worked =)! Thank you so much for the help!
It just booted into the new system. Do I still have to change the mirrors or something like that, as one of the browsers shows it would be outdated.
Anyway I will save my data and do a clean install next time.
Good work. Something left to tidy up:
Open terminal as normal user:
* Remove leftover efiloader from ESP

Code: Select all

sudo rm -r /boot/efi/EFI/MX19
Clear old invalid entries from NVRAM's efi's boot options list:
First check:

Code: Select all

efibootmgr -v | grep MX19
In case it is still listed as "Boot0000"

Code: Select all

Boot0000* MX19	HD(1,GPT,5a9f62e3-fb09-414c-8e42-544f1e458f14,0x800,0x100000)/File(\EFI\MX19\GRUBX64.EFI)
* remove this way:

Code: Select all

sudo efibootmgr --verbose --delete-bootnum --bootnum 00000
or shorter:

Code: Select all

sudo efibootmgr -v -B -b 0
Good luck.

vicco
Posts: 5
Joined: Mon Aug 07, 2023 11:54 am

Re: Error upgrade MX21 - MX23 without reinstall

#30 Post by vicco »

I'm facing a similar issue here. I did an upgrade following these steps https://mxlinux.org/wiki/system/upgradi ... nstalling/

A kernel panic occurred at reboot; I was able to boot using Kernel: 6.1.0-9mx-ahs-amd64 [6.1.27-1~mx21ahs+1]. Inside it, trying to upgrade the mxinstaller produced the following error:

Error! Your kernel headers for kernel 5.10.0-19-amd64 cannot be found at /lib/modules/5.10.0-19-amd64/build or /lib/modules/5.10.0-19-amd64/source.
Please install the linux-headers-5.10.0-19-amd64 package or use the --kernelsourcedir option to tell DKMS where it's located.

It seems to me that something in the upgrade did not work, as it intends to revert to MX21 kernels. I wonder if there's a way to fix this and get the system working properly. I already applied autoremove and autopurge, but the problem is still there.

Post Reply

Return to “MX Help”