Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When I try to run apt-get update I get the following error messages: I am using:

Distributor ID: Ubuntu
Description:    Ubuntu 11.04
Release:    11.04
Codename:   natty

W: Failed to fetch  404  Not Found [IP: 80]

E: Some index files failed to download. They have been ignored, or old ones used

I have tried few solutions:

  1. Like choose the best server from Ubuntu Software section : It was never able to select the best server as it gave error (Check your internet connection.) My internet is working fine and I am able to browse.

  2. sudo sed -i -e 's/\|' /etc/apt/sources.list

  3. sudo dpkg --configure -a

Nothing worked. I am not able to post the full error message as its not letting me post more than two links.

share|improve this question

closed as off-topic by Jorge Castro, Olli, mikewhatever, minerz029, falconer Feb 12 '14 at 21:41

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the question.

You 120% sure that after the second solution it didn't work apt-get update? Could you do cat /etc/apt/sources.list edit your question and add the results? – Braiam Oct 2 '13 at 20:59
I got the following error after second solution. W: Failed to fetch 404 Not Found E: Some index files failed to download. They have been ignored, or old ones used instead. But I am able to proceed further. Thanks for help – Amit Oct 2 '13 at 21:39
up vote 14 down vote accepted

Natty no longer supported or gets updates. You need to change from the to the server, which is the intention of the sed command you mentioned (I have not had chance to confirm if that works or not). Open and replace all entries in the following file:

sudo gedit /etc/apt/sources.list

Then after run the update and upgrade commands as you would normally.

share|improve this answer
Thanks, It worked. – Amit Oct 2 '13 at 21:39
Doesn't work for me. keep getting on old-releases WARNING:root:file 'oneiric.tar.gz.gpg' missing Failed to fetch Fetching the upgrade failed. There may be a network problem. Tried various mirrors, none wants to play ball upgrading natty to oneiric. – Marc May 22 '14 at 6:23
As of 2015 this doesn't work anymore. Sucks that ubuntu is such a clusterfuck of complexity that it can't sustain slightly older releases. Gonna try to convince my admin to switch to OpenBSD. – Mark Boulder Jun 5 '15 at 10:25

Not the answer you're looking for? Browse other questions tagged or ask your own question.