Ubnt Server LTS sequential LTS release upgrade
Update checklist - updated: 05-05-2024
Pre-upgrade checklist
First create a snapshot/backup of the system thats being updated. Then start the checklist:
Fully update the current system, and check for hold-pkgs:
sudo apt-mark showhold
sudo apt update
sudo apt dist-upgrade -o APT::Get::Always-Include-Phased-Updates=true
Confirm commands complete successfully, no packages are in holding, and no further updates are available.
After applying all updates, it may be necessary to reboot your system. The release upgrade process will let you know if that’s needed, but you can also check manually before: if the file /run/reboot-required exists, then you will need to reboot.
Check that there is enough free space:
df -h
Check for third-party repositories:
grep -RhE '\s*deb\s|\s*URIs:' /etc/apt/sources.list /etc/apt/sources.list.d/
Thirdparty repositories need readding after upgrade
Upgrade the system
To start the process, run this command:
sudo do-release-upgrade
Follow the steps and interactive changes