linuxmint / mintupgrade

42 stars 16 forks source link

Completely broken by Ubuntu deleting 22.04 packages #102

Open knghtbrd opened 2 months ago

knghtbrd commented 2 months ago

Ubuntu purged a number of packages from 22.04 resulting in mintupgrade being utterly certain that several things that the system is likely not to boot without must be removed prior to upgrade. Since no manual upgrade process was documented, um… this tool is now useless except as a particularly error-prone set of manual upgrade instructions.

You're going to need a set of packages to exclude from the foreign check, at the least, to get around this. y'know unless you're okay with removing linux-image-generic and dependencies, as well as xorg, tzdata, and other irrelevant things …

MatiasMGz commented 2 months ago

Mint 22 is based on 24.04

knghtbrd commented 2 months ago

Mint 22 is based on 24.04

Completely irrelevant. before upgrading, the upgrader demands you uninstall any "locally installed" package—that is, any package Ubuntu has removed from the source. That list included such packages as linux-image-generic because the specific kernel installed was no longer available in the repository.

This check CANNOT BE BYPASSED, yet if you remove key components of the system … like, y'know, the kernel, X.org, and a few other minor, unnecessary package that were no longer in the repo … the upgrader will refuse to run. This completely hamstrung the upgrade process requiring me to edit the source code to remove the check. Once I did that, the upgrade completed just fine, and replaced every single 22.04 package the upgrader tried to remove with one from 24.04.

I don't know why every one of these packages suddenly disappeared from the repository, but it was kind of a problem for the upgrade.

I did try a couple of different mirrors, basically hoping to find one that had not done that, but three of them already had, so … yikes.

Jeremy7701 commented 2 months ago

If you did a Ubuntu update at any time - instead of a Mint update, then you would expect problems.

knghtbrd commented 2 months ago

Only thing I did between installing it two months ago and the upgrade was changing to an optimal mirror using the Mint update tool, and then to fastly when the blog post about it came up. I had repos for Virginia and Jammy. What disappeared though were a bunch of packages with 22.04 in the version string. Someone suggested maybe some mirrors dropped jammy since it was over two years old now, but that doesn't make sense since if that's what happened I'd have been getting errors about missing package lists from apt.

I have been doing random system maintenance using CLI apt because it's not my computer, but that shouldn't break anything either if I'm not modifying sources.list entries between doing so.

MatiasMGz commented 2 months ago

I updated recently to Mint 22 using the mintupgrade tool and there was not a single problem with APT