How to install Firefox in Kali Linux

Introduction

This is a small and quick guide on How to install Firefox in Kali Linux. firefox-logo

Mozilla Firefox is a free and open-source web browser developed for Windows, OS X, and Linux, with a mobile version for Android, by the Mozilla Foundation and its subsidiary, the Mozilla Corporation. Firefox uses the Gecko layout engine to render web pages, which implements current and anticipated web standards.

As of July 2013, Firefox has between 16% and 21% of worldwide usage, making it the third most popular web browser, according to different sources. According to Mozilla, Firefox counts over 450 million users around the world. The browser has had particular success in Indonesia, Germany, and Poland, where it is the most popular browser with 57%, 45% and 44% of the market share, respectively. Source: Wikipedia

IceWeasel is the default browser in Kali Linux which is really Firefox with a different name and logo. Debian guru’s didn’t like Mozilla’s license agreement and decided to use IceWeasel instead of Firefox. Personally, I can’t see much differences but if you’re one of those people who MUST use Firefox this guide will help you to replace IceWeasel with Firefox.

Note: This is copy paste guide to achieve that. So yeah, this is the best way to go about..

Close IceWeaseliceweasel logo

If you have IceWeasel running, how are you going to remove it? So copy these instructions into Leafpad and close IceWeasel. Maybe you could bookmark this site to come back and check? Upto you really.

Install Firefox in Kali Linux

Copy paste these commands in your Terminal.

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

Conclusion

Now find Firefox logo and fire it up. Hope this small guide helps someone out there.. Thanks for reading. Please share and RT.

Check Also

Enabling AMD GPU for Hashcat on Kali Linux: A Quick Guide

Enabling AMD GPU for Hashcat on Kali Linux: A Quick Guide

If you’ve encountered an issue where Hashcat initially only recognizes your CPU and not the …

Nyxt The Hacker's Browser Unleashing Power and Flexibility

Nyxt: Hacker’s Dream Browser

In the ever-evolving digital landscape, the demand for specialized tools and platforms has grown exponentially. …

