How to upgrade Ubuntu 18.04 LTS to Ubuntu 20.04 LTS via terminal

Desktop image of Ubuntu 20.04 LTS (Focal Fossa)

Step:1

$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=18.04
DISTRIB_CODENAME=bionic
DISTRIB_DESCRIPTION="Ubuntu 18.04.4 LTS"

Step:2

$ sudo apt update
$ sudo apt upgrade -y

Step:3

$ sudo apt --purge autoremove

Step:4

$ sudo apt install update-manager-core -y

Step:5

$ sudo do-release-upgrade
$ sudo do-release-upgrade -d
$ cat /etc/lsb-release

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Dr. Soumen Atta, Ph.D.

Dr. Soumen Atta, Ph.D.

94 Followers

Postdoctoral Researcher at Laboratoire des Sciences du Numérique de Nantes (LS2N), Université de Nantes, IMT Atlantique, Nantes, France.