Skip to main content

Your submission was sent successfully! Close

Thank you for signing up for our newsletter!
In these regular emails you will find the latest updates from Canonical and upcoming events where you can meet our team.Close

Thank you for contacting our team. We will be in touch shortly.Close

  1. Blog
  2. Article

Canonical
on 29 August 2017

Testing Unsupported Release Upgrades


This article originally appeared on Brian Murray’s blog

Earlier I wrote about how it is possible to upgrade, with the upgrade prompt set to normal, from Ubuntu 16.04 (Xenial) to Ubuntu 17.04 (Zesty) and that this is a supported upgrade path. There is an unsupported method to upgrade from Ubuntu 16.04 to Artful Aardvark, which will become Ubuntu 17.10. I say unsupported because the upgrade path is not necessarily safe and it should not be used on production systems, however it is useful for testing part of the LTS to LTS upgrade path.

As I mentioned previously, update-manager uses a meta-release file from changelogs.ubuntu.com to determine what upgrades are allowed. This meta-release file is cached in:

~/.cache/update-manager-core/

If we want to test an upgrade from Ubuntu 16.04 to Artful, with Prompt=lts(found in /etc/update-manager/release-upgrades) we’ll want to create our own meta-release-lts-development file. The meta-release file has lts appended because of the prompt setting and development because we will use the -d switch to perform the upgrade. This meta-release-lts-development file will contain the release we are upgrading from and release to which we are upgrading e.g.:

bdmurray@clean-xenial-amd64:~$ cat .cache/update-manager-core/meta-release-lts-development

Dist: xenial
Name: Xenial Xerus
Version: 16.04.2 LTS
Date: Thu, 21 April 2016 16:04:00 UTC
Supported: 1
Description: This is the 16.04.2 LTS release
Release-File: http://archive.ubuntu.com/ubuntu/dists/xenial/Release
ReleaseNotes: http://archive.ubuntu.com/ubuntu/dists/xenial-updates/main/dist-upgrader-all/current/ReleaseAnnouncement
ReleaseNotesHtml: http://archive.ubuntu.com/ubuntu/dists/xenial-updates/main/dist-upgrader-all/current/ReleaseAnnouncement.html
UpgradeTool: http://archive.ubuntu.com/ubuntu/dists/xenial-updates/main/dist-upgrader-all/current/xenial.tar.gz
UpgradeToolSignature: http://archive.ubuntu.com/ubuntu/dists/xenial-updates/main/dist-upgrader-all/current/xenial.tar.gz.gpg

 

Dist: artful
Name: Artful Aardvark
Version: 17.10
Date: Thu, 19 October 2017 17:10:00 UTC
Supported: 0
Description: This is the 17.10 release
Release-File: http://archive.ubuntu.com/ubuntu/dists/artful/Release
ReleaseNotes: http://archive.ubuntu.com/ubuntu/dists/artful/main/dist-upgrader-all/current/DevelReleaseAnnouncement
ReleaseNotesHtml: http://archive.ubuntu.com/ubuntu/dists/artful/main/dist-upgrader-all/current/DevelReleaseAnnouncement.html
UpgradeTool: http://archive.ubuntu.com/ubuntu/dists/artful/main/dist-upgrader-all/current/artful.tar.gz
UpgradeToolSignature: http://archive.ubuntu.com/ubuntu/dists/artful/main/dist-upgrader-all/current/artful.tar.gz.gpg

I created this by making a mash-up of the meta-release and meta-release-development files at changelogs.ubuntu.com. With this I can now upgrade from Ubuntu 16.04 to Artful by running:

do-release-upgrade -d
Checking for a new Ubuntu release
Get:1 Upgrade tool signature [836 B]
Get:2 Upgrade tool [1,270 kB]
Fetched 1,271 kB in 0s (0 B/s)
authenticate 'artful.tar.gz' against 'artful.tar.gz.gpg'
extracting 'artful.tar.gz'

If you run into any bugs when testing this unsupported upgrade path please report them using ‘ubuntu-bug ubuntu-release-upgrader’.

Related posts


Serdar Vural
30 September 2024

Build your private 5G network with Charmed Aether SD-Core

5G Kubernetes

You might recall that we recently announced the beta release of Charmed Aether SD-Core, bringing automation to the Linux Foundation’s open source 5G software-defined core (SD-Core) networking software. SD-Core is distributed by the Aether project and is for anyone who wants to build a private 5G network. Canonical’s Charmed distribution o ...


Stephanie Domas
30 September 2024

What the Cyber Resilience Act (CRA) means for IoT manufacturers

Compliance Hardening

The EU Cyber Resilience Act has considerable repercussions for the IoT device manufacturers. In this blog, we explore these new regulatory requirements and give our blueprint for compliant, market-ready devices. ...


Rawand Benour
27 September 2024

AI in Healthcare: 5 Use Cases and 1 challenge

Ubuntu Article

The accelerated developments in machine learning and artificial intelligence in healthcare have set the stage for some interesting transformations. By enabling better care for patients, optimizing processes, and generating new opportunities for medical research and treatment, these technologies are indeed going to change the healthcare in ...