PDA

View Full Version : Install Firefox in Kali (Best Way)



Hitman
2013-04-15, 18:35
There are some other ways also to install Firefox in Kali like linuxmint debian repository, PPA etc. But the method i am sharing is the best and works 100% If you want to install the Firefox in Kali run the following commands in your terminal remember it will first remove the Kali default browser Iceweasel. Iceweasel is Firefox only with different name and logo. But for some people it doesn't give a real Firefox experience. I also removed the Iceweasel and running the Firefox :D


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

Hope You Will Enjoy......

tr00n3r
2013-04-19, 15:36
I tried your howto but following error accours. How can I fix it?
tried apt-get remove firefox-mozilla-build
apt-get install firefox-mozilla-build

always the same error.

Any help would be appreciate.



dpkg: error processing firefox-mozilla-build (--configure):
package firefox-mozilla-build is not ready for configuration
cannot configure (current status `half-installed')
Errors were encountered while processing:
firefox-mozilla-build
E: Sub-process /usr/bin/dpkg returned an error code (1)

tr00n3r
2013-04-19, 15:37
I tried your howto but following error accours. How can I fix it?
tried

apt-get remove firefox-mozilla-build
apt-get install firefox-mozilla-build
apt-get install -f

always the same error.

Any help would be appreciate.



dpkg: error processing firefox-mozilla-build (--configure):
package firefox-mozilla-build is not ready for configuration
cannot configure (current status `half-installed')
Errors were encountered while processing:
firefox-mozilla-build
E: Sub-process /usr/bin/dpkg returned an error code (1)

Hitman
2013-04-19, 15:52
I tried your howto but following error accours. How can I fix it?
tried apt-get remove firefox-mozilla-build
apt-get install firefox-mozilla-build

always the same error.

Any help would be appreciate.



dpkg: error processing firefox-mozilla-build (--configure):
package firefox-mozilla-build is not ready for configuration
cannot configure (current status `half-installed')
Errors were encountered while processing:
firefox-mozilla-build
E: Sub-process /usr/bin/dpkg returned an error code (1)


its mentioned apt-get remove iceweasel not firefox anyways open this file "/etc/apt/sources.list" with your favorite editor and see is this repository added in your sources.list file "deb http://downloads.sourceforge.net/project/ubuntuzilla/mozilla/apt all main"
if not then add it manually save the file and do the further steps as mentioned in my post carefully. If problem not solve then contact me or send me your sources.list file. For your safety make a backup of your sources.list file before editing thanks.

tr00n3r
2013-04-19, 15:59
thanks for the fast reply:

sources.list:



GNU nano 2.2.6 File: sources.list

#deb cdrom:[Debian GNU/Linux 7.0 _Kali_ - Official Snapshot amd64 LIVE/INSTALL Binary 20130311-19:56]/ kali co$

deb http://http.kali.org/kali kali main non-free contrib
deb-src http://http.kali.org/kali kali main non-free contrib

## Security updates
deb http://security.kali.org/kali-security kali/updates main contrib non-free

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


iceweasel is already uninstalled :)


Package 'iceweasel' is not installed, so not removed

Hitman
2013-04-19, 16:24
GNU nano 2.2.6 File: sources.list

#deb cdrom:[Debian GNU/Linux 7.0 _Kali_ - Official Snapshot amd64 LIVE/INSTALL Binary 20130311-19:56]/ kali co$

deb http://http.kali.org/kali kali main non-free contrib
deb-src http://http.kali.org/kali kali main non-free contrib

## Security updates
deb http://security.kali.org/kali-security kali/updates main contrib non-free

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

Your sources file is OK. I put an remark in it its a good practice whenever edit in the default files so that you know which one is your editing and which are the defaults.

Anyhow run the remaining commands and check.


apt-key adv --recv-keys --keyserver keyserver.ubuntu.com C1289A29
apt-get update
apt-get install firefox-mozilla-build

If its not working then remove the deb http://downloads.sourceforge.net/project/ubuntuzilla/mozilla/apt all main line from sources.list and run apt-get update && apt-get upgrade after that again add deb http://downloads.sourceforge.net/project/ubuntuzilla/mozilla/apt all main in sources.list and run the other commands.

If all fails then i will tell you the other way but that is little bit difficult. :(

tr00n3r
2013-04-22, 08:07
sorry for late response - I couldn't get dpkg to run properly so I restored my backup from the day before without firefox.

nancycamp
2014-02-21, 16:37
I followed your steps and got them same error


Fetched 31.2 MB in 3min 27s (151 kB/s)
Selecting previously unselected package firefox-mozilla-build.
(Reading database ... 329461 files and directories currently installed.)
Unpacking firefox-mozilla-build (from .../firefox-mozilla-build_27.0.1-0ubuntu1_amd64.deb) ...
dpkg-divert: error: `diversion of /usr/bin/firefox to /usr/bin/firefox.ubuntu by firefox-mozilla-build' clashes with `diversion of /usr/bin/firefox to /usr/bin/firefox.real by iceweasel'
dpkg: error processing /var/cache/apt/archives/firefox-mozilla-build_27.0.1-0ubuntu1_amd64.deb (--unpack):
subprocess new pre-installation script returned error exit status 2
dpkg-divert: error: mismatch on divert-to
when removing `diversion of /usr/bin/firefox to /usr/bin/firefox.ubuntu by firefox-mozilla-build'
found `diversion of /usr/bin/firefox to /usr/bin/firefox.real by iceweasel'
dpkg: error while cleaning up:
subprocess new post-removal script returned error exit status 2
Errors were encountered while processing:
/var/cache/apt/archives/firefox-mozilla-build_27.0.1-0ubuntu1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

AlienMan
2014-02-22, 23:36
This is great!
Thank you.

mmg
2014-08-16, 13:55
ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/30.0/linux-i686/en-US/firefox-30.0.tar.bz2

download the above package, unpacked in any method and anywhere you like. Then you'll get the firefox folder. Double click the folder then double click the firefox icon and it will start normally check and import every thing from Iceweasel.

you can't type firefox command in the Terminal. So 'make link' the firefox icon then cut it and open filesystem folder then bin folder and paste it and change its name to 'firefox'. That's, Now you can call firefox command in the terminal.

Good luck.

McNightstricker
2015-06-05, 04:13
what the **** is goin on with them ? anyone you asked toold you this :
1st : remove iceweasel ,
stop dude, i won't remove it at all , i just asked'em to help me to install firefox

sorry for this they bothered me , can you please help me ?

Rarity
2015-06-08, 23:26
McNight,

Download Firefox from their website
Extract the file
Create a symbolic link after moving it to the /opt directory.

tar xjf firefox-*.tar.bz2
mv ~/firefox/ /opt/firefox
ln -sf /opt/firefox/firefox /usr/bin/firefox

McNightstricker
2015-06-21, 10:32
:) thank you friend

McNightstricker
2015-06-21, 10:34
thank you Hitman this is the point i don not want to remove my iceweasel browser

sudo.fsys
2015-09-17, 10:40
Hi Guys,

If you have any problem during the installion, the package will be 'half installed'.. So can not be configured correctly.. You just need to check your sources.list to see if firefox apt source all main is good, and then open a new terminal and tape :

'apt-get install --reinstall firefox'

wait until reinstall and config is finish and then tape :

'firefox'

Cheers