How to upgrade Ubuntu 19.10 to 20.04 -- the essential package 'ubuntu-minimal' could not be located.
I have Ubuntu 19.10 running. I'd like to upgrade to 20.04 because it will be unsupported in a few months (and I meant to install an LTS release to being with, but wasn't paying attention). The command I'm using is "do-release-upgrade -d" though I've tried it without the -d as well.
I am getting the error:
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.
I've tried the upgrade with Prompt=LTS and Prompt=Normal in /etc/update-manager/release-upgrades
4 Replies
@robo45h could you provide the contents of /etc/apt/sources.list
? Here are mine on a new Ubuntu 19.10 deployment – I was just able to upgrade to 20.04 successfully by doing a full upgrade (apt update && apt dist-upgrade
, then rebooting), then doing do-release-upgrade -d
.
# cat /etc/apt/sources.list
#
# deb cdrom:[Ubuntu-Server 19.10 _Eoan Ermine_ - Release amd64 (20191017)]/ eoan main restricted
#deb cdrom:[Ubuntu-Server 19.10 _Eoan Ermine_ - Release amd64 (20191017)]/ eoan main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://mirrors.linode.com/ubuntu/ eoan main restricted
# deb-src http://mirrors.linode.com/ubuntu/ eoan main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://mirrors.linode.com/ubuntu/ eoan-updates main restricted
# deb-src http://mirrors.linode.com/ubuntu/ eoan-updates main restricted
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://mirrors.linode.com/ubuntu/ eoan universe
# deb-src http://mirrors.linode.com/ubuntu/ eoan universe
deb http://mirrors.linode.com/ubuntu/ eoan-updates universe
# deb-src http://mirrors.linode.com/ubuntu/ eoan-updates universe
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://mirrors.linode.com/ubuntu/ eoan multiverse
# deb-src http://mirrors.linode.com/ubuntu/ eoan multiverse
deb http://mirrors.linode.com/ubuntu/ eoan-updates multiverse
# deb-src http://mirrors.linode.com/ubuntu/ eoan-updates multiverse
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://mirrors.linode.com/ubuntu/ eoan-backports main restricted universe multiverse
# deb-src http://mirrors.linode.com/ubuntu/ eoan-backports main restricted universe multiverse
## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu eoan partner
# deb-src http://archive.canonical.com/ubuntu eoan partner
deb http://security.ubuntu.com/ubuntu eoan-security main restricted
# deb-src http://security.ubuntu.com/ubuntu eoan-security main restricted
deb http://security.ubuntu.com/ubuntu eoan-security universe
# deb-src http://security.ubuntu.com/ubuntu eoan-security universe
deb http://security.ubuntu.com/ubuntu eoan-security multiverse
# deb-src http://security.ubuntu.com/ubuntu eoan-security multiverse
# This system was installed using small removable media
# (e.g. netinst, live or single CD). The matching "deb cdrom"
# entries were disabled at the end of the installation process.
# For information about how to configure apt package sources,
# see the sources.list(5) manual.
[@jackley] (/community/user/jackley) Here is my sources.list; nearly identical:
#
# deb cdrom:[Ubuntu-Server 19.10 _Eoan Ermine_ - Release amd64 (20191017)]/ eoan main restricted
# deb cdrom:[Ubuntu-Server 19.10 _Eoan Ermine_ - Release amd64 (20191017)]/ eoan main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://mirrors.linode.com/ubuntu/ eoan main restricted
# deb-src http://mirrors.linode.com/ubuntu/ eoan main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://mirrors.linode.com/ubuntu/ eoan-updates main restricted
# deb-src http://mirrors.linode.com/ubuntu/ eoan-updates main restricted
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://mirrors.linode.com/ubuntu/ eoan universe
# deb-src http://mirrors.linode.com/ubuntu/ eoan universe
deb http://mirrors.linode.com/ubuntu/ eoan-updates universe
# deb-src http://mirrors.linode.com/ubuntu/ eoan-updates universe
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://mirrors.linode.com/ubuntu/ eoan multiverse
# deb-src http://mirrors.linode.com/ubuntu/ eoan multiverse
deb http://mirrors.linode.com/ubuntu/ eoan-updates multiverse
# deb-src http://mirrors.linode.com/ubuntu/ eoan-updates multiverse
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://mirrors.linode.com/ubuntu/ eoan-backports main restricted universe multiverse
# deb-src http://mirrors.linode.com/ubuntu/ eoan-backports main restricted universe multiverse
## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu eoan partner
# deb-src http://archive.canonical.com/ubuntu eoan partner
deb http://security.ubuntu.com/ubuntu eoan-security main restricted
# deb-src http://security.ubuntu.com/ubuntu eoan-security main restricted
deb http://security.ubuntu.com/ubuntu eoan-security universe
# deb-src http://security.ubuntu.com/ubuntu eoan-security universe
deb http://security.ubuntu.com/ubuntu eoan-security multiverse
# deb-src http://security.ubuntu.com/ubuntu eoan-security multiverse
# This system was installed using small removable media
# (e.g. netinst, live or single CD). The matching "deb cdrom"
# entries were disabled at the end of the installation process.
# For information about how to configure apt package sources,
# see the sources.list(5) manual.
deb http://archive.ubuntu.com/ubuntu eoan universe
For anyone else having this problem, another community post about upgrading an earlier version of Ubuntu led me to this solution: I added the following lines to the end of my sources.list
deb http://archive.ubuntu.com/ubuntu/ eoan main universe multiverse
deb http://archive.ubuntu.com/ubuntu/ eoan-security main universe multiverse
Thanks robo45h, that worked for me. The "main" on the first of your two lines was not needed and generated warnings, but otherwise all good.
Question re Linode Dashboard: after the upgrade I am indeed running 20.04, but the dashboard thinks I'm at 19.10, per the below
linode<####>
Ubuntu 19.10, Linode 4GB: 2 CPU, 80GB Storage, 4GB RAM
- Does this matter
- How do I fix it?