With the release of the 22.04 LTS coming up, I have been given some old 16.04 units and tasked with getting them upgraded to 22.04 when it's released. I understand these units should've been upgraded a long time ago and that this process may not be very straightforward.
Realistically, what is the best way to move from 16.04 LTS to 22.04 LTS? These units do not have a lot of storage space so I don't think do-release-upgrade is an option.
Details:
uname -r
4.10.0-42-generic
cat /etc/os-release
NAME="Ubuntu"
VERSION="16.04.4 LTS (Xenial Xerus)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 16.04.4 LTS"
VERSION_ID="16.04"
do-release-upgrade
which requires ESM to be enabled so you can apply all upgrades/fixes for your xenial system. If you don't have ESM enabled; the Ubuntu Release Upgrader tool will detect that & refuse to upgrade; where upgrades will be to 18.04 only.. You'll then need to reboot, upgrade to 20.04, then wait till after 22.04.1 is out which opens the path from 20.04 upgrades. – guiverc Apr 06 '22 at 21:52