How to upgrade Ubuntu Server from 20.04 to 22.04

The official launch of Ubuntu 22.04 is pretty much on us. Jack Wallen walks you as a result of the process of upgrading version 20.04 to the new LTS, so you happen to be primed and ready for the huge day.

Picture: XtravaganT/Adobe Stock

Ubuntu 22.04 is virtually upon us. At the instant, the beta model of the platform has been produced available, which suggests the official launch is drawing around. With a day of April 21, 2022, it is just a subject of times prior to you can get your fingers on the hottest model.

SEE: 40+ open resource and Linux phrases you want to know (TechRepublic Quality)

But for individuals who want to get an early start, you can always operate an update. I recognize that lots of be reluctant to up grade a server from just one key launch to a further but Ubuntu has generally been rock reliable with upgrades. Even so, if you’re hesitant to run this sort of updates on generation devices, you can usually operate them in check environments to see how they go. And, of study course, you must generally backup your data just before performing so.

For all those who are fascinated in upgrading Ubuntu Server (or desktop) from 20.04 LTS to 22.04 LTS, I’m going to stroll you by the course of action.

As soon as once again I will alert you that this should really not be done on a production device till:

  • The full launch is made readily available.
  • You’ve backed-up all of your information.
  • You’ve analyzed the process on a non-generation device.

With that public service announcement out of the way, let us update.

What you are going to will need

To successfully pull off an up grade, you are going to will need a working occasion of Ubuntu 20.04 and a person with sudo privileges.

How to enhance to Ubuntu 22.04

The very first matter you need to do is run a regular update and improve to make confident all of the software set up on the machine is at the most recent model. Log into your Ubuntu Server occasion and problem the pursuing two commands:

sudo apt-get update

sudo apt-get enhance -y

When that completes, run the dist-update command like so:

sudo apt-get dist-up grade -y

Up coming, eliminate any deals that are no more time demanded with:

sudo apt-get autoremove -y

This is a great chance to remind you to back again up your details and make certain you’re working this on a non-production device.

We now have to have to install the update-supervisor-core package deal that will allow us to up grade from just one launch to yet another. To install this package deal, challenge the command:

sudo apt put in update-manager-core

Now, we can operate the precise update. Since Ubuntu 22.04 is nevertheless in beta, there is no official release readily available, so we have to drive the improve. After April 21, 2022 (the planned day for the official launch), you will not have to use the -d flag. Although 22.04 is nonetheless in beta, the upgrade command is:

sudo do-launch-improve -d

Considering the fact that we’re logged in through SSH, you are going to obtain a few of warnings, the initial of which asks you if you’d like to continue (Figure A).

Determine A

Since we're running over SSH, we have to instruct the upgrade process to continue.
Because we’re functioning above SSH, we have to instruct the enhance process to go on.

Kind y and you will then be knowledgeable that SSH has been restarted on port 1022 (need to anything go erroneous). Strike Enter on your keyboard to carry on. At some point, you are going to be introduced with an information window (Figure B), informing you what is going to change through the update process.

Figure B

Eighteen packages will be removed, 106 new packages will be installed and 591 packages will be upgraded in my example.
Eighteen deals will be eliminated, 106 new deals will be put in and 591 packages will be upgraded in my example.

Kind y to keep on. At this point, the up grade will move forward. Soon soon after the approach starts, you’ll be questioned if you’d like certain products and services to be restarted all through the update (Determine C).

Determine C

Restarting processes during the upgrade is necessary.
Restarting procedures for the duration of the enhance is needed.

Use Tab to choose Sure and strike Enter on your keyboard.

Based on the software package you have mounted on your system, you may be asked other questions (these kinds of as for Postfix hostnames). Cling out for a bit, in case the upgrade demands your enter. But the moment you start out looking at deals upgrading, it is almost nothing but a waiting around sport. At this stage, either sit again and check out the output fly by in the terminal window, or go consider care of 1 of your other admin jobs, ’cause this will take a when. Give the upgrade any where from 15-60 minutes (relying on the pace of your network relationship and components).

When the enhance completes, you’ll be prompted to reboot the machine. When asked, sort y to reboot.

At the time the equipment reboots, log in and issue the command:

cat /and many others/lsb-release

You should really see the adhering to strains:



DISTRIB_DESCRIPTION=”Ubuntu Jammy Jellyfish (progress branch)”

Congratulations, you have just upgraded Ubuntu from 20.04 to 22.04. It is time to kick the tires of the new release to see how nicely it fares. If all goes perfectly, you should not have any issue upgrading your generation machines (when the official release is designed obtainable). Just bear in mind to back again up your info and make confident you have extensively tested this course of action on a non-creation server that perfectly mimics individuals in output.

Subscribe to TechRepublic’s How To Make Tech Do the job on YouTube for all the hottest tech information for business execs from Jack Wallen.

Fibo Quantum