How to upgrade Ubuntu 18.04 to Ubuntu 20.04 LTS using command line

We'll cover the process of upgrading from Ubuntu 18.04 to Ubuntu 20.04 from the command line interface. If you wish to do a clean install and have a Cloud VPS service with Owned-Networks, you can do it from our VPS Control Panel, the guide below is good if you wish to upgrade from an existing Ubuntu 18.04 installation.

 

It is important that you take backups prior to this procedure as a precaution, so if you've already taken backups let's get to it.

Let's first make sure our server is up to date with all the latest packages for 18.04:

[email protected]:~# sudo apt update
[email protected]ade-to-ubuntu20:~# sudo apt list --upgradable
[email protected]:~# sudo apt upgrade

 

 

Let's reboot to ensure we're running the latest of everything prior to the upgrade of version:

[email protected]:~# sudo reboot

 

After it's back online let's go ahead and remove all older kernels that's we're no longer using:

[email protected]:~# sudo apt --purge autoremove

 

We'll no install the update core manager:

[email protected]:~# sudo apt install update-manager-core

 

 

We're not ready to initiate the actual ugprade, so we'll run the following command:

[email protected]:~# sudo do-release-upgrade

 

You may get the following:

 

No worries, if that's the case we simply add "-d" to the command, like this:

[email protected]:~# sudo do-release-upgrade -d

 

So after confirming with "y" and hitting ENTER we'll get another prompt to confirm if we actually want to proceed with the upgrade, it should provide some information on the amount of data that will be downloaded, etc, we confirm by hitting y and ENTER:

 

You may be asked to confirm a few things during the process, there will also be a process shown during the upgrade process, once it's complete we should reboot the server and it will boot into the newly upgraded version of Ubuntu:

 

All done, let's verify we did well:

[email protected]:~# cat /etc/issue

 

  • ubuntu 18.04 upgrade, ubuntu 20.04 upgrade
  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

ownCloud Auto Install Script on Debian 7

Here is an easy way to install ownCloud on Debian 7 with a script, but first, for those who...

NGINX – Allow access only to certain IPs

Nginx has a nice module that not many people know about, it basically enables us...

How to configure NTP client in CentOS

What's NTP? NTP stands for Network Time Protocol, and it is an Internet protocol used to...

Initial Server Setup on CentOS 6

Here are some recommendations to setup your VPS or server when you first get it, some of these...

How To Install nginx on CentOS

What is NGINX? Nginx (pronounced "engine-x") is an open source reverse proxy server for HTTP,...