• Home
  • Linux
  • Ubuntu
  • Debian
  • CentOS
  • Linux Commands
  • About Us
  • Donate
TecNStuff
Menu
  • Home
  • Linux
  • Ubuntu
  • Debian
  • CentOS
  • Linux Commands
  • About Us
  • Donate

How to Upgrade to Ubuntu 22.04?

Written by Admin, Updated On June 1, 2022
ubuntu, ubuntu lts
How to Upgrade to Ubuntu 22.04

Upgrading the Ubuntu to its latest version is a straightforward and essential process. There are two methods of Ubuntu up-gradation.

You can do it by the GUI update tool and by command line. This article will tell you the complete command-line process on servers and desktops.

By following this article, you can easily upgrade to the latest version, Ubuntu 22.04, from Ubuntu 20.04 or 21.10.

Prerequisite#

  • The upgrade operation can be done with the superuser (root) folder. You must be logged in as a user with sudo privileges or a root user.
  • When Ubuntu is installed the first time, that user is superuser privileges by default. Before starting work, make sure you have a good internet connection.
  • The foremost thing is to make sure to take a backup of your data before making any changes.

Update Package Currently#

Before starting the release upgrade, Update all your packages to the latest version. Packages marked as held cannot be installed, upgraded, or removed automatically. So you need to upgrade them manually.

To check about held packages in your system, use this command:

sudo apt-mark showhold

If you got an empty output, there are no held back packages, but if some packages are on hold, you need to unhold the boxes.

An empty output means there are no held back packages. If there are on hold packages, you should unhold the packages with:

sudo apt-mark unhold package_name

Then refresh the apt list and upgrade installed packages by these commands:

sudo apt update
sudo apt upgrade

System Upgrade#

Perform a system upgrade by this command:

sudo apt full-upgrade

Remove all automatically installed old kernels:

sudo apt --purge autoremove

Upgrade to Ubuntu 22.04 LTS (Jammy Jellyfish)#

You can upgrade your Ubuntu to the latest version with a single line of command:

sudo do-release-upgrade

The do-release-upgrade command will disable all present third-party repositories, change your apt list, and point them to “jammy.”

During this process, you get prompt to confirm whether you want to start. You need to click on Y every time until you want to do some custom changes.

According to your internet connection, it may take some time.

Then you’ll ask to reboot your machine, click yes , and get this output.

"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"

Your Ubuntu new version is installed. Now to check, run this command:

lsb_release -a

If you get this output

No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 22.04 LTS
Release:	22.04
Codename:	jammy

Then Enjoy!!!!

Verdict!#

On account of the huge popularity of Ubuntu among the Linux desktop users, we are pleased to share this article on how to upgrade to Ubuntu 22.04.

We have tried our best to simplify the process so that anyone can upgrade to Ubuntu 22.04 easily and smoothly.

If you get a problem, go to the release notes page to see if there are any known issues that might occur during the upgrading.

If our content helps you, please consider buying us a coffee

Thank you for your support.

Share On
Share on Facebook
Share on Twitter
Share on Reddit
Share on Tumblr
 Previous Article What is 503 Service Unavailable Error
Next Article   How to Upgrade Debian 10 Buster to Debian 11 Bullseye?

Related Posts

  • How to Install Apache, MySQL, PHP (LAMP) on Ubuntu 22.04

    How to Install LAMP on Ubuntu 22.04

    March 20, 2023
  • How to Install LEMP Stack on Ubuntu 22.04

    How to Install LEMP Stack on Ubuntu 22.04

    March 18, 2023
  • How to Install Memcached on Ubuntu 22.04

    How to Install Memcached on Ubuntu 22.04

    March 16, 2023

Leave a Reply Cancel reply

DigitalOcean Referral Badge

Popular Posts

  • How to Install Microsoft Edge Browser on Ubuntu 22.04
    How to Install Microsoft Edge Browser on Ubuntu 22.04 March 14, 2023
  • How to Install Ruby on Ubuntu 22.04 LTS
    How to Install Ruby on Ubuntu 22.04 LTS February 27, 2023
  • How to Install LEMP Stack on Ubuntu 22.04
    How to Install LEMP Stack on Ubuntu 22.04 March 18, 2023
  • How to Install Set Up Apache Virtual Hosts on Ubuntu 22.04
    How to Set Up Apache Virtual Hosts on Ubuntu 22.04 March 2, 2023
  • How to Install MariaDB on Debian 11 Bullseye
    How to Install MariaDB on Debian 11 Bullseye March 8, 2023
© 2020 TecNStuff All rights reserved. This website is using and storing cookies on your browser. By using this website you agree our Privacy Policy.  Follow us -  Twitter | Facebook