Errors when upgrading from 16.04 to 18.04

I'm following the guide for upgrading to 18.04 and I've ran into some issues with do-release-upgrade.

When I issue the command, it fails with following message:

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.

Does anyone know what this means exactly? I can't remember modifying the sources.list file, so I'm kinda lost on what to do. The upgrade just fails.

5 Replies

I'm also having the same issue.

I added these lines to the end of my sources.list file and was able to get the update to run successfully.

deb http://archive.ubuntu.com/ubuntu/ xenial main universe multiverse
deb http://archive.ubuntu.com/ubuntu/ xenial-security main universe multiverse

jefftml's solution has worked for me as well…:)

Had the same error. Followed jefftml's commands and it worked. The file is at /etc/apt/

For what it's worth, I was upgrading from 17.10 (not 16.04) and added these lines to /etc/apt/sources.list in order to get the upgrade to work:

deb http://archive.ubuntu.com/ubuntu/ artful main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ artful-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ artful-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu artful-security main restricted universe multiverse
deb http://archive.canonical.com/ubuntu artful partner

I realize some of these may be duplicated in the list already, but it was not a problem.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct