出于种种原因,有很多人信仰原装纯净;就像debian下的iceweasel,有人总想换成firefox。好吧,正好最近29版发布了,我们无视掉这两者哥两好的关系,尝试在Debian/Kali 下安装Firefox。

如果直接apt-get remove iceweasel 时是无法成功卸载的,貌似是由于iceseasel是默认浏览器导致,所以我们先安装一个chrome之类的浏览器,并设置成默认浏览器即可,试试看现在是不是可以直接卸载了!

然后打开 /etc/apt/sources.list 添加软件源:

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

安装密钥环

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

更新下

apt-get update

开始安装

apt-get install firefox-mozilla-build

更简单的,也可以直接从官网下载官方编译好的压缩包,解压就可以运行。

两种方法,第一种,直接去官网下载,然后直接运行firefox 就可以了

第二种,类似chrome的,添加完整的path.这里我们讲第二种方法

首先添加源地址 ,在/etc/apt/sources.list 里面 最后添加

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

或者终端直接stdin

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

添加key

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

更新

#apt-get update

安装firefox

#apt-get install firefox-mozilla-build

提示错误

  1. dpkg-divert: `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'
  2. dpkg: error processing /var/cache/apt/archives/firefox-mozilla-build_15.0-0ubuntu1_amd64.deb (--unpack):
  3. subprocess new pre-installation script returned error exit status 2
  4. configured to not write apport reports
  5. dpkg-divert: mismatch on divert-to
  6. when removing `diversion of /usr/bin/firefox to /usr/bin/firefox.ubuntu by firefox-mozilla-build'
  7. found `diversion of /usr/bin/firefox to /usr/bin/firefox.real by iceweasel'
  8. dpkg: error while cleaning up:
  9. subprocess new post-removal script returned error exit status 2
  10. Errors were encountered while processing:
  11. /var/cache/apt/archives/firefox-mozilla-build_15.0-0ubuntu1_amd64.deb
  12. E: Sub-process /usr/bin/dpkg returned an error code (1)

原来是iceweasel和firefox15冲突了.新的不能覆盖掉,那就remove掉

#apt-get remove iceweasel

  1. root@debian:/etc/apt# apt-get remove iceweasel
  2. Reading package lists... Done
  3. Building dependency tree
  4. Reading state information... Done
  5. The following packages will be REMOVED:
  6. iceweasel
  7. 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
  8. 1 not fully installed or removed.
  9. Need to get 0 B/22.0 MB of archives.
  10. After this operation, 4,092 kB disk space will be freed.
  11. Do you want to continue [Y/n]? y
  12. (Reading database ...
  13. dpkg: warning: files list file for package `firefox-mozilla-build' missing, assuming package has no files currently installed.
  14. (Reading database ... 126622 files and directories currently installed.)
  15. Preparing to replace firefox-mozilla-build 15.0-0ubuntu1 (using .../firefox-mozilla-build_15.0-0ubuntu1_amd64.deb) ...
  16. Unpacking replacement firefox-mozilla-build ...
  17. Processing triggers for gnome-menus ...
  18. Processing triggers for desktop-file-utils ...
  19. (Reading database ... 126696 files and directories currently installed.)
  20. Removing iceweasel ...
  21. Removing 'diversion of /usr/bin/firefox to /usr/bin/firefox.real by iceweasel'
  22. Processing triggers for menu ...
  23. Processing triggers for hicolor-icon-theme ...
  24. Processing triggers for man-db ...
  25. Processing triggers for gnome-menus ...
  26. Processing triggers for desktop-file-utils ...
  27. Setting up firefox-mozilla-build (15.0-0ubuntu1) ...
  28. root@debian:/etc/apt#

打开你的互联网,里面已经有firefox了

如果没有flash插件

#apt-get install flashplugin-nonfree

如果想要中文的,用firefox打开下面的链接,下载zh-cn.xpi

http://releases.mozilla.org/pub/mozilla.org/firefox/releases/latest/win32/xpi/

然后安装这个,再在地址栏输入about:config

搜索useragent,最下面的一个general.useragent.locale双击修改里面的en-US 为zh-CN

然后重启firefox就可以了



注:

在后面的更新中,或者系统更新了,比如你更新到debian 7wheezy  里面,如果remove掉iceweasel,
会提示你autoremove 掉gnome 和其他一些, 这是因为在wheezy中已经捆绑了iceweasel, 你只需要dppkg -P
iceweasel 然后把firefox装好, 接下来重新安装一下apt-get install gnome就可以解决掉这个问题。

如果删不了, 可以执行dpkg --remove --force-remove-reinstreq firefox-mozilla-build 来强制删除

最新文章

  1. Android自定义Dialog(美化界面)
  2. Android自动化学习笔记之MonkeyRunner:官方介绍和简单实例
  3. JMeter学习(四)参数化
  4. linux下在eclipse上运行hadoop自带例子wordcount
  5. IT人才什么最重要
  6. Python Paste.deploy 笔记
  7. 01_JavaMail_04_带附件邮件的发送
  8. JSP 登录页面
  9. C陷阱与缺陷(四)
  10. 第13章、布局Layouts之RelativeLayout相对布局(从零開始学Android)
  11. 【C++自我精讲】基础系列四 static
  12. 通过sort()方法实现升序和降序排列
  13. Oracle SQL Loader
  14. vue 图片加载失败调用
  15. InetAddress and InetSocketAddress
  16. Spring Security + OAuth系统环境搭建(一)
  17. ORACLE UNDO
  18. console 调试技巧
  19. Python打包-Pyinstaller
  20. aarch64_g4

热门文章

  1. Linux将MySQL数据库目录挂载至新数据盘
  2. springmvc4 相关注解的详细讲解
  3. C 标准库 - string.h之strstr使用
  4. luajit+nginx+上传模块+lua模块编译安装
  5. FastReport打印table
  6. C#基础知识-使用XML完成一个小程序(十一)
  7. webservice随记
  8. git的问题(error: object file .git/objects/* is empty...)的解决方案及对git版本库文件的了解
  9. mysql通过一张表更新另一张表
  10. spring的aop 基于schema