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?


11 Answers 11


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 http://packages.linuxmint.com 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
  • 1
    Definitely easier than what I suggested. Commented Aug 12, 2011 at 14:53
  • 1
    Bah, got no notification that you were writing -- beat me to it :P
    – slhck
    Commented Aug 12, 2011 at 15:01
  • 4
    What about GPG signature of that repository?
    – kravemir
    Commented Aug 13, 2011 at 14:10
  • 7
    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). Commented Apr 4, 2013 at 16:03
  • 2
    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.
    – orezvani
    Commented Aug 1, 2014 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 http://downloads.sourceforge.net/project/ubuntuzilla/mozilla/apt all main" | tee -a /etc/apt/sources.list > /dev/null
apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 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.

  • 1
    Works like charm! Commented May 18, 2013 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
    Commented Dec 15, 2014 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? Commented Sep 6, 2015 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
    Commented Sep 6, 2015 at 20:50
  • 2
    No longer works! Commented May 22, 2018 at 14:47

This post on the Debian User forums suggests the following:

  • Download latest Firefox from: http://www.mozilla.com . 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: libstdc++.so.6: 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.

  • i did all the steps but i have no permission of open firefox. any ideas?
    – jaorizabal
    Commented Nov 2, 2013 at 2:27
  • # ln -s /opt/firefox/firefox /usr/bin/firefox ln: failed to create symbolic link `/usr/bin/firefox': File exists
    – miguel
    Commented Apr 19, 2014 at 21:57
  • 1
    Turns out debian put a shell script at /usr/bin/firefox that executes iceweasel. Dick move.
    – miguel
    Commented Apr 19, 2014 at 22:01
  • @miguel This post is very old, not sure how valid it is still Commented Apr 20, 2014 at 16:04
  • 1
    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
    Commented Dec 15, 2014 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.


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


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

#Add GnuPG archive key for mozilla.debian.net repository to the list of trusted keys
wget -q -O - http://mozilla.debian.net/archive.asc | 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 http://mozilla.debian.net/ jessie-backports firefox-release
  • Beta version:

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

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


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

apt-get update && apt-get install firefox

Source: https://blog.sleeplessbeastie.eu/2016/03/21/how-to-use-recent-version-of-firefox-in-debian-jessie/

  • 2
    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
    Commented May 20, 2016 at 0:39
  • Cleanest way to get it right from the source. +1 for the key Commented Sep 30, 2016 at 13:03

This method is working for me on Debian 9 Stretch (64bit):

cd ~/Downloads

/usr/bin/curl -L -o firefox-latest-linux64.tar.bz2 "https://download.mozilla.org/?product=firefox-latest&os=linux64&lang=en-US" && sudo tar xvf firefox-latest-linux64.tar.bz2 -C /opt/ && rm firefox-latest-linux64.tar.bz2

sudo ln -sf /opt/firefox/firefox /usr/bin/firefox

You can set something like this in your root's crontab for @daily or @weekly

The download link was derived from this Mozilla readme.txt: https://download-installer.cdn.mozilla.net/pub/firefox/releases/latest/README.txt

  • Pretty straightforward Commented Mar 21, 2018 at 9:55
  • beautiful! works from the command line with no customization.
    – honi
    Commented Mar 27, 2018 at 0:35

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

deb http://packages.linuxmint.com debian import

Update system repositories:

$ apt-get update

You may get and ignore a following error:

W: GPG error: http://packages.linuxmint.com 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
  • 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
    Commented May 4, 2016 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.

  • 2
    sudo rm -R firefox* seems quite dangerous, what if you had other firefox* folders in /opt? Commented Apr 21, 2013 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 https://sourceforge.net/projects/ubuntuzilla/files/ all main

Save and exit Nano.

:~$ sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 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.

  • This looks like a duplicate of Manuel Garza's answer.
    – fixer1234
    Commented Feb 25, 2016 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
    Commented Feb 26, 2016 at 4:48

The following works for me:

$ sudo apt-get install firefox-esr

The -esr apparently means Extended Support Release.

You must log in to answer this question.

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