Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security & DevOps Insights

  • Home
  • About
  • Advertise With US
  • Contact
  • Reviews
  • Toggle search form
Home » Linux » How to Upgrade From Ubuntu 20.04 LTS to 22.04 LTS
  • ADDS vs AD LDS
    Differences between AD LDS and AD DS Windows
  • ClearTPM
    Clear TPM via Management Console or Windows Defender Center App Windows
  • Windows Defender exclusion
    Mitigate Veeam Threat Hunter Service Scanning Interference Windows Server
  • How to Restore Microsoft Authenticator App on a New Device
    How to fix “Action required” in Microsoft Authenticator App Microsoft Exchange/Office/365
  • Trellix Invalid credential
    Fix unable to login to Trellix ePO with Windows authentication Windows Server
  • Update proxmox package database
    Resolve the Update Package Database failure on Proxmox VE Virtualization
  • 1 WeXxkEX0JG3oB781HD8Hrg 1
    Post OS installation: Configure the properties of Windows Server Windows Server
  • DC creation as recommended by Microsoft
    Setup a Domain Controller as Recommended by Microsoft Windows Server

How to Upgrade From Ubuntu 20.04 LTS to 22.04 LTS

Posted on 28/06/202227/07/2023 Raphael Gab-Momoh By Raphael Gab-Momoh No Comments on How to Upgrade From Ubuntu 20.04 LTS to 22.04 LTS
FimageUbuntuUpgrade

Built on Debian, Ubuntu is a Linux distribution primarily using free and open-source software. Officially, Ubuntu is available in three editions: Desktop, Server, and Core for robotics and Internet of Things devices. Every version may be used on the computer by itself or in a virtual machine. Ubuntu 22.04 LTS (“Jammy Jellyfish”) is currently available for download. If you’re using Ubuntu 20.04 LTS (Focal Fossa), and want to upgrade to 22.04 LTS, you’re in the right place.

Using the command line and GUI options, this guide describes how to properly perform the upgrade. Here is a similar guide: How To Install Google Cloud SDK on a Linux System and How to install Golang on a Linux System also How to install and configure JIRA on Linux and How to use color filters in Windows again, How to install Sysinternals from the Microsoft Store also How to install Gradle on Ubuntu

There are New and Important features including:
Apache 2.4.52
BIND 9.18
Corosync 3.16
Django 3.2.12
Firefox 99 (Firefox is now only provided in Ubuntu as a snap)
GNOME has been updated to include new features and fixes from GNOME 41 and GNOME 42
LibreOffice 7.3
Linux kernel v5.15.0-25
MySQL 8.0.28
NetworkManager 1.36
nftables is default as backend for the firewall
Pacemaker 2.1.2
Perl v5.34.0
PHP 8.1.2
PostgreSQL 14.2
Python 3.10.4
Ruby 3.0
Samba 4.15.5
ssh-rsa is now disabled by default in OpenSSH.
Thunderbird 91

Prerequisites to Upgrade From Ubuntu 20.04 LTS

Below are the prerequisites for upgrading Ubuntu 20.04 LTS to 22.04 LTS

  • Ubuntu 20.04 LTS
  • A computer with root privileges
  • Terminal

The CLI method of Upgrade From Ubuntu 20.04 LTS to 22.04 LTS

Before switching from Ubuntu 20.04 (Focal Fossa) to Ubuntu 22.04 (Jammy Jellyfish), completely back up your data. Furthermore, check for default behavior for the release upgrader by using the cat/more or less command:

less /etc/update-manager/release-upgrades

Make sure the prompt is set to LTS, as shown below:

# Default behavior for the release upgrader.

