In April 2021, Ubuntu 16.04 LTS (Xenial Xerus) reached the end of its standard five-year security maintenance window. Accordingly, Alibaba Cloud no longer provides updates for Ubuntu 16.04 LTS public images. Ubuntu 16.04 LTS transitions into the extended security maintenance (ESM) support phase. You can perform operations described in this topic and use the Ubuntu Advantage for Infrastructure (UA-I) subscription to obtain updates for the ESM phase.

Background information

While Ubuntu 16.04 LTS is in the ESM phase, you can use ESM in the UA-I subscription to continue to obtain security updates for the Ubuntu base operating systems, critical software packages, and infrastructure components. For more information, see Ubuntu Advantage for Infrastructure and Extended Security Maintenance.

If you want to continue to obtain security updates for the operating system in an Ubuntu 16.04 instance, perform the following steps.

Step 1: Subscribe to the UA-I service on the Ubuntu official website

  1. On your computer, enter https://ubuntu.com in a browser to go to the Ubuntu official website.
  2. In the top navigation bar, click Sign in.
    You must use an Ubuntu account to log on to the Ubuntu official website. If you do not have an Ubuntu account, you must create one as prompted and then log on to the Ubuntu official website.
  3. In the top navigation bar, click the username and select UA subscriptions.
    Subscribe to UA-I
  4. In the Your free personal subscription section, click Get your free token.
    get free token
    You must save the command in the To attach a machine line.

Step 2: Add UA-I to the Ubuntu 16.04 instance and perform security updates

  1. Connect to the Ubuntu 16.04 instance.
    For more information, see Overview.
  2. Run the following commands in sequence to install the latest Ubuntu Advantage (UA) client.
    1. Upgrade software packages.
      sudo apt update
    2. Install the UA client.
      sudo apt install ubuntu-advantage-tools
  3. Run the command in the To attach a machine line that you saved in Step 1.
    Run the command in the following format. Replace <token> with the value that you saved.
    sudo ua attach <token>
    A command output similar to the following one indicates that ESM is enabled. esm-infra
  4. Optional: Run the following command to enable ESM.
    If you are not sure whether ESM is enabled, you can run the following command to enable ESM:
    sudo ua enable esm-infra
  5. Run the following commands in sequence to upgrade software packages and update security patches:
    1. Upgrade software packages.
      sudo apt update
    2. Update security patches.
      sudo apt upgrade