"Invalid package information" error when upgrading to Ubuntu 20.04
I am trying to upgrade from Ubuntu 19.10 to Ubuntu 20.04 but when I run the update, in the second stage this error pops:
1Invalid 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.
5 Answers
The actual solution is to run RELEASE_UPGRADER_ALLOW_THIRD_PARTY=1 do-release-upgrade instead of the normal upgrade command.
There's no need to manually mess with sources.list (which doesn't work anyway). Just prevent the OS from disabling third-party sources, because they include packages that the OS needs in order to complete the upgrade.
Source: a comment in
2I had the same problem. The solution was to add the official sources to the apt sources.list.
Make a copy of your source list:
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bakGet the official sources for Ubuntu 19.10 from sources.list › Wiki › ubuntuusers.de
deb eoan main restricted universe multiverse deb eoan-updates main restricted universe multiverse deb eoan-security main restricted universe multiverse deb eoan-backports main restricted universe multiverseOpen the list and add these lines at the end
sudo nano /etc/apt/sources.listUpdate sources and install all available updates for 19.10 and reboot your system:
sudo apt-get update sudo apt-get upgrade sudo apt-get dist-upgrade sudo apt-get autoremove sudo rebootEnsure you have the lts path at the update-manager:
$ cat /etc/update-manager/release-upgrades Prompt=ltsIf you upgrade over ssh: ensure your firewall allows ssh access over port 1022 (recovery-ssh-port). I didn't need to use port, it is just in case.
Run the Upgrade
sudo do-release-upgrade
I was having this problem on a DigitalOcean droplet. The fix from VivienM seems to have done the trick for me.
While do-release-update was paused at this message:
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]
After you see this message go to /etc/apt/sources.list and uncomment all the references to mirrors.digitalocean.com. Then press ENTER to resume the installation.
This sorted it for me. It seems the automatic source.list relying on mirrors.txt functionality did not work for some reason. What comes to the archive mirror list above, the URL is:
1I had a similar issue when upgrading 16.04 to 18.04.
It started upgrading when I added these lines to my sources.list:
deb xenial main universe multiverse
deb xenial-security main universe multiverseSee also
1More in general
"Zoraya ter Beek, age 29, just died by assisted suicide in the Netherlands. She was physically healthy, but psychologically depressed. It's an abomination that an entire society would actively facilitate, even encourage, someone ending their own life because they had no hope. Th…"