Table of Contents

Upgrading your Ubuntu OS - Customer Portal Upgrades

Mitchell Paul-Soumis Updated by Mitchell Paul-Soumis

Read Time: 3 mins

Upgrading Ubuntu 16.04 to 18.04

Ubuntu is a popular Linux distribution, which is known for its user-friendly interface and the ability to run on almost any hardware. Upgrading your Ubuntu system to the latest version is necessary to keep your system updated with the latest features, security patches, and bug fixes. In this guide, we will discuss how to upgrade Ubuntu 16.04 to 18.04.

Although this guide does only mention upgrading to 18.04, it's recommended that you repeat this process to upgrade from 18.04 LTS to 22.04 LTS, as 18.04 LTS went End of Life in April 2023.

Preparing for the Upgrade

Before upgrading your Ubuntu system, it is highly recommended to back up all your important files and folders. This can be done by copying them to an external hard drive or cloud storage service.

To upgrade from Ubuntu 16.04 to 18.04, follow the steps below:

  1. Open the terminal and update the package list by running the following command:
    sudo apt update
  2. Upgrade the system by running the following command:
    sudo apt upgrade
  3. Install the update-manager-core package by running the following command:
    sudo apt install update-manager-core
  4. Open the /etc/update-manager/release-upgrades file using any text editor and ensure that the value of Prompt is set to LTS. (Prompt=lts)
    sudo nano /etc/update-manager/release-upgrades
If you are running an active SSH session to your Ubuntu 16.04 Linux VM, the following command below will also open an SSH service listening on port 1022. Be sure to modify your firewall (on the Linux vm or cloud provider) to allow TCP port 1022 inbound, as if the connection is interrupted, you will need to ssh back into the VM on port 1022.
  1. Start the upgrade process by running the following command:
    sudo do-release-upgrade
  2. Follow the on-screen instructions to complete the upgrade process. If asked, keep locally installed versions of configuration files, except for the menu.lst option — install the package maintainers' version, if asked.
  3. If you’re asked ‘Restart services during package upgrades without asking?’ enter y and press the [ENTER] key.
  4. If you’re asked to ‘Upgrade to LXC snap’ select y and press the [ENTER] key, then if you’re asked for the version, select 4.0 and press the [ENTER] key.
  5. If asked to remove obsolete packages, enter y and press the [ENTER] key.
  6. Once the upgrade process is complete, you will be asked to restart your system, press y and press [ENTER] key.

Upgrade Docker to the latest version.

Docker versions < 20.10.9 will need to be upgraded, Ubuntu 16.04 usually ships with Docker 20.10.7, check your docker version with:

docker —version

Install using the apt repository

Before you install Docker Engine for the first time on a new host machine, you need to set up the Docker repository. Afterward, you can install and update Docker from the repository.

Set up the repository

  1. Update the apt package index and install packages to allow apt to use a repository over HTTPS:
     sudo apt-get update
    sudo apt-get install ca-certificates curl gnupg
  2. Add Docker’s official GPG key:
    sudo install -m 0755 -d /etc/apt/keyrings
    curl -fsSL <> | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
    sudo chmod a+r /etc/apt/keyrings/docker.gpg
  3. Use the following command to set up the repository:
    echo "deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] <> "$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null

Install Docker Engine

  1. Update the apt package index:
    sudo apt-get update
  2. Install Docker, containerd, and Docker Compose.
    To install the latest version, run:
    sudo apt-get install docker-ce docker-ce-cli docker-buildx-plugin docker-compose-plugin

Docker is now installed.

How did we do?

Troubleshooting the Customer Portal

User Profile: Your Personal User Settings