禁用 Firefox 更新 Ubuntu 服务器
Posted
技术标签:
【中文标题】禁用 Firefox 更新 Ubuntu 服务器【英文标题】:Disable Firefox Updates Ubuntu Server 【发布时间】:2016-10-22 22:55:11 【问题描述】:好的,所以我们将 Firefox 47 降级到之前的稳定版本。但是firefox每天都在更新到47!有什么方法可以完全停止 Ubuntu server 14.04 中的 firefox 更新(没有 GUI,只有终端)?
我们需要版本
已经尝试过: 纳米 /usr/lib/firefox/defaults/pref/channel-prefs.js nano /usr/lib/firefox/browser/defaults/preferences/nano syspref.js 纳米 /usr/lib/firefox/browser/defaults/preferences/user.js
注释掉://pref("app.update.channel", "release");并输入以下内容:pref("app.update.enabled", false); pref("app.update.silent", false);
我还在 ~/.mozilla 中创建了一个配置文件文件夹,并添加了一个包含以下内容的文本文件: // 关闭应用程序更新:user_pref("app.update.enabled", false);
我也试图从 iptables 中阻止 mozilla.org,但这也无济于事。
【问题讨论】:
【参考方案1】:如果您的 firefox 是通过 dpkg 或 apt 安装的,您可以这样做:
echo "firefox hold" | sudo dpkg --set-selections
然后使用 :
验证保留dpkg --get-selections
然后你可以尝试用apt更新firefox,一般不会。
【讨论】:
这与我的回答有何不同? 不是:)我同时写的> 【参考方案2】:持有火狐:
$ dpkg --get-selections | grep firefox
firefox install
firefox-locale-en install
firefox-locale-es install
unity-scope-firefoxbookmarks install
[13:17:03][root@robert]
[~]
$ echo firefox hold | sudo dpkg --set-selections
[13:17:20][root@robert]
[~]
$ dpkg --get-selections | grep firefox
firefox hold
firefox-locale-en install
firefox-locale-es install
unity-scope-firefoxbookmarks install
并取消:
[13:17:24][root@robert]
[~]
$ sudo apt-mark unhold firefox
Canceled hold on firefox.
[13:17:34][root@robert]
[~]
$ dpkg --get-selections | grep firefox
firefox install
firefox-locale-en install
firefox-locale-es install
unity-scope-firefoxbookmarks install
【讨论】:
为什么你还没有持有firefox-locale-en & firefox-locale-es
?
没有特别的原因。无论如何,较新的语言包都向后兼容。以上是关于禁用 Firefox 更新 Ubuntu 服务器的主要内容,如果未能解决你的问题,请参考以下文章
ubuntu16.04新服务器上配置selenium+firefox
ubuntu10.04 firefox 总卡死 换chromium好点,但只要开flash player还是会卡死,也不能用virtualbox了。