Ubuntu Upgrade – Failed to Fetch with Source Network Errors

I tried upgrading from Ubuntu 14.04 to 16.04 several times. The following steps would always end with errors – Failed to Fetch  &  Source Network Errors.

  1. sudo apt-get update
  2. sudo apt-get upgrade
  3. sudo do-release-upgrade

The errors were trying to find update repositories for FFMPEG and something else, they were installed by PPA.  When I checked sources.list in /etc/apt it appeared totally standard with no reference to anything related to errors. When searching for the errors the common solution as to remove the special repositories for PPAs from your sources.list file. But nothing was there! In uninstalled FFMPEG, updated and tried again. Still no dice.

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/kirillshkrogalev/ffmpeg-next/ubuntu/dists/xenial/main/binary-amd64/Packages
404 Not Found
, W:Failed to fetch
http://ppa.launchpad.net/kirillshkrogalev/ffmpeg-next/ubuntu/dists/xenial/main/binary-i386/Packages
404 Not Found
, W:Failed to fetch
http://ppa.launchpad.net/mc3man/trusty-media/ubuntu/dists/xenial/main/binary-amd64/Packages
404 Not Found
, W:Failed to fetch
http://ppa.launchpad.net/mc3man/trusty-media/ubuntu/dists/xenial/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

So I started poking around and found /etc/apt/sources.list.d and found .list files with the exact names of the offending repository errors. From within /etc/apt/sources.list.d

Solution: I commented out the active repositories in ‘/etc/apt/sources.list.d/kirillshkrogalev-ffmpeg-next-trusty.list’ and ‘/etc/apt/sources.list.d/mc3man-trusty-media-trusty.list’. Boom! Re-ran ‘do-release-upgrade’ and we’re rolling now! The repository references were there just not in the source.list file.

Failed To Fetch

 

print

Leave a Reply

Your email address will not be published. Required fields are marked *