Atlantic.Net Blog

How to Upgrade Ubuntu 20.04 to Ubuntu 21.04

Hitesh Jethva
by Atlantic.Net (273 posts) under Tutorials, VPS Hosting
0 Comments

The new Ubuntu 21.04 (Hirsute Hippo) has been released on 22 April 2021. Ubuntu 20.04 is long-term support and it will be supported for 5 years. Ubuntu 21.04 is not a long-term support release, meaning it will be supported until January 2022 (9 months).

Before upgrading to Ubuntu 21.04 version, you should be aware of the following things:

  • The upgrade process will download a couple of GBs of data, so you will need a good internet connection.
  • It is always recommended to backup your important files to an external hard disk.
  • After upgrading to a newer version, you can revert to the older version.
  • Upgrading to a newer version will disable the third-party repositories that you have added on your own.

In this post, we will show you how to upgrade Ubuntu 20.04 to Ubuntu 21.04.

Prerequisites

  • A fresh Ubuntu 20.04 server on the Atlantic.Net Cloud Platform
  • A root password configured on your server

Step 1 – Create Atlantic.Net Cloud Server

First, log in to your Atlantic.Net Cloud Server. Create a new server, choosing Ubuntu 20.04 as the operating system with at least 2GB RAM. Connect to your Cloud Server via SSH and log in using the credentials highlighted at the top of the page.

Once you are logged in to your Ubuntu 20.04 server, run the following command to update your base system with the latest available packages.

apt-get update -y

Step 2 – Update the System

Before starting, check the current version of Ubuntu with the following command:

lsb_release -a

You should see the following output:

Distributor ID:	Ubuntu
Description:	Ubuntu 20.04 LTS
Release:	20.04
Codename:	focal

Next, update your system to the latest packages with the following command:

apt-get update -y
apt-get upgrade -y
apt-get dist-upgrade -y

Next, install the update-manager-core with the following command:

apt-get install update-manager-core -y

Next, remove all unwanted packages with the following command:

apt-get clean
apt-get --purge autoremove

Next, restart your system to apply the changes:

reboot

Step 3 – Upgrade 20.04 to Ubuntu 21.04

Ubuntu 21.04 is a non-LTS version, so you will need to edit the file /etc/update-manager/release-upgrades and change the LTS version to normal:

nano /etc/update-manager/release-upgrades

Find the following line:

Prompt=lts

Replaced it with the following line:

Prompt=normal

Save and close the file when you are finished.

Run the following command to upgrade to Ubuntu 20.10 first. After that, follow the same steps to upgrade to Ubuntu 21.04.

do-release-upgrade

Follow the on-screen installation instruction to finish the process.

Once the up-gradation process has been completed, your system will be restarted automatically.

After restarting, log in to your system and verify the version of your Ubuntu with the following command:

lsb_release -a
Distributor ID:	Ubuntu
Description:	Ubuntu 20.10
Release:	20.10
Codename:	groovy

Now, run the following command to upgrade from Ubuntu 20.10 to 21.04:

do-release-upgrade -d

After restarting, log in to your system and verify the version of your Ubuntu with the following command:

lsb_release -a

You should see that your system will be updated to Ubuntu 21.04:

Distributor ID:	Ubuntu
Description:	Ubuntu 21.04
Release:	21.04
Codename:	hirsute

Conclusion

In the above guide, you learned how to upgrade from Ubuntu 20.04 to Ubuntu 21.04. Ubuntu 21.04 is a non-LTS version, so stick with Ubuntu 20.04 version if you need a stable version. If you don’t, give it a try on your virtual private server today!

Get A Free To Use Cloud VPS

Free Tier Includes:
G3.2GB Cloud VPS Free to Use for One Year
50 GB of Block Storage Free to Use for One Year
50 GB of Snapshots Free to Use for One Year


Looking for a Hosting Solution?

We Provide Cloud, Dedicated, & Colocation.

  • Seven Global Data Center Locations.
  • Flexible Private, Public, & Hybrid Hosting.
  • 24x7x365 Security, Support, & Monitoring.
Contact Us Now! Med Tech Award FTC
SOC Audit HIPAA Audit HITECH Audit

Recent Posts

Penalties for Non-Compliance of HIPAA: What Is the Fine? Can You Get Jail Time?
Major SMS Company Hacked
​​Fight the Phish
How to Install WordPress with SlickStack on Ubuntu 20.04
Top 10 Linux Distributions

Get started with 12 months of free cloud VPS hosting

Free Tier includes:
G3.2GB Cloud VPS Server Free to Use for One Year
50 GB of Block Storage Free to Use for One Year
50 GB of Snapshots Free to Use for One Year


New York, NY

100 Delawanna Ave, Suite 1

Clifton, NJ 07014

United States

San Francisco, CA

2820 Northwestern Pkwy,

Santa Clara, CA 95051

United States

Dallas, TX

2323 Bryan Street,

Dallas, Texas 75201

United States

Ashburn, VA

1807 Michael Faraday Ct,

Reston, VA 20190

United States

Orlando, FL

440 W Kennedy Blvd, Suite 3

Orlando, FL 32810

United States

Toronto, Canada

20 Pullman Ct, Scarborough,

Ontario M1X 1E4

Canada

London, UK

14 Liverpool Road, Slough,

Berkshire SL1 4QZ

United Kingdom

Resources