在Debian上安装新版本的FireFox
2013-02-11 21:10:52 阿炯

Debian 6 ("Squeeze") uses a rebranded version of Firefox called Iceweasel.

目前的稳定版本的Debian是其第六版(Squeeze),其所带的'Iceweasel'版本为3.5,想对于目前发行的正式版本(目前为18.0),还是显得很‘落后',且不支持html5,所有很必要对其进行升级。这里总结了一些方式方法,以供大家参考:

方法一:安装官方发布的二进制版本
First, you need to remove the existing Iceweasel package (I think you can use aptitude as well):
apt-get remove iceweasel

Then, download the latest Linux build of Firefox directly from Mozilla. Extract the files, and navigate to that folder, and run it. If you want, make an icon on your desktop. You can also make a link to the binary in /usr/bin/firefox to make it easier to launch.

解压安装运行后,发现有如下报错:
./firefox: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory

主要原因是缺少其运行时库,与体系构架相关:
apt-get install ia32-libs ia32-libs-gtk

(That's trying to install the 32 bit version of firefox in a 64 bit Debian environment)

这种方法显得不适用,下面介绍第二种方法。

方法二:从第三方源安装
Debian的Mozilla主页上(The Debian Mozilla team provides various versions of some Mozilla related packages for use on different Debian systems. )

可按照上面所介绍的方式进行安装和排错,可以通过'apt-cache show iceweasel',可能看到有多个源提供的相应版本,这里除了官方源,还可以看到’10.0.12esr-1~bpo60+1‘与'18.0.1-1~bpo60+1'这两个新增版本,你可以安装想要的版本进行安装。

W: GPG 错误:http://mozilla.debian.net squeeze-backports Release: 由于没有公钥,无法验证下列签名: NO_PUBKEY 85A3D26506C4AE2A

安装是会报出以上错误,它的解决方法很简单,在其主页上有相关说明,只要安装key的deb(pkg-mozilla-archive-keyring package)包或导入相应的gpg key即可解决问题,后者的具体操作办法请参考:Debian更新源时出现签名无法进行验证(GPG error)