tags: - upgrade - ubuntu categories: - informational comments: true

date: 2021-10-02 00:00:00

Upgrade ancient ubuntu node: 12.04LTS -> 20.04LTS

cd /etc/apt
cp sources.list sources.list.old
sed -i -re 's/([a-z]{2}\.)?archive.ubuntu.com|security.ubuntu.com/old-releases.ubuntu.com/g' /etc/apt/sources.list
apt update
apt dist-upgrade
apt-get install update-manager-core
do-release-upgrade

References

https://askubuntu.com/questions/91815/how-to-install-software-or-upgrade-from-an-old-unsupported-release https://www.digitalocean.com/community/tutorials/how-to-upgrade-ubuntu-12-04-lts-to-ubuntu-14-04-lts