I'm trying options to bring an old-ish Xubuntu 20.04LTS up to 22.04. This thing has had some problems that made me very wary of problems along the way, so I did a dry run just now.
- Installed 20.04 LTS on an empty partition (without internet).
- plugged internet back in
- Booted into the new partition and did apt-get update and apt-get upgrade
- So far so good
- Tried a "do-release-upgrade" and it promptly told me to "install all available updates" and it quit.
- I tried apt-get upgrade again and it told me it did not do anything, but 36 updates had been held back.
I did not do anything else. This all happened in the last hour, so it's not like I forgot one little thing along the way.
What's holding these back, and how do I undo it?
I would suggest just doing a clean installation of 22.04 instead of trying to start old and then upgrade in place. A lot more can go wrong that way.
However, if you INSIST on doing this, then replace
sudo apt upgrade
withsudo apt dist-upgrade -y
. This does not upgrade you to the next release of Ubuntu, but will install any packages that require other packages and dependencies to be updated or replaced as well and get you to the point ofdo-release-upgrade
working.I strongly recommend you try clean-installing 22.04 first though.