Super User is a question and answer site for computer enthusiasts and power users. 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

Debian 6 ("Squeeze") uses a rebranded version of Firefox called Iceweasel. It, however, lacks plugin support, and most of my favorites don't work.

So what is best way to install the "real" Firefox on Debian?

share|improve this question
Could you please care to elaborate on what iceweasel "misses" in your opinion, functionally? I am sure that Mike Hommey (the maintainer) would love to be informed of deficiencies of his packaging. Also, can you elaborate on "lack of plugin support"? I am a Debian user (and Debian Maintainer) and I am, right now, using icedtea for banking, the non-free flash plugin, Google Talk plugin for Hangouts, gecko-mediaplayer for videos and more. That's not exactly "lacks plugin support"... – rbrito Aug 20 '13 at 1:58
@rbrito I'd guess Miro is talking about addon support. Crunchbang 11, for instance, bundles Iceweasel 20 whereas newest version of Firefox is 26 (even newest Iceweasel in sid is only FF24). Since some of the newer addons require >= FF25, this question is probably about that missing functionality. – Eric Caron Jan 2 '14 at 15:49
@EricCaron Nope, it ain't about missing functionality. If I wanted to know how to add that functionality, I would have asked that. All I wanted to know is how to install real (not rebranded) Firefox and about that is whole question :) – kravemir Feb 10 '14 at 18:16
@JulieinAustin, can you tell precisely in which aspect Iceweasel is "behind" Firefox? If it is, I would also love to "switch" to Firefox, or better yet, let the maintainer know what may be the problem (which you should do, as the software isn't going to get fixed by itself). Any specific point? – rbrito May 13 '14 at 7:09
For f*cks sake, if he wants to install firefox, please just let him. You have absolutely no reason to quesion his reasons. Answer or don't answer. But these comments are for the most part ridiculous. – amenthes Aug 31 '15 at 22:58
up vote 122 down vote accepted

First, you need to remove the existing Iceweasel package (I think you can use aptitude as well):

apt-get remove iceweasel

Then, download the latest Linux build of Firefox directly from Mozilla. Extract the files, and navigate to that folder, and run it. If you want, make an icon on your desktop, and you can also make a link to the binary in /usr/bin/firefox to make it easier to launch. If you have root access, you can also install Firefox in /usr/local so all users will be able to run it.

After this, double-check that automatic updates are enabled, and you should be up and running!

If you want a package-based one, you can use Linux Mint's Debian package repo (as noted in the comments below, be aware that this may cause conflicts with automatic updates and other Debian packages in some cases). To do this, add the following line to your /etc/apt/sources.list file:

deb debian import

And add the GPG key for that repo. Then, just run:

apt-get update
apt-get install firefox

And you should be good to go!

The default install is German, to install in any other language, you can manually run:

apt-get install firefox-l10n-en-us 

(Edit[11/26/2014]: This package no longer appears in the linux mint repository.)
(Edit[11/26/2014]: apt-get install firefox-l10n-en-gb - This is the only working English package)

Packages names for other common langages include (official repository list - scroll half way down):

 firefox-l10n-en-gb       # British English
 firefox-l10n-es          # Spanish
 firefox-l10n-fr          # French
 firefox-l10n-de          # German
share|improve this answer
Definitely easier than what I suggested. – Simon Sheehan Aug 12 '11 at 14:53
Bah, got no notification that you were writing -- beat me to it :P – slhck Aug 12 '11 at 15:01
What about GPG signature of that repository? – kravemir Aug 13 '11 at 14:10
Ad GPG: downloading and manually (dpkg -i) installing linuxmint-keyring_*.deb from Mint's repo (before installing any package from actual repo) worked for me (Wheezy). – Alois Mahdal Apr 4 '13 at 16:03
I never recommend this solution. In fact adding such repository (although it is based on the same distro) can cause conflict in dependencies. This method works for installing and updating firefox, but it does make some conflicts with other packages. If you need the firefox, you just get the code and extract it in your /opt/ and create a global link to it. – emab Aug 1 '14 at 12:47

There's a sourcefourge project, basically dedicated to allowing you to get the latest version of Firefox when running Ubuntu, no matter which version you run (as long as dependencies are satisfied, obviously). Since Ubuntu is a Debian derivative, I thought I'd try it. I've got Firefox working on Debian Testing ("Wheezy") just fine.

Run this:

apt-get remove iceweasel
echo -e "\ndeb all main" | tee -a /etc/apt/sources.list > /dev/null
apt-key adv --recv-keys --keyserver C1289A29
apt-get update
apt-get install firefox-mozilla-build

This resolves the GPG key issue that is encountered when using the imported Linux Mint DE repository, and is significantly simpler than the other viable solution. Also, this gives you access to Thunderbird and SeaMonkey as well.

Note that this solution only gives you the English-US Release Channel version (no beta or Aurora builds). Other languages can be used, but additional steps are required.

See the project page at Ubuntuzilla for more information.

share|improve this answer
Works like charm! – Yordan Pavlov May 18 '13 at 22:10
+1 for the --keyserver stuff! Actually iceweasel not needed to be removed. I was afraid that the settings and saved passwords would be lost, so I kept iceweasel. – TrueY Dec 15 '14 at 21:25
+1 Thanks! @TrueY Iceweasel works even with FireFox installed? I had already uninstalled iceweasel and when I try to install it (in Kali 2.0,) I get an error that it clashes with firefox: diversion of /usr/bin/firefox to /usr/bin/firefox.real by iceweasel' clashes with diversion of /usr/bin/firefox to /usr/bin/firefox.ubuntu by firefox-mozilla-build` I wonder if I hadn't uninstalled it, if they would have played well together? – Garrett Fogerlie Sep 6 '15 at 0:54
@GarrettFogerlie I think they cannot run parallel. I had a Firefox running and I tried to start Iceweasel and I got a message box with the following text: "Iceweasel is already running, but is not responding. To open a new window, you must first close the existing Iceweasel process, or restart your system." – TrueY Sep 6 '15 at 20:50

This post on the Debian User forums suggests the following:

  • Download latest Firefox from: . If using wget, remember to escape any & with \ so it doesn't break the url down into a series of background process
  • Copy the downloaded file to /opt
  • Extract it using:

    $ tar -jxvf firefox-x.x.xx.tar.bz2
  • Change the permissions of the file:

    $ chown -R root:users /opt/firefox
    $ chmod 750 /opt/firefox

    Note that the user should be a group member of "users"

    $ usermod -a -G users username
  • Create a symbolic link

    $ ln -s /opt/firefox/firefox /usr/bin/firefox
  • Delete firefox-x.x.xx.tar.bz2 from /opt

To install new versions, you are supposed to

# rm -rf /opt/firefox*
# rm /usr/bin/firefox

To make a desktop icon, do this

$ touch /usr/share/applications/firefox.desktop

Edit this using your favourite text editor:

$ nano /usr/share/applications/firefox.desktop

Contents of firefox.desktop:

[Desktop Entry]
Name=Mozilla Firefox
Comment=Browse the World Wide Web
Exec=/usr/bin/firefox %U

You can remove iceweasel with

$ apt-get remove iceweasel

If you encounter this error:

./firefox: error while loading shared libraries: cannot open shared object file: No such file or directory

You should probably install

apt-get install ia32-libs ia32-libs-gtk

Chances are that you are trying to install the 32 bit version of firefox in a 64 bit Debian environment.

share|improve this answer
i did all the steps but i have no permission of open firefox. any ideas? – jaorizabal Nov 2 '13 at 2:27
# ln -s /opt/firefox/firefox /usr/bin/firefox ln: failed to create symbolic link `/usr/bin/firefox': File exists – miguel Apr 19 '14 at 21:57
Turns out debian put a shell script at /usr/bin/firefox that executes iceweasel. Dick move. – miguel Apr 19 '14 at 22:01
@miguel This post is very old, not sure how valid it is still – Simon Sheehan Apr 20 '14 at 16:04
Two updates! First... ln -sf /opt/firefox/firefox /usr/bin/firefox # force the symlink ... The other is the icon path on the firefox.desktop is now in another location: ls /opt/firefox/browser/icons/mozicon128.png – mimoralea Dec 15 '14 at 13:04

Iceweasel Aurora is very close to Firefox latest stable release.

I installed Iceweasel Aurora using this official debian/mozilla tutorial.

I was able to import my Firefox profile from another installation without errors, ie, all addons, bookmarks, history entries and user settings are working perfectly.

FYI, some of the plugins I use are Firebug, Awesome screenshot and Searchstatus, all worked fine and were not disabled by Iceweasel.

You may also want to use the Firefox logo for launchers.

This is probably a better option as it allows an easier update process.

share|improve this answer

First edit your /etc/apt/sources.list file to include:

deb debian import

Update system repositories:

$ apt-get update

You may get and ignore a following error:

W: GPG error: debian Release:
The following signatures couldn't be verified because the public
key is not available: NO_PUBKEY 3EE67F3D0FF405B2

Once system's repositories are updated simply use apt-get command to install Firefox Browser on your Debian Jessie 8 Linux:

$ apt-get install firefox

Reading package lists... Done                                                                                                                                                                             
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 40.8 MB of archives.
After this operation, 89.9 MB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
Install these packages without verification? [y/N] y

Once the installation is finished you can start Firefox either from command line:

$ firefox
share|improve this answer
This is no longer necessary. Iceweasel has been discontinued and Firefox is now what is provided by Debian. Iceweasel ESR was associated with Debian Stable, and that will disappear when the old ESR version is deprecated shortly. In the meantime, Firefox is available in Jessie via backport. – fixer1234 May 4 at 17:25

I'm running an AMD Athlon II X2 system. Firefox runs perfectly on Wheezy i686 & the 3.2.0-4-686-pae kernel. The stock version of IceWeasel just seemed gutted, crippled and inferior compared to Firefox. Installation is a snap. I download the newest Firefox to /home/myusername/Linux/Software/Mozilla/current/, and then run

cd /opt
sudo rm -R firefox*
sudo cp /home/myusername/Linux/Software/Mozilla/current/firefox* /opt
sudo tar jxvf firefox*

The second line removes the previous version completely before the upgrade.

share|improve this answer
sudo rm -R firefox* seems quite dangerous, what if you had other firefox* folders in /opt? – Alois Mahdal Apr 21 '13 at 19:04

Below is the most straight forward method I've found for replacing Iceweasel with Firefox in Debian.

Wiki >>> Ubuntuzilla: Mozilla Software Installer

The terminal commands are as follows:

:~$ sudo apt remove iceweasel

:~$ sudo nano /etc/apt/sources.list

Add the following entry to the source.list file:

deb all main

Save and exit Nano.

:~$ sudo apt-key adv --recv-keys --keyserver C1289A29

:~$ sudo apt update

:~$ sudo apt install firefox-mozilla-build

I hope this will be of help to anyone else wanting to replace Iceweasel with the current version of Firefox. As far as I have seen, the source is very well documented and maintained.

share|improve this answer
This looks like a duplicate of Manuel Garza's answer. – fixer1234 Feb 25 at 21:27
You're right. I found Ubuntuzilla as I was seeking an answer myself. I didn't see Manuel Garza's answer above, though I wish I had, as this would have saved me some time. Iceweasle isn't playing html5 video and this is how I fixed it. I love Debian, so actually switching to Ubuntu isn't an option. Thanks for the heads up as to being a duplicate. – Rick Lell Feb 26 at 4:48

For the Googlers... this works for Debian Jessie:

#Add GnuPG archive key for repository to the list of trusted keys
wget -q -O - | sudo apt-key add -

Depending on the version you want (pick one),

  • Release version:

    cat << EOF | sudo tee /etc/apt/sources.list.d/mozilla-firefox.list
    deb jessie-backports firefox-release
  • Beta version:

    cat << EOF | sudo tee /etc/apt/sources.list.d/mozilla-firefox.list
    deb jessie-backports firefox-beta
  • Aurora version:

    cat << EOF | sudo tee /etc/apt/sources.list.d/mozilla-firefox.list
    deb jessie-backports firefox-aurora


#Assign higher priority to recently added repository.    
cat << EOF | sudo tee /etc/apt/preferences.d/mozilla-firefox
Package: *
Pin: origin
Pin-Priority: 501

apt-get update && apt-get install firefox


share|improve this answer
Just FYI, Iceweasel wasn't renamed to Firefox, as premised in the link. Iceweasel was a sanitized, rebranded version of Firefox. The Iceweasel project was discontinued and now actual Firefox is what is distributed with Debian. If Jessie still has Iceweasel ESR, that will be gone as soon as the ESR version is deprecated. Debian stable (currently Jessie), will have Firefox ESR. This has a major release roughly once/year, with security updates but not feature changes in between. Debian Testing should already have standard, current-release Firefox – fixer1234 May 20 at 0:39

No need for this any more. Debian stable started shipping Firefox instead of iceweasel today.

Debian will ship the Extended Support Release (ESR) of Firefox, which is roughly updated every 9 months. If you always need the latest version the others answers may stil be an option for you.

For more infomarmation see the debian bug report

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .