Install Firefox on Linux

Revision Information
  • Revision id: 94986
  • Created:
  • Creator: LVSkiProf
  • Comment: Added specific notes on how to get Firefox running on ArchLinux
  • Reviewed: Yes
  • Reviewed:
  • Reviewed by: jsavage
  • Is approved? No
  • Is current revision? No
  • Ready for localization: No
Revision Source
Revision Content

Getting Firefox installed on your computer is your first step to using it. This article will show you how to install Firefox on Linux. For other operating systems, see How to download and install Firefox on Windows and How to download and install Firefox on Mac.

Many Linux distributions include Firefox by default, and most have a package management system that lets you easily install Firefox. Generally, you should install from package management. Package management will:

  • Ensure that you have all the required libraries
  • Install Firefox in a way that works best with your distribution
  • Create shortcuts to launch Firefox
  • Make Firefox available to all users of your computer
  • Make removing Firefox work the same as removing any other application

Package management also has some downsides:

  • It may not give you the latest version of Firefox
  • It may give you a version without Firefox branding

Installing from a package manager

To install Firefox using the package manager, please refer to the documentation of the Linux distribution you're using.

Installing outside of a package manager

Complete instructions for installing Firefox outside of package management may be available at your distribution's support website. For example:

  • Before you install Firefox, make sure that your computer has the required libraries installed. Missing libraries will cause Firefox to be inoperable.
  • The installation file provided by Mozilla in .tar.bz2 format does not contain sources but pre-compiled binary files, therefore you can simply unpack and run them. There is no need to compile the program from source.
  • The following instructions will install Firefox into your home directory, and only the current user will be able to run it.
  1. Download Firefox from the Firefox download page to your home directory.
  2. Open a Terminal and go to your home directory: cd ~
  3. Extract the contents of the downloaded file: tar xjf firefox-*.tar.bz2
  4. Close Firefox if it's open.
  5. To start Firefox, run the firefox script in the firefox folder: ~/firefox/firefox

Firefox should now start. You can then create an icon on your desktop to run this command.

libstdc++5 error

As noted above, you need to install the required libraries for Firefox to work. Many distributions don't include libstdc++5 by default.

"firefox not installed" message or wrong version of Firefox starts

If Firefox is installed following the instructions given above, it must be started (in a Terminal or in a launcher on the Desktop, for example) using the command: ~/firefox/firefox

If you try to start Firefox in a Terminal with the command: firefox, it will either start the package-manager-installed version of Firefox or will tell you the program is not installed.

Installing on ArchLinux (4.0.1 version)

With Gnome packages installed most library requirements are satisfied. See what is reported as missing when you run ~/firefox/firefox.

In my case I got the following error message: XPCOMGlueLoad error for file /root/Downloads/firefox/ cannot open shared object file: No such file or directory Couldn't load XPCOM. The library can be added by using the following command: pacman -S libgtksourceviewmm2

Note that you will see some errors now when you load firefox, so it is not 100% compatible, but it does appear to basically work.

I saw the following errors (which can hopefully be cleaned up in a future release). You can see that Sync is enabled in some of the messages: (process:2856): GLib-CRITICAL **: g_slice_set_config: assertion 'sys_page_size == 0' failed

(firefox:2856): Gtk-CRITICAL **: IA__gtk_clipboard_set_with_data: assertion 'targets != NULL' failed

1432091038572 Sync.Engine.Addons ERROR null

1432091310853 addons.update-checker WARN Update manifest for {972ce4c6-7e08-4474-a285-3208198ce6fd} did not contain an updates property

WARNING: content window passed to PrivateBrowsingUtils.isWindowPrivate. Use isContentWindowPrivate instead (but only for frame scripts).

pbu_isWindowPrivate@resource://gre/modules/PrivateBrowsingUtils.jsm:25:14 nsBrowserAccess.prototype.openURI@chrome://browser/content/browser.js:15192:21