[DEFAULT]
# Default prompting and upgrade behavior, valid options:
#
#  never - Never check for, or allow upgrading to, a new release.
#  normal - Check to see if a new release is available.  If more than one new
#           release is found, the release upgrader will attempt to upgrade to
#           the supported release that immediately succeeds the
#           currently-running release.
#  lts    - Check to see if a new LTS release is available.  The upgrader
#           will attempt to upgrade to the first LTS release available after
#           the currently-running one.  Note that if this option is used and
#           the currently-running release is not itself an LTS release the
#           upgrader will assume prompt was meant to be normal.
Prompt=lts
/etc/update-manager/release-upgrades (END)

Step 1: Update your system

To upgrade from Ubuntu 20.04 LTS to 22.04 LTS, you must first update your system.

Start the terminal program. Then, use the ssh command to connect to a remote server. To begin, locate all packages that are on hold and use the following command: apt-mark

sudo apt-mark showhold
How to upgrade from Ubuntu 20.04 LTS to 22.04 LTS-markdown
showhold

If the output is empty, there are no packages that have been kept back, and you can continue without risk. Otherwise, you must use the apt-mark command to release a hold on packages. Unhold the packets, for example, as seen below (replace pkg1 pkg2 with actual names)

sudo apt-mark unhold pkg1 pkg2

Using the apt command, update & upgrade your present system:

apt update
apt upgrade

You should note that apt update refreshes the apt repository, while apt upgrade applies those updates.

reboot since you’ve installed a new kernel through the upgrade.

sudo apt reboot

Step 2 – Write down the name of the current Linux distribution and kernel version.

The next step in upgrading Ubuntu 20.04 LTS TO 22.04 LTS is indicating the Linux distribution and kernel version.

You can do this with the commands below:

uname -mrs
lsb_release -a
How to upgrade from Ubuntu 20.04 LTS to 22.04 LTS-lsb
uname

Step 3 – Open TCP port 1022

Using the ufw command, open an extra ssh port at port 1022. especially if you are working with a virtual machine and sshing into it

sudo ufw allow 1022/tcp comment 'As a failsafe upgrading option, open port ssh tcp port 1022.'

verify this by running the command below

sufo ufw status
How to upgrade from Ubuntu 20.04 LTS to 22.04 LTS-ufw
ufw

Step 4: Using the command line, change to Ubuntu 22.04 LTS

sudo do-release-upgrade -d

This might take some time, but when completed, it might look like what you see below

How to upgrade from Ubuntu 20.04 LTS to 22.04 LTS-upgrade
upgrade

upgrade arrived by accident. I tried to restart my computer because it was frozen and discovered it was completed without a GUI. So next, we will install a GUI on it with the command

sudo apt-get install ubuntu-desktop

let’s confirm the installation of Ubuntu 22.04 with the command:

uname -mrs
lsb_release -a
version
ubuntu 22 installed

Step 5: Enable 3rd party repos/mirrors

Ensure you enable third-party mirrors and repo now that you’ve completed the upgrade from Ubuntu 20.04 LTS to 22.04 LTS. However, you won’t receive updates if you don’t. As an example, use the cd command:

cd /etc/apt/sources.list.d
ls -l

Finally, let’s clean unwanted leftovers with the command below:

sudo apt autoremove --purge

This even gets interesting and easier using the GUI by typing the command below in your terminal

sudo update-manager -c -d

GUI method of Upgrade From Ubuntu 20.04 LTS to 22.04 LTS

guimethod

The CLI method helped us upgrade from Ubuntu 20.04 LTS to 22.04 LTS, assuming we intend to upgrade from 22.04 LTS to 22.10 LTS. Thus, as indicated by the red arrow above, we just need to hit the upgrade button from the upgrade icon on the software updater software in your machine.

kinetic-kudu
kinetic kudu

As you can see, the upgrade is still being tested, and I do a lot of work with my machine, so I would not want to take that risk. But if you were upgrading from 20.04 to 22.04, it would be the same process. In the screenshot above, you can get the latest release once you hit upgrade. GUI seems easier. Let us know in the comment section which method works best for you.

Summary

Overall, you’ve learned about CLI ways for upgrading from Ubuntu 20.04 LTS to 22.04 LTS and briefly saw how to use the software updater for the GUI method.

