Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

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

I've run into a frustrating problem when attempting to upgrade Firefox. I was running version 16 attempting to upgrade to version 18 through Synaptic. I received the following error:

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

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

My problem is very similar to: Firefox update fails with "not found" error so I followed the advice there. No success.

I tried changing the server many times, but this brought up another error. I then tried removing the Firefox package (not a complete removal to preserve settings) and figured I could switch servers and try re-installing the package from scratch. I still receive the 404 Error on US servers, and when I switch to Main servers, I get:

E: I wasn't able to locate a file for the firefox package. This might mean you need to manually fix this package.

Using apt-get it says:

Package firefox is not available, but is referred to by another
package. This may mean that the package is missing, has been
obsoleted, or is only available from another source

E: Package 'firefox' has no installation candidate

I now have no Firefox at all and can't reinstall the package through Synaptic, Ubuntu Software Center, nor apt-get.

How can I get Firefox reinstalled?

share|improve this question
Did you do a sudo apt-get update after changing the mirror? – ignite Feb 22 '13 at 20:57
Yes. apt-get still reports the same error. – TheKarateKid Feb 22 '13 at 21:03
Try sudo apt-get -f update and tell the error you receive. – ignite Feb 22 '13 at 21:09
This fixed the problem! After attempting to install the package again after running that command, it successfully downloaded/installed the package. Thank you so much! – TheKarateKid Feb 22 '13 at 21:57
I have posted it as an answer, for further reference. – ignite Feb 22 '13 at 23:15
up vote 2 down vote accepted

Run the command sudo apt-get -f updateand then sudo apt-get install firefox.
Here is a description of -f flag from man page of apt-get.

-f, --fix-broken
    Fix; attempt to correct a system with broken dependencies in place.
    This option, when used with install/remove, can omit any packages
    to permit APT to deduce a likely solution.
share|improve this answer

protected by Community Feb 23 at 14:34

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

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