Ubuntu update

Admin Ubuntu

How to upgrade Ubuntu to the latest version.

Check our version:

lsb_release -a


No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.4 LTS
Release: 18.04
Codename: bionic

Check a new Ubuntu release:

sudo do-release-upgrade -c -d


Checking for a new Ubuntu release
New release ‘20.04 LTS’ available.
Run ‘do-release-upgrade’ to upgrade to it.

Get the update to the latest LTS* version:

sudo do-release-upgrade -d

* Long-Term Support – 5 years version support period, instead of the usual 9 months


Checking for a new Ubuntu release
Get:1 Upgrade tool signature [1554 B]
Get:2 Upgrade tool [1342 kB]
Fetched 1343 kB in 0s (0 B/s)
authenticate ‘focal.tar.gz’ against ‘focal.tar.gz.gpg’
extracting ‘focal.tar.gz’

Reading cache

Checking package manager

Continue running under SSH?

This session appears to be running under ssh. It is not recommended
to perform a upgrade over ssh currently because in case of failure it
is harder to recover.

If you continue, an additional ssh daemon will be started at port
Do you want to continue?

All questions are answered Yes

Sometimes you may be asked:

Configuration file ‘/etc/systemd/resolved.conf’
==> Modified (by you or by a script) since installation.
==> Package distributor has shipped an updated version.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer’s version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : start a shell to examine the situation
The default action is to keep your current version.

Here we need to watch what changes, but if we want to upgrade we must the answer Y.

That’s all:

Welcome to Ubuntu 20.04 LTS (GNU/Linux 5.4.0-29-generic x86_64)

* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage

Check our version again:

lsb_release -a

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

Tagged on:

Leave a Reply

Write your comment if you have something on the topic of the current article:
"Ubuntu update"