Skip to main content

Upgrading to Ubuntu 18.04

Ubuntu 18 LTS has reached its end of life

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

This guide explains how to upgrade an existing Ubuntu 16.04 based Cloudron to Ubuntu 18.04 (bionic beaver).

Warning

Cloudron 6.3 is the last version of Cloudron that supports Ubuntu 16.04

Checklist

Before upgrading:

  • Cloudron must be on at least version 3.3. Verify this by checking the version in the Settings view. Cloudron releases prior to 3.3 do not support Ubuntu 18.04.
  • Ubuntu must be on version 16.04. Check with lsb_release -a.
  • The upgrade takes 1-3 hours depending on network, CPU, and disk speed.

Pre-flight

Create a server snapshot for quick rollback before starting. If your VPS lacks snapshotting, create a full Cloudron backup first (Backups → Create Backup now).

Upgrading

Run the upgrade:

bash
dpkg --configure -a
do-release-upgrade

Upgrade notes:

  • Accept running an additional SSH daemon at port 1022.
  • For all packages (nginx, timesyncd, journald, etc.), select N or O to keep your currently-installed version (default).
  • Accept removal of obsolete packages.
  • Restart the server at the end.

Post upgrade

Complete the upgrade:

bash
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:

bash
systemctl stop bind9
systemctl disable bind9
systemctl restart unbound
systemctl status unbound # this should show 'active (running)'

Post upgrade checks

  1. Verify Ubuntu 18.04 in output:
    bash
    lsb_release -a
Upgrade Successful

If the above steps are all confirmed, you have successfully upgraded your Ubuntu 16 to Ubuntu 18