Categories
DailyOps

How to upgrade Ubuntu 21.10 LTS to the latest development version of Ubuntu 22.04 release

Upgrade Ubuntu 21.10 LTS (Long Term Support) to the latest development version of Ubuntu 22.04 release.

Check operating system version before release upgrade.

$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 21.10
Release:	21.10
Codename:	impish

Update package index.

$ sudo apt update

Upgrade operating system.

$ sudo apt upgrade

Use do-release-upgrade utility to check for a new release.

$ do-release-upgrade --check-dist-upgrade-only
Checking for a new Ubuntu release
No new release found.

Check for a new development release.

$ do-release-upgrade --check-dist-upgrade-only --devel-release
Checking for a new Ubuntu release
New release '22.04' available.
Run 'do-release-upgrade' to upgrade to it.

Release upgrade requires reboot after an update.

$ sudo do-release-upgrade --devel-release
Checking for a new Ubuntu release
You have not rebooted after updating a package which requires a reboot. Please reboot before upgrading.

Reboot operating system.

$ sudo reboot

Perform release upgrade.

$ sudo do-release-upgrade --devel-release
Checking for a new Ubuntu release

= Welcome to the Ubuntu 'Jammy Jellyfish' development release =

''This release is still in development.''

Thanks for your interest in this development release of Ubuntu.
The Ubuntu developers are moving very quickly to bring you the
absolute latest and greatest software the Open Source Community has to
offer. This development release brings you a taste of the newest features
for the next version of Ubuntu.

== Testing ==

Please help to test this development snapshot and report problems back to the
developers.  For more information about testing Ubuntu, please read:

  http://www.ubuntu.com/testing


== Reporting Bugs ==

This development release of Ubuntu contains bugs. If you want to help
out with bugs, the Bug Squad is always looking for help. Please read the
following information about reporting bugs:

  http://help.ubuntu.com/community/ReportingBugs

Then report bugs using apport in Ubuntu.  For example:

  ubuntu-bug linux

will open a bug report in Launchpad regarding the linux package. Your
comments, bug reports, patches and suggestions will help fix bugs and improve
future releases.


== Participate in Ubuntu ==

If you would like to help shape Ubuntu, take a look at the list of
ways you can participate at

  http://www.ubuntu.com/community/participate/


== More Information ==

You can find out more about Ubuntu on the Ubuntu website and Ubuntu
wiki.

  http://www.ubuntu.com/
  http://wiki.ubuntu.com/


To sign up for Ubuntu development announcements, please
subscribe to Ubuntu's development announcement list at:

  http://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-announce


Continue [yN] y
Get:1 Upgrade tool signature [819 B]                                           
Get:2 Upgrade tool [1258 kB]                                                   
Fetched 1259 kB in 0s (0 B/s)                                                  
authenticate 'jammy.tar.gz' against 'jammy.tar.gz.gpg' 
extracting 'jammy.tar.gz'

Reading cache

Checking package manager
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Hit http://pl.archive.ubuntu.com/ubuntu impish InRelease                       
Hit http://pl.archive.ubuntu.com/ubuntu impish-updates InRelease               
Hit http://pl.archive.ubuntu.com/ubuntu impish-backports InRelease             
Hit http://security.ubuntu.com/ubuntu impish-security InRelease                
Hit https://deb.librewolf.net impish InRelease                                 
Hit http://ppa.launchpad.net/apt-fast/stable/ubuntu impish InRelease           
Fetched 0 B in 0s (0 B/s)                                                      
Reading package lists... Done    
Building dependency tree... Done 
Reading state information... Done

Checking for installed snaps

Calculating snap size requirements
Updating repository information
[...]

Checking package manager
Reading package lists... Done    
Building dependency tree... Done 
Reading state information... Done

Calculating the changes

Calculating the changes

Do you want to start the upgrade? 


9 packages are going to be removed. 165 new packages are going to be 
installed. 2041 packages are going to be upgraded. 

You have to download a total of 2078 M. This download will take about 
4 minutes with your connection. 

Installing the upgrade can take several hours. Once the download has 
finished, the process cannot be canceled. 

 Continue [yN]  Details [d] y

Fetching
[...]

Upgrading
[...]

Processing snap replacements
[...]

Remove obsolete packages? 


164 packages are going to be removed. 

Removing the packages can take several hours. 

 Continue [yN]  Details [d] y

[...]

System upgrade is complete.

Restart required 

To finish the upgrade, a restart is required. 
If you select 'y' the system will be restarted.

Continue [yN] y

Operating system version after release upgrade.

$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu Jammy Jellyfish (development branch)
Release:	22.04
Codename:	jammy

The do-release-upgrade utility is provided by the ubuntu-release-upgrader-core package.