I am talking about this upgrade tool: http://archive.ubuntu.com/ubuntu/dists/jammy/main/dist-upgrader-all/current/jammy.tar.gz which I am sure the do-release-upgrade
uses to upgrade to 22.04 from 21.10. I found it in https://changelogs.ubuntu.com/meta-release.
During the upgrade, what I have observed is:
- Updates sources.list.
- Disables third-party repositories to avoid errors with them (can be enabled again after the upgrade).
- Runs
apt update
- Upgrades all the packages using
apt
:upgrade
anddist-upgrade
- Has a list called demoted.cfg (which is a list of packages that are not needed to the newer Ubuntu version and are meant to be deleted if they aren't automatically installed, etc.). Gets the packages in the list, checks which of them are manually installed, and combines them to the list of
apt autoremove
, and removes all of them after asking you. - Also removes the Firefox that was installed using
apt
. Or more clearly: it removes packages listed in dep2snap.cfg (and installs the snap version?). Somewhere around these steps. - Reboots the system
Are there any other steps here that I am missing? I need to know as I need to revert any unexpected changes to the system.
Example: Changes to the system that helps the system to be stable during the upgrade. But aren't needed after the upgrade.
Note: All the .cfg files mentioned above are in the upgrade tool that do-release-upgrade
uses. Which I have listed above.
0 Answers