• 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 20.04

Written by Admin, Updated On April 24, 2020
ubuntu
How to Upgrade to Ubuntu 20.04

Ubuntu 20.04 LTS was released on April 23, 2020 and codename is Focal Fossa. It will be supported by five years of app and security updates. This page shows you how to upgrade to Ubuntu 20.04 LTS from Ubuntu 18.04 or Ubuntu 19.10.

Prerequisites#

  • It’s relatively simple to upgrade to Ubuntu 20.04 from either Ubuntu 18.04 or Ubuntu 19.10. If you running any previous version, you must first upgrade to Ubuntu 18.04 or 19.10.
  • You need to be login as root or a user with sudo privileges.

Step 1 – Make a Backup of Your Data#

At first, its always recommended to take backup of your data before starting upgrade of your OS. If you are running on a virtual machine then you can take complete system snapshot so it can be restore if anything goes wrong.

Step 2 – Upgrade all installed packages#

At this stage, you have backup, and it is best practice to update all currently installed packages to their latest versions.

Before going ahead, check whether there are any packages marked as hold on your system. Held back marked packages cannot be automatically installed, upgraded, or removed. This may cause issues during the upgrade process. Run the below commands:

sudo apt-mark showhold

If you found any packages with on hold then you should unhold it by typing:

sudo apt-mark unhold package_name

Again, index apt list and upgrade all installed packages:

sudo apt update
sudo apt upgrade

You must reboot when ubuntu linux kernel gets updated:

sudo reboot

Perform a major version upgrade of the installed packages:

sudo apt full-upgrade

It may remove some unused packages. Run below command to remove all installed dependencies which are no longer needed.

sudo apt --purge autoremove

Step 3 – Upgrade to Ubuntu 20.04 LTS (Focal Fossa)#

It’s a very simple process to upgrade to latest Ubuntu version. You can upgrade by multiple ways either from the command line or using GUI update tool.

We are going to upgrade using command line with do-release-update. do-release-upgrade is part of the “update-manager-core” package that is installed by default on most Ubuntu systems. You can install it with:

sudo apt install update-manager-core

When that finishes, run the Ubuntu upgrade utility.

sudo do-release-upgrade -d

Now it will prompt you a couple of questions about how you want to continue with the upgrade. It will ask you whether you want the services to be automatically restarted during the upgrade, Press y. It also may ask several questions so read the questions carefully before making a selection.

The upgrade process may take some time and depends on the number of updates and your Internet speed.

The update tool will prompt you whether you want to remove the obsolete software. If you are not sure about it just type d and check the list of obsolete packages. Generally it is safe to enter y and remove all obsolete packages.

You will be prompt for reboot your system. Type y to reboot:

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

Step 4 – Verification#

You can check the Ubuntu version by entering the below command:

lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04 LTS
Release: 20.04
Codename: focal

For a desktop user, it will show a new graphical boot splash and login screen.

You did it. Enjoy your new Ubuntu 20.04 installation.

Conclusion#

Upgrade to Ubuntu 20.04 LTS was successful. Now you can test your apps and code that is compatible with the upcoming version.

If you face any error, visit the release notes page. Feel free to leave a comment if you have any questions.

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 How to Install WordPress with Nginx on CentOS 8
Next Article   How to Install Jenkins on Debian 10 Linux

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 PHP 8.2 on Debian 11
    How to Install PHP 8.2 on Debian 11 Linux February 24, 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
© 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