Rate this post

Thank you for reading this post. Kindly share it with others.

  • Click to share on X (Opens in new window) X
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on Pinterest (Opens in new window) Pinterest
  • Click to share on Tumblr (Opens in new window) Tumblr
  • Click to share on Telegram (Opens in new window) Telegram
  • Click to share on WhatsApp (Opens in new window) WhatsApp
  • Click to share on Pocket (Opens in new window) Pocket
  • Click to share on Mastodon (Opens in new window) Mastodon
  • Click to share on Bluesky (Opens in new window) Bluesky
  • Click to share on Threads (Opens in new window) Threads
  • Click to share on Nextdoor (Opens in new window) Nextdoor
Linux Tags:Ubuntu 20.04 LTS

Post navigation

Previous Post: Volume Shadow Copies: How to configure VSS on Windows Server
Next Post: How to install AnyDesk on a Linux Machine

Related Posts

  • Package1
    Install Synaptic Package Manager: Handle packages in Ubuntu Linux
  • sdfdghjk
    How to fix “Job for Mattermost service failed” error Linux
  • screenshot 2020 04 23 at 00.30.09
    How to mount a USB Drive in Linux Linux
  • apache ubuntu 20 04
    How to Install Apache HTTP Server on Ubuntu 20.04 LTS Linux
  • FEATURE IMAGE BASE URL 1
    How to solve cannot find a valid base URL for repo: base/7/x86_64 Linux
  • FEATURE ZABBIX
    How to Install Zabbix Monitoring Tool on a Linux System Linux

More Related Articles

Package1 Install Synaptic Package Manager: Handle packages in Ubuntu Linux
sdfdghjk How to fix “Job for Mattermost service failed” error Linux
screenshot 2020 04 23 at 00.30.09 How to mount a USB Drive in Linux Linux
apache ubuntu 20 04 How to Install Apache HTTP Server on Ubuntu 20.04 LTS Linux
FEATURE IMAGE BASE URL 1 How to solve cannot find a valid base URL for repo: base/7/x86_64 Linux
FEATURE ZABBIX How to Install Zabbix Monitoring Tool on a Linux System Linux

Leave a Reply Cancel reply

You must be logged in to post a comment.

Microsoft MVP

VEEAMLEGEND

vexpert-badge-stars-5

Virtual Background

GoogleNews

Categories

veeaam100

sysadmin top30a

  • ADDS vs AD LDS
    Differences between AD LDS and AD DS Windows
  • ClearTPM
    Clear TPM via Management Console or Windows Defender Center App Windows
  • Windows Defender exclusion
    Mitigate Veeam Threat Hunter Service Scanning Interference Windows Server
  • How to Restore Microsoft Authenticator App on a New Device
    How to fix “Action required” in Microsoft Authenticator App Microsoft Exchange/Office/365
  • Trellix Invalid credential
    Fix unable to login to Trellix ePO with Windows authentication Windows Server
  • Update proxmox package database
    Resolve the Update Package Database failure on Proxmox VE Virtualization
  • 1 WeXxkEX0JG3oB781HD8Hrg 1
    Post OS installation: Configure the properties of Windows Server Windows Server
  • DC creation as recommended by Microsoft
    Setup a Domain Controller as Recommended by Microsoft Windows Server

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 1,841 other subscribers
  • RSS - Posts
  • RSS - Comments
  • About
  • Authors
  • Write for us
  • Advertise with us
  • General Terms and Conditions
  • Privacy policy
  • Feedly
  • Telegram
  • Youtube
  • Facebook
  • Instagram
  • LinkedIn
  • Tumblr
  • Pinterest
  • Twitter
  • mastodon

Tags

AWS Azure Bitlocker Microsoft Windows PowerShell WDS Windows 10 Windows 11 Windows Deployment Services Windows Server 2016

Copyright © 2025 TechDirectArchive

 

Loading Comments...
 

You must be logged in to post a comment.