How to upgrade EOL (End of life) Ubuntu?
Normally, you can directly do-release-upgrade
. But if you try to upgrade EOL system by more than one version, an error may occur: An
upgrade from ‘groovy’ to ‘impish’ is not supported with this tool`.
To fix this, try upgrading to a specific version manually:
- download dist-upgrader from http://archive.ubuntu.com/ubuntu/dists/eoan-updates/main/dist-upgrader-all/current/
- use hirsute as an example:
tar -xvzf hirsute.tar.gz -C hirsute_upgrade
cd hirsute_upgrade
./hirsute
sudo apt update
sudo apt upgrade
sudo apt dist-upgrade
However, if your python packages are broken, then another error may occur:
Your python3 install is corrupted. Please fix the '/usr/bin/python3'
Like me, I mistakenly deleted system default python executable , and installed another version with some ugly tricks to keep the system running.
Fortunately, I found another simple solution to upgrade systems.
- edit
source.list
to match the next version system ( like 20.10 -> 21.04) sudo apt update
sudo apt upgrade
sudo apt dist-upgrade
I don’t why, but it just worked…
ref:
- https://help.ubuntu.com/community/EOLUpgrades/
- https://butlerraines.com/code-stuff/upgrading-end-life-eol-ubuntu-version-ubuntu-1904
- https://askubuntu.com/questions/1260939/cannot-upgrade-from-disco-19-04-to-focal-20-04-after-end-of-life-using-do-releas