Upgrade Ubuntu 18.04 to 20.04 LTS using command line

Originally published at: https://www.cyberciti.biz/faq/upgrade-ubuntu-18-04-to-20-04-lts-using-command-line/

I need to upgrade the Ubuntu Linux version 18.04 LTS server to a 20.04 LTS server using the command line option. How do I upgrade Ubuntu 18.04 to 20.04?

1 Like

Thanks for this wonderful guide, I am having a problem with my 20.04 LTS server, the system boots and runs normal for around 30 to 40 min and then it shut down by itself. I have checked all the hardware and there seems to be no problem. I am at a loss now, any advice would be awesome!!

Why can’t I upgrade?

$ cat /etc/lsb-release 
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=19.10
DISTRIB_CODENAME=eoan
DISTRIB_DESCRIPTION="Ubuntu 19.10"

$ sudo do-release-upgrade -c -d
[sudo] password for mike: 
Checking for a new Ubuntu release
New release '20.04' available.
Run 'do-release-upgrade' to upgrade to it.

$ sudo do-release-upgrade
Checking for a new Ubuntu release
No new release found.

Going in circles here.

@FingerCramp Have you tried the following without the -c option i.e. just run the following command:

sudo do-release-upgrade -d 

I don’t recall if I tried that. What ended up working was:

apt full-upgrade

Thanks.