Upgrading to Ubuntu 18.04 (Bionic Beaver)
Ubuntu 18 LTS has reached its end of life in May 2023.
We encourage you to upgrade to Ubuntu 20 as soon as possible after upgrading to Ubuntu 18
Overview
In this guide, we will see how to upgrade an existing Ubuntu 16.04 based Cloudron to Ubuntu 18.04.
Cloudron 6.3 is the last version of Cloudron that supports Ubuntu 16.04
Checklist
Before upgrading, please note the following:
- Cloudron has to be on at least version 3.3. This can be verified by checking the version in the Settings view. Cloudron releases prior to 3.3 do not support Ubuntu 18.04.
- Ubuntu has to be on version 16.04. Check the output of
lsb_release -ato confirm this. - The upgrade takes around 1-3 hours based on various factors like network/cpu/disk etc
Pre-flight
Before starting the upgrade process, it's a good idea to create a server snapshot to rollback quickly. If your VPS does not have snapshotting feature, it's best to create a full Cloudron backup before attempting the upgrade (Backups -> Create Backup now).
Upgrading
Start the upgrade:
dpkg --configure -a
do-release-upgrade
Upgrade notes:
- Accept running an additional ssh deamon at port 1022
- For all packages (nginx, timesyncd, journald etc), select N or O : keep your currently-installed version. This is the 'default'.
- Accept removal of obsolete packages.
- Restart the server in the end
Post Upgrade
Finishing the upgrade:
systemctl stop systemd-resolved
systemctl disable systemd-resolved
systemctl restart unbound
systemctl status unbound # this should show 'active (running)'
If unbound is still not running, check the output of lsof -i :53. If it shows named, then:
systemctl stop bind9
systemctl disable bind9
systemctl restart unbound
systemctl status unbound # this should show 'active (running)'
Post Upgrade Checks
- Verify that the output includes
Ubuntu 18.04Bashlsb_release -a
If the above steps are all confirmed, you have successfully upgraded your Ubuntu 16 to Ubuntu 18:::