Home Browser How to install Firefox in Kali Linux

How to install Firefox in Kali Linux

by blackMORE

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.

You may also like

65 comments

dweasel December 14, 2013 - 10:01 am

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

Reply
admin December 14, 2013 - 10:13 am

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.

Reply
DarkFX October 24, 2016 - 1:38 pm

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

Reply
Cybersu January 20, 2014 - 10:45 am

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

Reply
admin January 21, 2014 - 12:20 am

Rather than trial and error method I feel that a better solution would be to use Official Kali Repositories. Either way, thanks Cybersu, this might be quite helpful to someone who bumps into a similar issue.

Reply
Dave January 25, 2014 - 3:28 am

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

Reply
admin January 26, 2014 - 12:38 pm

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

Reply
Dave January 26, 2014 - 5:50 pm

you're a genious!! the problem was in my sources.list file deb http://downloads.sourceforge.net/project/ubuntuzi… all main was somehow deb http://downloads.sourceforge.net/project/ubuntuzi… all mail haha so changed the l to an n and viola! :D thanks a ton!

Reply
makrovo December 2, 2015 - 12:08 am

Thanks for tip!!!!!!

Reply
Xmc March 5, 2014 - 1:22 pm

When I try: apt-get remove iceweasel

It tries to unistall also gnome-core.

I have to continue?? :S

Reply
blackMORE Ops March 5, 2014 - 9:15 pm

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 ..

Reply
Quyen Vu June 26, 2014 - 7:07 am

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?

Reply
blackMORE Ops June 26, 2014 - 12:24 pm

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.

Reply
balong December 27, 2014 - 9:15 pm

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

google plus and facebook April 11, 2014 - 11:25 am

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.

Reply
blackMORE Ops April 11, 2014 - 7:17 pm

cause I cant afford a better server.. :-(

Reply
ashu noella manta April 12, 2014 - 8:23 pm

please i tried to install firefox or any other software on kali but they keep telling me package not found.please help me

Reply
blackMORE Ops April 12, 2014 - 9:20 pm

Hi ashu,
Can you show me your exact error message?

Reply
pedropt May 17, 2014 - 11:01 pm

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)

Reply
blackMORE Ops May 18, 2014 - 12:16 am

Hi pedropt,
Copy this comment in a Leafpad and try the commands as shown:
Try removing Firefox
CMD:

apt-get remove firefox-mozilla-build

If remove fails try re-installing
CMD:

apt-get install --reinstall firefox-mozilla-build

Good luck.
-BMO

Reply
pedropt May 18, 2014 - 9:03 am

Bingo !!!
Thank you for the tip , it worked perfectly .

Reply
makrovo December 2, 2015 - 12:06 am

Thank you, really helped me!

Reply
anung1412 December 3, 2016 - 2:09 am

thanks my fucking bro

Reply
anung1412 December 3, 2016 - 2:11 am

its really worked

Reply
JL May 24, 2014 - 2:36 am

Thanks

Reply
UncleRaymondo June 3, 2014 - 2:37 am

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

Any ideas?

Cheers,
Ray

Reply
UncleRaymondo June 3, 2014 - 3:52 pm

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

Cheers,
Ray.

Reply
blackMORE Ops June 3, 2014 - 4:14 pm

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

Reply
UncleRaymondo June 3, 2014 - 4:18 pm

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.

Reply
blackMORE Ops June 3, 2014 - 4:23 pm

I know I’ve written this guide, but with Firefox’s new DRM mandatory policy implementation, I stopped using Firefox.

alm6iri June 22, 2014 - 11:13 pm

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
; )

Reply
blackMORE Ops June 22, 2014 - 11:30 pm

Thanks alm6iri. I’m sure many people would find it useful. Appreciate it.

Reply
goplex November 17, 2014 - 3:23 am

i used your treat bud (y)

Reply
Xdude July 7, 2014 - 7:10 pm

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

Reply
Samir September 2, 2014 - 5:11 am

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 ;)

Reply
blackMORE Ops September 2, 2014 - 7:33 am

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

Reply
Bùi Thái Sơn October 3, 2014 - 10:55 pm

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.

Reply
blackMORE Ops October 3, 2014 - 11:01 pm

Edit and fix line #10 of your sources.list file.

Reply
Rogue August 6, 2015 - 11:23 am

I got the same thing! U say edit it but edit the source list to what?

Reply
stdio.h July 27, 2016 - 11:06 am

Remove the ‘n’ char in ‘ndeb’.

Reply
maan October 30, 2014 - 5:10 pm

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

Reply
Pilum_Mortis November 18, 2014 - 6:36 pm

Works fine for me Thanks a lot

Reply
Alan K December 20, 2014 - 2:18 am

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

Reply
Steve January 20, 2015 - 12:11 pm

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

Cheers
Pic

Reply
Verikosto February 7, 2015 - 10:24 pm

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

Reply
Naeem March 22, 2015 - 9:52 pm

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

Reply
Deo90 March 23, 2015 - 7:19 pm

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

Reply
sudhanshuptl13sud March 24, 2015 - 8:37 am

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

Reply
jb March 27, 2015 - 12:23 am

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

Reply
Richa Sharma April 26, 2015 - 2:30 pm

I am getting an error which says:

E: Unable to locate package firefox-mozilla-build

Please suggest how to resolve this?

Reply
hoenir May 25, 2015 - 9:21 pm

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

Reply
This Guy June 1, 2015 - 7:44 am

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

Reply
golu tiwari February 24, 2016 - 1:56 pm

error msg is coming r u root ? permission denied

Reply
Franklyn April 25, 2016 - 8:48 pm

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

Reply
Voider April 25, 2016 - 10:25 pm

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

Reply
Ayyappa Reddy August 25, 2016 - 5:07 am

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

Reply
Abu October 16, 2016 - 2:09 am

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

Reply
sumit October 21, 2016 - 5:54 pm

showing this error

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

Reply
anymore October 24, 2016 - 3:50 pm

I want 2 be hacker

Reply
Razu March 1, 2017 - 6:10 am

Unable to locate package firefox-mozilla-build

Reply
Harryzeus May 6, 2017 - 2:54 pm

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

Reply
bilal June 17, 2017 - 10:38 pm

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

Reply
Aman June 30, 2017 - 9:10 pm

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.

Reply
David August 8, 2017 - 6:06 pm

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

Reply
Arkham February 12, 2019 - 9:10 pm

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

Reply

Leave a Reply to Pilum_MortisCancel reply

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