jonathan
By:
jonathan

Can't seem to update Ubuntu 14.04.1 (Trusty) to 14.10 (Utopic) - source network errors.

October 31, 2014 7.4k views

Just trying to upgrade my Ubuntu as I've done many times before, but I'm coming up with a network error here at DigitalOcean. Here's what's happening just after the normal warning about the newly created port...

To continue please press [ENTER]

Err http://mirrors.digitalocean.com trusty/main Translation-en_US
Err http://mirrors.digitalocean.com trusty/multiverse Translation-en_US
Err http://mirrors.digitalocean.com trusty/restricted Translation-en_US
Err http://mirrors.digitalocean.com trusty/universe Translation-en_US

Ign http://mirrors.digitalocean.com trusty/main Translation-en_US
Ign http://mirrors.digitalocean.com trusty/multiverse Translation-en_US
Ign http://mirrors.digitalocean.com trusty/restricted Translation-en_US
Ign http://mirrors.digitalocean.com trusty/universe Translation-en_US
Fetched 0 B in 6s (4,153 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
Building data structures... Done

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 'trusty' to 'utopic' entries.
If you select 'No' the upgrade will cancel.

I enter "Yes" and it does pretty much the same thing again, and then...


Error during update

A problem occurred during the update. This is usually some sort of
network problem, please check your network connection and retry.

W:Failed to fetch
http://ppa.launchpad.net/jon-severinsson/ffmpeg/ubuntu/dists/utopic/main/binary-i386/Packages
404 Not Found
, W:Failed to fetch
http://linux.dropbox.com/ubuntu/dists/utopic/main/binary-i386/Packages
404 Not Found
, E:Some index files failed to download. They have been ignored, or
old ones used instead.

Restoring original system state

Aborting
Reading package lists... Done
Building dependency tree
Reading state information... Done
Building data structures... Done
=== Command detached from window (Fri Oct 31 06:14:37 2014) ===
Press x to destroy or r to resurrect window  i Oct 31 06:14:47 2014) ===

Those last couple of packages shouldn't matter; missing third party stuff has never blocked and install before. I'm more interested in the missing DigitalOcean mirror stuff.

Yes, I've rebooted, and yes I've checked that the droplet has network connectivity (obviously, as I wouldn't be connected to it!).

Any ideas?

3 Answers

The "No valid mirror found" error can be safely ignored. do-release-upgrade only looks at list of "official" Ubuntu mirrors, which doesn't include DigitalOcean's. Though the mirrors do include 14.10:

http://mirrors.digitalocean.com/ubuntu/dists/utopic/

Have you tried commenting out or disabling the third-party repositories that are erroring? I just successfully did a 14.04 to 14.10 upgrade on a new droplet.

  • Thanks for your reply. Yes, my test update from a fresh 14.04 went fine, too.

    The content of my sources.list is at https://gist.githubusercontent.com/talkingnews/fbeb6f2e04b71bc3e74f/raw/3cd96f1d86a87338064f2a9161e5a02c72da98b8/sources.list but nothing stands out as odd compared with the default one on an unfettered virgin machine ... or does it?

    And what about my sources.list.d - does all look well here? Is the best way to disable them just to move them out into a temp directory? But, again, I've done lots of upgrades before and these other repos have never been a problem before.

    -rw-r--r-- 1 root root   48 Oct 31 18:19 dropbox.list
    -rw-r--r-- 1 root root   48 Oct 31 18:18 dropbox.list.distUpgrade
    -rw-r--r-- 1 root root   48 Oct  8 19:09 dropbox.list.save
    -rw-r--r-- 1 root root  154 Oct 31 18:19 jon-hedgerows-get-iplayer-trusty.list
    -rw-r--r-- 1 root root  154 Oct 31 18:18 jon-hedgerows-get-iplayer-trusty.list.distUpgrade
    -rw-r--r-- 1 root root  154 Oct  8 19:09 jon-hedgerows-get-iplayer-trusty.list.save
    -rw-r--r-- 1 root root  148 Oct 31 18:19 jon-severinsson-ffmpeg-trusty.list
    -rw-r--r-- 1 root root  148 Oct 31 18:18 jon-severinsson-ffmpeg-trusty.list.distUpgrade
    -rw-r--r-- 1 root root  148 Oct  8 19:09 jon-severinsson-ffmpeg-trusty.list.save
    -rw-r--r-- 1 root root  136 Oct 31 18:19 nginx-development-trusty.list
    -rw-r--r-- 1 root root  136 Oct 31 18:18 nginx-development-trusty.list.distUpgrade
    -rw-r--r-- 1 root root  136 Oct  8 19:09 nginx-development-trusty.list.save
    -rw-r--r-- 1 root root  100 Oct 31 18:19 nodesource.list
    -rw-r--r-- 1 root root  100 Oct 31 18:18 nodesource.list.distUpgrade
    -rw-r--r-- 1 root root  100 Oct  8 19:09 nodesource.list.save
    -rw-r--r-- 1 root root  134 Oct 31 18:19 ondrej-php5-5_6-trusty.list
    -rw-r--r-- 1 root root  134 Oct 31 18:18 ondrej-php5-5_6-trusty.list.distUpgrade
    -rw-r--r-- 1 root root  142 Oct 31 18:19 tuxpoldo-phpmyadmin-trusty.list
    -rw-r--r-- 1 root root  142 Oct 31 18:18 tuxpoldo-phpmyadmin-trusty.list.distUpgrade
    -rw-r--r-- 1 root root  142 Oct  8 19:09 tuxpoldo-phpmyadmin-trusty.list.save
    -rw-r--r-- 1 root root  146 Oct 31 18:19 videolan-stable-daily-trusty.list
    -rw-r--r-- 1 root root  146 Oct 31 18:18 videolan-stable-daily-trusty.list.distUpgrade
    -rw-r--r-- 1 root root  146 Oct  8 19:09 videolan-stable-daily-trusty.list.save
    
    

    Hmmm...

Well, with massive thanks to Brad on tech support, it's now fixed and working.

The solution was to comment out the ffmpeg and dropbox repos.

I'm kicking myself for not trying that about 6 hours ago, but I'd read so many things suggesting that "bad" third party repos wouldn't affect upgrade, and also all the lines with

"Err http://mirrors.digitalocean.com" 

and the part about "no valid mirror" got me off on a totally wrong direction, especially as I've been using those repos before on previous years' upgrades and had no trouble.

There you go - day wasted, lessons learnt!

I've got other weirdness now.

Plenty of W: Failed to fetch mirror://mirrors.ubuntu.com/mirrors.txt/dists/utopic/main/binary-i386/Packages 403 Forbidden [Mirror: http://ubuntu.serverspace.co.uk/ubuntu/]

Any ideas?

Have another answer? Share your knowledge.