"Mirror not found" when trying to upgrade OS.

I am trying to upgrade to Ubuntu 18.04

For this, I used the web console to log in as root, and do:

$ do-release-update

But I am greeted with this warning:

Updating repository information

No valid mirror found 

While scanning your repository information no mirror entry for the 
upgrade was found. This can happen if you run an internal mirror or 
if the mirror information is out of date. 

Do you want to rewrite your 'sources.list' file anyway? If you choose 
'Yes' here it will update all 'xenial' to 'bionic' entries. 
If you select 'No' the upgrade will cancel.

Is it safe to continue? Or should I do another procedure to upgrade the OS? I don't want to reinstall, and keep my user directories.

5 Replies

I have noticed this peculiarity with Linode mirrors previously, and I’m sure my upgrade went through when I answered yes to that question.

YMMV though.

I have the same question. How did this work out for you? Just submitted a support request regarding same..

Please Note:

Performing a release upgrades is rarely recommended in situations when you want to be able to quickly return a system to a known state if something goes wrong.

It is almost always preferable perform a fresh installation of the new distribution than to upgrade to an old release to a new one.

When you create a Linode using a Linode provided distribution it will often start out its life with its repository source information set to use Linode's repository mirrors as default. This is done to allow updates to be performed quickly from local sources.

When performing a release upgrade, your Linode needs to update the sources.list to be able obtain the new packages. This is fine if you are sure that performing a 'do-release-update' is what you really want to do.

@hphillips --

I always do a snapshot before doing this. If something screws up, I can restore from the snapshot (possibly minus some mail delivered in the meantime).

-- sw

I have ran do-release-upgrade on quite a few Ubuntu installs, and have not come across anything major.

It's much quicker than a fresh install, and a lot of tweaking afterwards.

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