Debian/Kali 安装原生Firefox
出于种种原因,有很多人信仰原装纯净;就像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
提示错误
- 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'
- dpkg: error processing /var/cache/apt/archives/firefox-mozilla-build_15.0-0ubuntu1_amd64.deb (--unpack):
- subprocess new pre-installation script returned error exit status 2
- configured to not write apport reports
- dpkg-divert: 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_15.0-0ubuntu1_amd64.deb
- E: Sub-process /usr/bin/dpkg returned an error code (1)
原来是iceweasel和firefox15冲突了.新的不能覆盖掉,那就remove掉
#apt-get remove iceweasel
- root@debian:/etc/apt# apt-get remove iceweasel
- Reading package lists... Done
- Building dependency tree
- Reading state information... Done
- The following packages will be REMOVED:
- iceweasel
- 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
- 1 not fully installed or removed.
- Need to get 0 B/22.0 MB of archives.
- After this operation, 4,092 kB disk space will be freed.
- Do you want to continue [Y/n]? y
- (Reading database ...
- dpkg: warning: files list file for package `firefox-mozilla-build' missing, assuming package has no files currently installed.
- (Reading database ... 126622 files and directories currently installed.)
- Preparing to replace firefox-mozilla-build 15.0-0ubuntu1 (using .../firefox-mozilla-build_15.0-0ubuntu1_amd64.deb) ...
- Unpacking replacement firefox-mozilla-build ...
- Processing triggers for gnome-menus ...
- Processing triggers for desktop-file-utils ...
- (Reading database ... 126696 files and directories currently installed.)
- Removing iceweasel ...
- Removing 'diversion of /usr/bin/firefox to /usr/bin/firefox.real by iceweasel'
- Processing triggers for menu ...
- Processing triggers for hicolor-icon-theme ...
- Processing triggers for man-db ...
- Processing triggers for gnome-menus ...
- Processing triggers for desktop-file-utils ...
- Setting up firefox-mozilla-build (15.0-0ubuntu1) ...
- 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 来强制删除
Debian/Kali 安装原生Firefox的更多相关文章
- kali 安装最新firefox的悲惨经历
最新的的firefox用的是量子内核,在windows上面的确感觉相比之前的firefox快了好多 想把kali 2017虚拟机的也替换掉 按照步骤: 1 添加源: /etc/apt/sources. ...
- debian(kali Linux) 安装net Core
debian(kali Linux) 安装net Core curl -sSL https://raw.githubusercontent.com/dotnet/cli/rel/1.0.0-previ ...
- Debian下安装Firefox与flash简介
Debian下安装Firefox与flash简介 由于Debian在Firefox的版权上出现了问题,导致官方发布的Debian系统不能使用默认的Firefox浏览器,最后官方重编的Firefox改名 ...
- Kali 2019(debian linux)安装MySql5.7.x
Kali 2019(debian linux)安装MySql5.7.x MySQL安装 确认是否安装MySQL 终端输入:mysql 如出现Welcome to the MariaDB monitor ...
- kali安装后配置
0x00.安装Vmware Tools 由于是在VMware Workstation里面安装的,所以需要首先安装VMware tools工具方便我们Ctrl+C和Ctrl+V,步骤如下: 在VMWar ...
- 子系统kali安装桌面
理论上讲,所有Win10的Linux子系统都可以通过Windows10本机远程桌面和Xming的方法来安装使用图形化界面,笔者目前只接触了Debian系的Linux系统,故以Debian GNU/Li ...
- Kali安装Docker
---恢复内容开始--- 第一周 计划安装好docker 准备 审计thinkphp 框架 先把docker 安装的笔记补上 本来是在unbuntu 安装了一遍 并run 了几个镜像和基本操作 ...
- 20165315 2018-2019-2 《网络对抗技术》Exp0 Kali安装 Week1
20165315 2018-2019-2 <网络对抗技术>Exp0 Kali安装 Week1 一.安装过程 1.基本配置 创建一个新的自定义vm 选择创建自定虚拟机 操作系统选择" ...
- KALI安装与环境配置
2018-2019 201899224<网络攻防实践>第二周作业 虚拟化网络攻防实验环境包括以下部分: 靶机:包含系统和应用程序安全漏洞,并作为攻击目标的主机.(Windows XP和Li ...
随机推荐
- StrangeIoc框架学习
StrangeIoc是一款基于MVCS的一种框架,是对MVC思想的扩展,是专门针对Unity3D开发的一款框架,非常好用. 一.MVCS分别代表什么 MVCS框架是一种模块的分离,一种写代码的规则,目 ...
- Golang教程:goroutine信道
在上一篇教程中,我们讨论了如何使用协程实现并发.在这篇教程中,我们将讨论信道以及如何使用信道实现协程间通信. 什么是信道 信道(Channel)可以被认为是协程之间通信的管道.与水流从管道的一端流向另 ...
- Storm框架入门
1 Topology构成 和同样是计算框架的Mapreduce相比,Mapreduce集群上运行的是Job,而Storm集群上运行的是Topology.但是Job在运行结束之后会自行结束,Topolo ...
- .Net高阶异常处理第二篇~~ dump进阶之MiniDumpWriter
dump文件相信有些朋友已经很熟悉了,dump文件的作用在于保存进程运行时的堆栈信息,方便日后排查软件故障,提升软件质量.关于dump分析工具windbg.adplus的文章更多了,如果您还不知道怎么 ...
- jsp、servlet笔记
1.init 初始化Jsp&Servlet方法 destroy 销毁Jsp&Servlet之前的方法 service 对用户请求生成响应的方法2.Jsp文件必须在jsp服 ...
- javascript预编译和执行过程总结
javascript相对于其它语言来说是一种弱类型的语言,在其它如java语言中,程序的执行需要有编译的阶段,而在javascript中也有类似的“预编译阶段”(javascript的预编译是以代码块 ...
- SQL语句表处理
1.create table:创建表,语法: create table 表格名 ( 列名 数据类型, 列名 数据类型, ...... ) 2.constrain:约束,关键词 NOT NULL. UN ...
- 互联网轻量级框架SSM-查缺补漏第三天
简言:平安夜,继续慵懒的学习.我真的是不喜欢学习··· 第三章认识MyBatis核心组件 3.1 持久层的概念和MyBatis的特点 持久层:可以将业务数据存储带磁盘,具有长期存储的能力.一般执行持久 ...
- 6、springboot之根目录设置
访问的时候用
- Spring课程 Spring入门篇 7-1 Aspect介绍及PointCut注解应用
本节主要是理论型: 关键看下节实操. 这个其实只要理解一点:使用AspectJ进行Spring AOP 编程,其实就是使用了JAVA注解的风格进行配置和使用. 不像之前讲的那样在配置文件中配置使用.
