Gaming industry under DDoS attack. Get DDoS protection now. Start onboarding
  1. Home
  2. Developers
  3. How to Upgrade Ubuntu to 22.04 LTS

How to Upgrade Ubuntu to 22.04 LTS

  • By Gcore
  • May 31, 2023
  • 2 min read
How to Upgrade Ubuntu to 22.04 LTS

Ubuntu releases a new version every six months, with long-term support (LTS) versions arriving every two years. As of June 2023, the most recent release is 23.04. Meanwhile, the current long-term support release is 22.04. This guide will walk you through how to upgrade your existing Ubuntu version to the latest LTS version, 22.04.

Before diving in, please remember to back up your data. Significant system changes always come with a risk. Using our cloud service or an external hard drive to back up your data is a wise precaution.

1. Check your current Ubuntu version. You can find how to do this in our “How to Check Your Ubuntu Version” guide. In this example, the initial version before updating is 20.04.

2. Update the system’s package management tool using the following commands:

sudo apt updatesudo apt upgrade

3. Ensure you have the latest Ubuntu distribution release tool. You can do this with the following command:

sudo apt dist-upgrade

4. To manage the upgrade process, you’ll need the “update-manager-core” package. If it’s not already installed, you can add it with this command:

sudo apt install update-manager-core

5. Upgrade to the latest version of Ubuntu:

sudo do-release-upgrade

6. Wait until the installation completes.  It can take quite a while.

7. Reboot the server with the following command:

sudo reboot

After your system restarts, you can verify that the upgrade was successful. Open the Terminal and type the following command:

lsb_release -a

And there you have it. Now you know how to upgrade Ubuntu to the latest LTS version available at the time this guide was written. Enjoy your updated Ubuntu experience!


Want to run Ubuntu in a virtual environment? With Gcore Cloud, you can choose from Basic VM, Virtual Instances, or VPS/VDS suitable for Ubuntu:

Choose an instance

Related articles

What's the difference between multi-cloud and hybrid cloud?

Multi-cloud and hybrid cloud represent two distinct approaches to distributed computing architecture that build upon the foundation of cloud computing to help organizations improve their IT infrastructure.Multi-cloud environments involve us

What is multi-cloud? Strategy, benefits, and best practices

Multi-cloud is a cloud usage model where an organization utilizes public cloud services from two or more cloud service providers, often combining public, private, and hybrid clouds, as well as different service models, such as Infrastructur

What is cloud migration? Benefits, strategy, and best practices

Cloud migration is the process of transferring digital assets, such as data, applications, and IT resources, from on-premises data centers to cloud platforms, including public, private, hybrid, or multi-cloud environments. Organizations can

What is a private cloud? Benefits, use cases, and implementation

A private cloud is a cloud computing environment dedicated exclusively to a single organization, providing a single-tenant infrastructure that improves security, control, and customization compared to public clouds.Private cloud environment

What is a cloud GPU? Definition, types, and benefits

A cloud GPU is a remotely rented graphics processing unit hosted in a cloud provider's data center, accessible over the internet via APIs or virtual machines. These virtualized resources allow users to access powerful computing capabilities

What is cloud networking: benefits, components, and implementation strategies

Cloud networking is the use and management of network resources, including hardware and software, hosted on public or private cloud infrastructures rather than on-premises equipment. Over 90% of enterprises are expected to adopt cloud netwo

Subscribe to our newsletter

Get the latest industry trends, exclusive insights, and Gcore updates delivered straight to your inbox.