Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Ubuntu support for EOL release upgrades

Ubuntu support for EOL release upgrades

Background

(do-release-upgrade's source code): https://git.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/tree/do-release-upgrade

References:

(How did I get there)

http://manpages.ubuntu.com/manpages/jammy/man8/do-release-upgrade.8.html => https://launchpad.net/ubuntu/jammy/+package/ubuntu-release-upgrader-core => https://launchpad.net/ubuntu/+source/ubuntu-release-upgrader/1:22.04.10

do-reloase-upgrade source code

git clone https://git.launchpad.net/ubuntu/+source/ubuntu-release-upgrader
cat DistUpgrade/DistUpgradeController.py
 394             self._view.error(_("Can not upgrade"),
 395                              _("An upgrade from '%s' to '%s' is not "
 396                                "supported with this tool." % (release, self.toDist)))

Questions:

  1. How it is called from the ubuntu-release-upgrader/do-release-upgrade(.py) (https://git.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/tree/do-release-upgrade)
  2. What is the condition in the DistUpgrade/DistUpgradeController.py triggering the error.

TODO:

  1. Create UbuntuOne account
  2. Post a bug/question here: https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader . Similar bugs:
@mikbuch
Copy link
Author

mikbuch commented Jun 21, 2022

To sum up, the required changes in the original ubuntu-release-upgrader repository (https://code.launchpad.net/ubuntu/+source/ubuntu-release-upgrader) are:

cd ubuntu-release-upgrader
git checkout ubuntu/impish
cd data
cp DistUpgrade.cfg.focal DistUpgrade.cfg.groovy
sed -i s/From=focal/From=groovy/ DistUpgrade.cfg.groovy
cp demoted.cfg.focal demoted.cfg.groovy

Then check the differences:

(1)

diff DistUpgrade.cfg.groovy DistUpgrade.cfg.focal

should be:

109c109
< From=groovy
---
> From=focal

and
(2)

diff demoted.cfg.focal demoted.cfg.groovy

should be none.

Then follow the instructions from: https://code.launchpad.net/ubuntu/+source/ubuntu-release-upgrader , i.e.:

To fork this repository and propose fixes from there, push to this repository:

git push git+ssh://mikbuch@git.launchpad.net/~mikbuch/ubuntu/+source/ubuntu-release-upgrader BRANCHNAME 

or fork it directly to your account.

@mikbuch
Copy link
Author

mikbuch commented Jul 11, 2022

The fix has been committed and tested (verified). The package is pending a new release: https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/1975533

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment