• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer

Mister PKI

SSL Certificates * SSL Tools * Certificate Decoder

  • Buy SSL Certificates
  • Blog
  • OpenSSL
  • Keytool
  • SSL Tools
  • Donate

Upgrade Ubuntu 18.04 to 20.04

June 15, 2022 by Mister PKI Leave a Comment

This article will demonstrate how to upgrade Ubuntu 18.04 to 20.04. We recommend always staying up to date to the latest LTS (Long Term Support) version of Ubuntu and this article assumes the intermediary releases were skipped. As soon as a new LTS version is made available to you in your package manager you should go ahead and plan to upgrade your ubuntu distro. For those of you that are running 18.04, you should go ahead and plan to upgrade to 20.04 soon.

This article will demonstrate how to perform the upgrade on the command line. This can be done for both Ubuntu desktop and Ubuntu server.

Make sure to backup all data before performing the upgrade!

Upgrade to Ubuntu 20.04 LTS from the command line

By upgrading on the command line you will not have any GUI options available to you. This article is assuming you are an experienced Linux Systems Administrator and that you have performed a backup of your entire system already.

  1. Check if an upgrade is available
sudo do-release-upgrade -c
  1. If you receive a message stating there is no development version of an LTS available, you are done. Else, continue with the upgrade.
sudo do-release-upgrade -c
  1. Answer in prompted questions. The upgrade may take a while to complete.
  2. The upgrade is complete. Now verify any services or software are running as expected on your newly upgraded instance of Ubuntu 20.04 LTS.

Support checking for non LTS upgrades

While the primary purpose of this article is to demonstrate how to upgrade to the latest LTS version of Ubuntu, you may want to enable your package manager to look for development versions as well. As you may have noticed when running the sudo do-release-upgrade -c command earlier, there is an option to support development version updates.

To upgrade to the latest non-LTS development release
set Prompt=normal in /etc/update-manager/release-upgrades.

The release-upgrades file looks like the following:

# 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

As you can see, the Prompt is set to only check for LTS versions. Simply change that to normal to get the intermediary versions before the next LTS release is made available.

Conclusion

This article demonstrated how to upgrade from Ubuntu 18.04 to 20.04 LTS on the command line. Let us know in the comments if you have any questions or would like to see alternative ways of upgrading Ubuntu. Read more of our articles.

linux

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Popular Posts

PKCS12

openssl s_client

Keytool

Keytool list

ECDSA vs RSA

OpenSSL

PKCS7

Certificate Decoder

Training Courses

Top online courses in IT & Software

Cyber Security Training

Udemy - The Complete Internet Security Privacy Course icon

Buy SSL Certificates

The SSL Store

Comodo Store

Sectigo Store

RapidSSL

Recent Posts

  • pfx password
  • pkcs12
  • Sendmail vs Postfix – Mail Transfer Agent Comparison
  • Python mock datetime now
  • Python get SSL Certificate

Footer

  • Twitter
  • YouTube

Pages

  • About Mister PKI
  • Blog
  • Compare and Buy Affordable PKI Certificates
  • Contact Us
  • Full Disclosure
  • Privacy Policy
  • SSL Tools – Certificate Decoder and Certificate Checker

Copyright © 2022