如何在 Debian 上安装真正的 Firefox?

kra*_*mir 130 linux firefox debian

Debian 6(“Squeeze”)使用名为Iceweasel的 Firefox 更名版本。然而,它缺乏插件支持,而且我最喜欢的大多数都不起作用。

那么在 Debian 上安装“真正的”Firefox 的最佳方法是什么?

Bre*_*ugh 131

首先,您需要删除现有的 Iceweasel 包(我认为您也可以使用aptitude):

apt-get remove iceweasel
Run Code Online (Sandbox Code Playgroud)

然后,直接从 Mozilla下载Firefox 的最新 Linux 版本。提取文件,导航到该文件夹​​,然后运行它。如果您愿意,可以在桌面上制作一个图标,您还可以制作指向二进制文件的链接,/usr/bin/firefox以便更轻松地启动。如果您有 root 访问权限,您还可以安装 Firefox,/usr/local以便所有用户都可以运行它。

在此之后,仔细检查是否启用了自动更新,您应该已启动并运行!


如果你想要一个基于包的包,你可以使用Linux Mint 的 Debian 包 repo(如下面的评论中所述,注意这在某些情况下可能会导致与自动更新和其他 Debian 包的冲突)。为此,请将以下行添加到您的/etc/apt/sources.list文件中:

deb http://packages.linuxmint.com debian import
Run Code Online (Sandbox Code Playgroud)

为该存储库添加 GPG 密钥。然后,只需运行:

apt-get update
apt-get install firefox
Run Code Online (Sandbox Code Playgroud)

你应该很高兴去!

默认安装是德语,要安装任何其他语言,您可以手动运行:

apt-get install firefox-l10n-en-us 

(Edit[11/26/2014]: This package no longer appears in the linux mint repository.)
(Edit[11/26/2014]: apt-get install firefox-l10n-en-gb - This is the only working English package)
Run Code Online (Sandbox Code Playgroud)

其他常用语言的包名称包括(官方存储库列表- 向下滚动一半):

 firefox-l10n-en-gb       # British English
 firefox-l10n-es          # Spanish
 firefox-l10n-fr          # French
 firefox-l10n-de          # German
Run Code Online (Sandbox Code Playgroud)

  • Ad GPG:从 [Mint's repo](http://packages.linuxmint.com/pool/main/l/linuxmint-keyring/) 下载并手动(`dpkg -i`)安装 `linuxmint-keyring_*.deb`(在从实际回购安装任何软件包之前)对我有用(Wheezy)。 (7认同)
  • 该存储库的 GPG 签名怎么样? (4认同)
  • 我从不推荐这个解决方案。事实上,添加这样的存储库(尽管它基于相同的发行版)会导致依赖项冲突。此方法适用于安装和更新 firefox,但它确实会与其他软件包发生一些冲突。如果您需要 firefox,您只需获取代码并将其提取到您的 `/opt/` 中,然后创建一个到它的全局链接。 (2认同)

小智 35

有一个 sourcefourge 项目,基本上致力于让您在运行 Ubuntu 时获得最新版本的 Firefox,无论您运行哪个版本(只要满足依赖关系,显然)。由于 Ubuntu 是 Debian 的衍生版本,我想我会尝试一下。我让 Firefox 在 Debian 测试(“Wheezy”)上工作得很好。

运行这个:

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
Run Code Online (Sandbox Code Playgroud)

这解决了使用导入的 Linux Mint DE 存储库时遇到的 GPG 密钥问题,并且比其他可行的解决方案简单得多。此外,这也使您可以访问 Thunderbird 和 SeaMonkey。

请注意,此解决方案仅为您提供英美发布频道版本(无测试版或 Aurora 版本)。可以使用其他语言,但需要额外的步骤。

有关更多信息,请参阅Ubuntuzilla的项目页面。

  • 不再有效! (2认同)

Sim*_*han 24

Debian 用户论坛上的这篇文章提出了以下建议:

要安装新版本,您应该

# rm -rf /opt/firefox*
# rm /usr/bin/firefox
Run Code Online (Sandbox Code Playgroud)

要制作桌面图标,请执行以下操作

$ touch /usr/share/applications/firefox.desktop
Run Code Online (Sandbox Code Playgroud)

使用您最喜欢的文本编辑器编辑它:

$ nano /usr/share/applications/firefox.desktop
Run Code Online (Sandbox Code Playgroud)

内容firefox.desktop

[Desktop Entry]
Encoding=UTF-8
Name=Mozilla Firefox
Comment=Browse the World Wide Web
Type=Application
Terminal=false
Exec=/usr/bin/firefox %U
Icon=/opt/firefox/icons/mozicon128.png
StartupNotify=true
Categories=Network;WebBrowser;
Run Code Online (Sandbox Code Playgroud)

您可以删除iceweasel

$ apt-get remove iceweasel
Run Code Online (Sandbox Code Playgroud)

如果您遇到此错误:

./firefox: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
Run Code Online (Sandbox Code Playgroud)

你应该安装

apt-get install ia32-libs ia32-libs-gtk
Run Code Online (Sandbox Code Playgroud)

您可能正在尝试在 64 位 Debian 环境中安装 32 位版本的 firefox。


Nab*_*imi 6

Iceweasel Aurora 非常接近 Firefox 最新的稳定版本。

使用这个官方 debian/mozilla 教程安装了Iceweasel Aurora

我能够从另一个安装中导入我的 Firefox 配置文件而没有错误,即所有插件、书签、历史条目和用户设置都运行良好。

仅供参考,我使用的一些插件是 Firebug、Awesome screenshot 和 Searchstatus,它们都运行良好并且没有被 Iceweasel 禁用。

您可能还想将Firefox 徽标用于启动器。

这可能是一个更好的选择,因为它允许更轻松的更新过程。


hen*_*nnr 6

不再需要这个了。Debian 稳定版今天开始发布 Firefox 而不是 iceweasel。

Debian 将发布 Firefox 的扩展支持版本 (ESR),该版本大致每 9 个月更新一次。如果您总是需要最新版本,其他答案可能仍然是您的选择。

有关更多信息,请参阅debian 错误报告