0

After running these commands from the command line:

sudo apt-get update
sudo apt-get dist-upgrade
sudo do-release-upgrade -d 

I get the following error message:

W:Failed to fetch http://extras.ubuntu.com/ubuntu/dists/oneiric/main/source/Sources 404 Not Found,
E:Some index files failed to download. They have been ignored, or old ones used instead. 

How can I fix this bug?

Eric Carvalho
  • 55,453

2 Answers2

1

First, try to disable any software sources added manually, as this is probably the source of your error message.
See the following link for more details:
How can I fix a 404 Error when using a PPA or updating my package lists?

If this doesn't work, you can try the following commands to rebuild the cache (As suggested in the link below).

cd /var/lib/apt
sudo mv lists lists.old
sudo mkdir -p lists/partial
sudo apt-get update

Cannot upgrade from 12.04LTS to 14.04

Also, unless you want to try to install the latest devel. version, I would suggest you to drop the "-d" and simply run sudo do-release-upgrade.

yaron160
  • 648
0
  • Open Software & Updates, e.g. via the Dash.
  • Select the Other Software tab.
  • Uncheck the Independent item.