65 comments

  1. returns a error when adding the key server, any ideas?

    • Show me the error message please.
      Did you manage to remove IceWeasel first? (you need to close IceWeasel before you remove it).
      Also you might have to fix Kali Keys. Followings are for Kali Keys
      gpg –keyserver pgpkeys.mit.edu –recv-key ED444FF07D8D0BF6
      gpg -a –export ED444FF07D8D0BF6 | sudo apt-key add -

      or
      apt-key update
      Then apt-get update and retry.
      Edit 20/01/2014 – Since making the comment above, I’ve had an issue “WARNING: The following packages cannot be authenticated!” and managed to fix it.

    • Commands that just worked for me October 2016

      How to install Firefox-Mozilla on Kali Linux 2.0

      Open up a terminal ALT + CTRL + T

      step 1. apt-get remove iceweasel

      step 2. echo -e “\ndeb http://downloads.sourceforge.net/project/ubuntuzilla/mozilla/apt all main” | tee -a /etc/apt/sources.list > /dev/null

      step 3. apt-key adv –recv-keys –keyserver keyserver.ubuntu.com C1289A29

      step 4. apt-get update

      step 5. apt-get install firefox-mozilla-build

      Terminal Output

      root@kali:~# apt-get remove iceweasel

      root@kali:~# echo -e “\ndeb http://downloads.sourceforge.net/project/ubuntuzilla/mozilla/apt all main”

      deb http://downloads.sourceforge.net/project/ubuntuzilla/mozilla/apt all main

      root@kali:~# apt-key adv –recv-keys –keyserver keyserver.ubuntu.com C1289A29
      Executing: /tmp/tmp.ujp7XhhmwD/gpg.1.sh –recv-keys
      –keyserver
      keyserver.ubuntu.com
      C1289A29
      gpg: requesting key C1289A29 from hkp server keyserver.ubuntu.com
      gpg: key C1289A29: “Daniel Folkinshteyn (Ubuntuzilla signing key) ” not changed
      gpg: key C1289A29: “Daniel Folkinshteyn (Ubuntuzilla signing key) ” not changed
      gpg: Total number processed: 2
      gpg: unchanged: 2

      root@kali:~# sudo apt-get update
      Get:1 http://heanet.dl.sourceforge.net/project/ubuntuzilla/mozilla/apt all InRelease [1,891 B]
      Get:2 http://heanet.dl.sourceforge.net/project/ubuntuzilla/mozilla/apt all/main amd64 Packages [892 B]
      Fetched 2,783 B in 1s (2,470 B/s)
      Reading package lists… Done
      root@kali:~# apt-get install firefox-mozilla-build
      Reading package lists… Done
      Building dependency tree
      Reading state information… Done
      The following NEW packages will be installed:
      firefox-mozilla-build
      0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
      Need to get 56.5 MB of archives.
      After this operation, 0 B of additional disk space will be used.
      Get:1 http://heanet.dl.sourceforge.net/project/ubuntuzilla/mozilla/apt all/main amd64 firefox-mozilla-build amd64 49.0.2-0ubuntu1 [56.5 MB]
      Fetched 56.5 MB in 41s (1,359 kB/s)
      Selecting previously unselected package firefox-mozilla-build.
      (Reading database … 298219 files and directories currently installed.)
      Preparing to unpack …/firefox-mozilla-build_49.0.2-0ubuntu1_amd64.deb …
      Adding ‘diversion of /usr/bin/firefox to /usr/bin/firefox.ubuntu by firefox-mozilla-build’
      Unpacking firefox-mozilla-build (49.0.2-0ubuntu1) …
      Processing triggers for gnome-menus (3.13.3-6) …
      Processing triggers for desktop-file-utils (0.22-1) …
      Processing triggers for mime-support (3.59) …
      Setting up firefox-mozilla-build (49.0.2-0ubuntu1) …

      Now wait 3-5 minutes and type mozilla in the terminal

  2. if you got any problems like error which tells you Type ' e' is not known on line 12 in source lisr /etc/apt/sources.list try to delete some stuff from /etc/apt/sources.list

    use this command: nano /etc/apt/sources.list

    after you delete press ctrl+o than enter and ctrl+x and enter try again this procedure above to install a web-browser

  3. I am running into error

    W: Failed to fetch http://downloads.sourceforge.net/project/ubuntuzi… Unable to find expected entry 'mail/binary-i386/Packages' in Release file (Wrong sources.list entry or malformed file)

    E: Some index files failed to download. They have been ignored, or old ones used instead.

    so when i try apt-get install firefox-mozilla-build i get error

    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

    so I've googled this and I'm lost

    please advise

    • Hi Dave,

      Your main error message is

      Wrong sources.list entry or malformed file

      Please check /etc/apt/sources.list file using leafpad (vi is good, but leafpad is more visual.

      leafpad /etc/apt/sources.list

      Edit this file to ensure you don’t have any funny characters in there. (i.e. You can add the source list to the following line manually)

      deb http://downloads.sourceforge.net/project/ubuntuzi… all main

      and then you need to add the key using the following command:

      apt-key adv –recv-keys –keyserver keyserver.ubuntu.com C1289A29

      and update and install firefox.

      apt-get update && apt-get install firefox-mozilla-build -y 

      A detailed Wiki is in here if you’re interested Ubuntuzilla Wiki page

  4. When I try: apt-get remove iceweasel

    It tries to unistall also gnome-core.

    I have to continue?? :S

    • Hi Xmc,

      Doesn't make any differences. When you remove IceWeasel, it complains about lots of autoremove packages (including gnome-core … yeah I know very weird and scary) etc.. I ignored them and installed Firefox, those warning went away. If you wanna be extra careful, you could try to do it in a VirualBox to confirm before you try it in your main installation… Just a thought ..

      • so, should i remove them?

        root@X:~# apt-get autoremove
        Reading package lists… Done
        Building dependency tree
        Reading state information… Done
        The following packages will be REMOVED:
        baobab caribou caribou-antler empathy empathy-common fonts-cantarell
        gcalctool gdm3 gnome-backgrounds gnome-dictionary gnome-disk-utility
        gnome-font-viewer gnome-icon-theme-extras gnome-packagekit
        gnome-packagekit-data gnome-screenshot gnome-system-log gucharmap
        libavahi-gobject0 libavahi-ui-gtk3-0 libcaribou-gtk-module
        libcaribou-gtk3-module libchamplain-0.12-0 libchamplain-gtk-0.12-0
        libgdict-1.0-6 libgdict-common libgdu-gtk0 libgeocode-glib0 libmozjs24d
        libtelepathy-farstream2 libunique-3.0-0 mobile-broadband-provider-info
        nautilus-sendto-empathy network-manager-gnome sound-theme-freedesktop
        telepathy-gabble telepathy-logger telepathy-salut vino xulrunner-24.0
        0 upgraded, 0 newly installed, 40 to remove and 2 not upgraded.
        After this operation, 148 MB disk space will be freed.

        what should i do?

        • NO. Don’t remove yet.

          I am assuming you installed XFCE/MATE and now removing those? Install WICD (for network management) as this autoremove will remove network-manager-gnome which is used by both GNOME and XFCE. Then remove one or two package at a time. (baobab caribou etc.) In case you end up loosing your Network and X Display, you can still use WICD to reconnect and install anything to fix that.

          • sir… i lose my network manager after installing firefox, and do the apt-get autoremove.. pls help me sir.?

  5. I’m not sure why but this weblog is loading extremely slow for me.

    Is anyone else having this issue or is it a problem on my end?

    I’ll check back later and see if the problem still exists.

  6. i have here a situation in my instalation .
    Instead closing and removing iceweasel first i leave iceweasel opened to tale notes on the commands .
    the firefox installation was not completed sucefully and now everytime i try to install it with :

    apt-get install mozilla-firefox-build

    i get this error :
    status `half-installed’)
    firefox-mozilla-build
    E: Sub-process /usr/bin/dpkg returned an error code (1)

  7. Thanks

  8. Hmmm… I get a gpg: keyserver timed out error on the apt-key command…

    Any ideas?

    Cheers,
    Ray

    • Never mind… Bloody UTM Firewall… that is all… :)

      Cheers,
      Ray.

      • Lol Sophos or CheckPoint? Use VPN next time maybe to avoid corporate policy bypass.

        • Neither! D-Link DFL UTM – Based on Kaspersky signatures if I recall correctly… This device uses paranoid policy – literally!

          Bounced the laptop through my 3G Phone via Personal Hotspot – Downloaded the key immediately!

          Cheers,
          Ray.

  9. Thanks blackMORE.
    I’m doing another step
    install Firefox For Another Language
    Just Four Commands …
    1- Download Any Language You want From : http://www.mozilla.org/en-US/firefox/all/
    2- Close iceweasel
    Then />
    3- apt-get remove iceweasel
    4- tar -xjvf firefox-30.0.tar.bz2
    5- mv firefox /opt/firefox
    6- ln -sf /opt/firefox/firefox /usr/bin/firefox
    7- Done.

    root@kali:exit
    ; )

  10. Hello
    It was nice to learn through your article on how to install mozilla firefox on kali linux 32 bit.
    However, I tried many times and I keep receiving the below mentioned error msgs and I am stuck without firefox. I have also removed iceweasel which was there before
    Any help is highly appreciated

    W: Failed to fetch http://downloads.sourceforge.net/project/ubuntuzilla/mozilla/apt/dists/all/Release.gpg Could not connect to kaz.dl.sourceforge.net:80 (88.204.157.163), connection timed out

  11. If I remove iceweasel then what should I do instead of ” proxychains iceweasel ” after service start tor ?

    PS: I’m posting after reassuring myself that No question is stupid question, hope you’d feel the same ;)

    • Hi Samir, Good question. You can use proxychains with any program. I.e. “proxychains firefox” or “proxychains chrome” or “proxychains xchat” etc.
      The basic idea is “proxychains executable-name”. Hope that explains. Cheers,
      -BMO

  12. apt-get update
    E: Type ‘“ndeb’ is not known on line 10 in source list /etc/apt/sources.list
    E: The list of sources could not be read.

  13. I got error E:Unable to locate package firefox-mozilla-build……………… at the last step……….please help

  14. Works fine for me Thanks a lot

  15. Worked like a dream even replaced the icon, thank you brother.

  16. It worked a treat. thanks for the refresher, I always have to pull up a tutorial every time I do this. ;-)

    Cheers
    Pic

  17. Mine gives error after this section apt-key adv –recv-keys –keyserver keyserver.ubuntu.com C1289A29 gpg: requesting key C1289A29 from hkp server keyserver.ubuntu.com
    gpg: keyserver timed out
    gpg: keyserver receive failed: keyserver error

  18. hello i am installing Firefox from the above method and it’s working fine but i want to downgrade the Firefox to firefox-26.0.tar.bz2 and i am download the .tar.bz2 file from Mozilla repository and i am extracting the Mozilla from
    tar xvf /opt/firefox but it saw me error like bash: /usr/bin/firefox: cannot execute binary file

  19. Thank you soo much for this guide, it really helped me

  20. I got this Error
    gpg: keyserver timed out
    gpg: keyserver receive failed: keyserver error

  21. I couldnt understand removing firefox build and then reinstalling it worked and why id didnt work the first time werid.

  22. I am getting an error which says:

    E: Unable to locate package firefox-mozilla-build

    Please suggest how to resolve this?

  23. blackMore thanks again for your awsome tutorials and website, keep doing it !

  24. hey how would i update the logo at the top next to terminal to the firefox logo vs the white box with error symbol in it? i already made the shortcut go to firefox but the logo will not show up. Thanks

  25. error msg is coming r u root ? permission denied

  26. Hello guys please how do i install any softwares in kali linux. justed started using kali for the first time. tried to install open office, software center but didnt work. please i need your help

  27. Hey Franklyn, You should use the following command
    sudo apt-get install
    Pleas don’t use software center…
    If you need any windows software on linux, just google playonlinux and you will see clear instructions, I bet open office and all those production software are available on playonlinux

  28. hi all,
    # apt-get remove iceweasel
    Reading package lists… Done
    E: Type ‘“ndeb’ is not known on line 9 in source list /etc/apt/sources.list
    E: The list of sources could not be read.

    can anyone help me,
    thanks

  29. Gng gud so far. Will this install latest firefox. Like 45+

  30. showing this error

    : dpkg was interrupted, you must manually run ‘dpkg –configure -a’ to correct the problem.

  31. I want 2 be hacker

  32. Unable to locate package firefox-mozilla-build

  33. E: Type ‘“ndeb’ is not known on line 6 in source list /etc/apt/sources.list
    E: The list of sources could not be read.

    when try apt-get update .
    this comes in front of me
    please try to solve the problem

  34. E: the method driver /usr/lib/apt/methods/https could not be found .
    Please solve this error

  35. Its just showing :-

    apt-get remove iceweasel
    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    Some packages could not be installed. This may mean that you have
    requested an impossible situation or if you are using the unstable
    distribution that some required packages have not yet been created
    or been moved out of Incoming.
    The following information may help to resolve the situation:

    The following packages have unmet dependencies:
    gsettings-desktop-schemas : Breaks: mutter (< 3.19.92) but 3.18.2-1 is to be installed
    libgnome-desktop-3-12 : Breaks: mutter (< 3.21.2) but 3.18.2-1 is to be installed
    E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

  36. Firefox esr is not responding in my kali linux…what to do?

  37. please tell me how to solve this
    E: Unable to locate package firefox-mozilla-build

Leave your solution or comment to help others.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Discover more from blackMORE Ops

Subscribe now to keep reading and get access to the full archive.

Continue reading