Question

How to upgrade from Ubuntu 18.04 LTS to Ubuntu 20.04 LTS

Good day! Any Idea about this issue?

root@prod:~# sudo do-release-upgrade
Checking for a new Ubuntu release
Get:1 Upgrade tool signature [1554 B]
Get:2 Upgrade tool [1342 kB]
Fetched 1344 kB in 0s (0 B/s)
authenticate 'focal.tar.gz' against 'focal.tar.gz.gpg'
extracting 'focal.tar.gz'
[screen is terminating]
root@prod:~# sudo do-release-upgrade -d
Checking for a new Ubuntu release
There is no development version of an LTS available.
To upgrade to the latest non-LTS develoment release
set Prompt=normal in /etc/update-manager/release-upgrades.
root@prod:~# sudo apt update
Hit:1 https://repos.insights.digitalocean.com/apt/do-agent main InRelease
Hit:2 http://security.ubuntu.com/ubuntu bionic-security InRelease
Hit:3 http://archive.ubuntu.com/ubuntu bionic InRelease
Hit:4 http://ppa.launchpad.net/certbot/certbot/ubuntu bionic InRelease
Hit:5 http://mirrors.digitalocean.com/ubuntu bionic InRelease
Ign:6 https://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.6 InRelease
Hit:7 https://deb.nodesource.com/node_10.x bionic InRelease
Hit:8 http://ppa.launchpad.net/ondrej/php/ubuntu bionic InRelease
Hit:9 http://mirrors.digitalocean.com/ubuntu bionic-updates InRelease



Reading cache

Checking package manager
Reading package lists... Done
Building dependency tree
Reading state information... Done
Hit https://repos.insights.digitalocean.com/apt/do-agent main InRelease
Hit http://mirrors.digitalocean.com/ubuntu bionic InRelease
Hit http://archive.ubuntu.com/ubuntu bionic InRelease
Hit http://ppa.launchpad.net/certbot/certbot/ubuntu bionic InRelease
Ign https://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.6 InRelease
Hit https://deb.nodesource.com/node_10.x bionic InRelease
Hit http://ppa.launchpad.net/ondrej/php/ubuntu bionic InRelease
Hit http://mirrors.digitalocean.com/ubuntu bionic-updates InRelease
Hit http://mirrors.digitalocean.com/ubuntu bionic-backports InRelease
Hit https://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.6 Release
Hit http://security.ubuntu.com/ubuntu bionic-security InRelease
Fetched 0 B in 0s (0 B/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done

Checking for installed snaps

Calculating snap size requirements
No candidate ver:  linux-image-4.15.0-126-generic
No candidate ver:  linux-modules-4.15.0-126-generic

Updating repository information

Third party sources disabled

Some third party entries in your sources.list were disabled. You can
re-enable them after the upgrade with the 'software-properties' tool
or your package manager.

To continue please press [ENTER]

Get:1 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
Get:2 http://archive.ubuntu.com/ubuntu focal InRelease [265 kB]
Get:3 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages [1480 kB]
Get:4 http://archive.ubuntu.com/ubuntu focal/universe amd64 Packages [8628 kB]
Get:5 http://security.ubuntu.com/ubuntu focal-security/main Translation-en [255 kB]
Get:6 http://security.ubuntu.com/ubuntu focal-security/main amd64 c-n-f Metadata [10.4 kB]
Get:7 http://security.ubuntu.com/ubuntu focal-security/restricted amd64 Packages [938 kB]
Get:8 http://security.ubuntu.com/ubuntu focal-security/restricted Translation-en [134 kB]
Get:9 http://security.ubuntu.com/ubuntu focal-security/restricted amd64 c-n-f Metadata [520 B]
Get:10 http://security.ubuntu.com/ubuntu focal-security/universe amd64 Packages [703 kB]
Get:11 http://security.ubuntu.com/ubuntu focal-security/universe Translation-en [126 kB]
Get:12 http://security.ubuntu.com/ubuntu focal-security/universe amd64 c-n-f Metadata [14.4 kB]
Get:13 http://security.ubuntu.com/ubuntu focal-security/multiverse amd64 Packages [22.2 kB]
Get:14 http://security.ubuntu.com/ubuntu focal-security/multiverse Translation-en [5376 B]
Get:15 http://security.ubuntu.com/ubuntu focal-security/multiverse amd64 c-n-f Metadata [512 B]
Get:16 http://archive.ubuntu.com/ubuntu focal/universe Translation-en [5124 kB]
Get:17 http://archive.ubuntu.com/ubuntu focal/universe amd64 c-n-f Metadata [265 kB]
Fetched 18.1 MB in 0s (0 B/s)

Checking package manager
Reading package lists... Done
Building dependency tree
Reading state information... Done

Invalid package information

After updating your package information, the essential package
'ubuntu-minimal' could not be located. This may be because you have
no official mirrors listed in your software sources, or because of
excessive load on the mirror you are using. See /etc/apt/sources.list
for the current list of configured software sources.
In the case of an overloaded mirror, you may want to try the upgrade
again later.


Restoring original system state

Aborting
      g package lists... 2%
*** Collecting problem information

The collected information can be sent to the developers to improve the
application. This might take a few minutes.
Reading package lists... Done
Building dependency tree
Reading state information... Done
.
=== Command terminated with exit status 1 (Sun May 29 02:41:07 2022) ===

Submit an answer


This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Bobby Iliev
Site Moderator
Site Moderator badge
July 21, 2022

Hello,

It looks like the ubuntu-minimal package was not available on the DigitalOcean mirrors, what you could do is quickly change them to the archive Ubuntu ones:

  • Take a backup of the /etc/apt/sources.list file:
cp /etc/apt/sources.list /etc/apt/sources.list-backup
  • Then change the repos:
sudo sed -i "s/mirrors\.digitalocean/archive.ubuntu/g" /etc/apt/sources.list

Finally, proceed with the upgrade as normal.

For more information I could suggest the following tutorial:

https://www.digitalocean.com/community/tutorials/how-to-upgrade-to-ubuntu-20-04-focal-fossa

Best,

Bobby

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up