I have Chromium as the default web browser. A certain site only allows the use of either Internet Explorer and Firefox web browsers.
When I open up the dashboard and type firefox in the search, I can't find it.
I have Chromium as the default web browser. A certain site only allows the use of either Internet Explorer and Firefox web browsers.
When I open up the dashboard and type firefox in the search, I can't find it.
If you search for Firefox and don't find it, that suggests it's not installed.
To be sure, open a Terminal window (Ctrl+Alt+T) and run:
which firefox
dpkg -l | grep firefox
If you get nothing, or all the entries given by the second command start with something other than ii
(like rc
), then Firefox is not installed.
You can install firefox from the Software Center or by running:
sudo apt-get update && sudo apt-get install firefox
If you get something, try running Firefox from the command-line:
firefox
If that works, then you've solved the main problem (and you can solve the problem of why you cannot run Firefox from the dash at your leisure).
If that does not work, then the way it doesn't work will provide valuable diagnostic information about the problem. In that case, please edit your question to include this information (or, for people other than the author of this question: you can search for your problem and post a new question if you don't find a solution).
I've listed some examples below of how it might not be working, along with some solutions.
###If the Command-Line Shell Cannot Find Firefox Either
You might see an error like this when you try to run firefox
:
firefox: command not found
The program 'firefox' is currently not installed. ...
The fix is to Install the firefox
package.
Or if it's installed, reinstall it with sudo apt-get --reinstall install firefox
.
(See below for another, more effective of reinstallation, which really does more than just reinstalling.)
###Crashing
You might get an error that says Segmentation fault
, core dumped
, assert
, assertion
, or any combination of those.
That means Firefox has crashed. So you should consider reporting the bug. Read this carefully. (This question is a good resource too.) This is a crash, so you'll want to attach a stack trace: here's how that works, here's some privacy considerations (particularly relevant here since information from your Firefox profile might end up attached). Configure Apport to submit crash data for attachment to your bug report. Produce the crash and report the bug. But also try the fix below, as whether or not it works should be noted in your bug report--also, because that can help you use Firefox!
###General Failure to Run
If there is no error, Firefox just hangs without a message, or quits immediately (or crashed as above), there are two fixes/workarounds:
Try running Firefox as another user (or as Guest). Any user-specific problem won't occur.
Your Firefox profile is stored in a folder called .mozilla
in your home folder (as suggested in vasa1's comment). Rename it to .mozilla.old
(Ctrl+H shows hidden items like this in Nautilus).
If you prefer, here's the command-line way:
mv ~/.mozilla ~/.mozilla.old
Whichever way you use, make sure Firefox isn't running at all when you do it. (You can run ps | grep -v grep | grep firefox
if you like, to check.)
Then run Firefox, and it should generate a new profile. If the problem was related to or triggered by data in your old profile, renaming the profile should fix it.
Running Firefox with a new profile will fix most (though not absolutely all) user-specific problems. (It won't fix all of them because some can be in programs other than Firefox.)
###Reinstalling the Package and Purging Systemwide Configuration Files
Sometimes when a program is not working, reinstalling the package that provides it with fresh systemwide configuration files (as sean_m suggested) can help. This is really doing things:
To reinstall Firefox and with new configuration files (as well as new copies of other files, like the Firefox executable), run:
sudo apt-get update && sudo apt-get --purge --reinstall install firefox
This (and any other "purge" method) only replaces systemwide configuration files--files that affect the configuration for all users. This does not affect individual users' profiles or other user-specific configuration.
See man apt-get
and the Ubuntu wiki for more information about what the --purge
flag (and the purge
action) does.
You may have a broken or incomplete Firefox install. This can happen from a botched update or other apt-get funny business. To see what's going on with Firefox you may want to fire up the terminal (Ctrl + Alt + T) and simply type 'firefox' . This will attempt to launch Firefox and provided that it is installed and somewhere in your system $PATH variable, it should either launch or give you some information about what's broken.
If you're not wanting to venture into the world of the terminal too much, just fire up the Ubuntu Software Center and attempt to search for Firefox then uninstall/re-install. There may be some corrupt configuration that isn't removed from a simple uninstall (apt-get remove firefox), and for this you will need to use the terminal and execute 'sudo apt-get purge firefox'. The 'purge' option for apt-get removes the application and all associated configuration files so that a re-install is a truly clean operation.
If that still doesn't work, there are several browsers out there which are basically Firefox without the Mozilla branding, there are guides for installing them on Ubuntu. IceWeasel is probably your best bet and is actively maintained by the Debian project. There are many guides for installing under Ubuntu and a simple Google search for "Ubuntu IceWeasel" will bring up several very good ones. I will attempt to link them when I'm at home and not posting from an iPhone.
purge
doesn't touch~/.mozilla
where problems caused by a corrupt user profile may lurk. I suggest you modify your answer to consider ~/.mozilla and its subfolders. – Jan 22 '13 at 03:49purge
in the context of settings in~/home
that should do it and obviate the need of an additional answer just to cover that. – Jan 22 '13 at 05:32