2016-06-21 70 views
2

好吧,我们将Firefox 47降级为以前的稳定版本。但是Firefox每天更新到47!有什么办法可以完全停止Ubuntu服务器14.04(没有GUI,只有终端)的Firefox更新?禁用Firefox更新Ubuntu服务器

我们需要的版本< 47,因为硒有与Firefox版本问题47

已经尝试过: 纳米/usr/lib/firefox/defaults/pref/channel-prefs.js 纳米/ usr/lib目录/火狐/ browser/defaults/preferences/nano syspref.js nano /usr/lib/firefox/browser/defaults/preferences/user.js

注释掉了这个://pref("app.update.channel“,”发布”);并输入以下内容:pref(“app.update.enabled”,false); pref(“app.update.silent”,false);

我还在〜/ .mozilla中创建了一个配置文件夹,并添加了以下这些文本文件://关闭应用程序更新:user_pref(“app.update.enabled”,false);

我也尝试从iptables阻止mozilla.org,但这也没有帮助。

回答

2

要保持火狐:

$ dpkg --get-selections | grep firefox 
firefox           install 
firefox-locale-en        install 
firefox-locale-es        install 
unity-scope-firefoxbookmarks     install 

[13:17:03][[email protected]] 
[~] 
$ echo firefox hold | sudo dpkg --set-selections 

[13:17:20][[email protected]] 
[~] 
$ dpkg --get-selections | grep firefox 
firefox           hold 
firefox-locale-en        install 
firefox-locale-es        install 
unity-scope-firefoxbookmarks     install 

而要恢复通话:

[13:17:24][[email protected]] 
[~] 
$ sudo apt-mark unhold firefox 
Canceled hold on firefox. 

[13:17:34][[email protected]] 
[~] 
$ dpkg --get-selections | grep firefox 
firefox           install 
firefox-locale-en        install 
firefox-locale-es        install 
unity-scope-firefoxbookmarks     install 
+1

优秀。谢谢你现在完美的工作 –

+0

为什么你还没有'firefox-locale-en&firefox-locale-es'呢? – bugwheels94

+0

没有特别的理由。无论如何,较新的语言包都是向后兼容的。 –

1

如果通过的dpkg或apt安装你的Firefox,你可以这样做:

echo "firefox hold" | sudo dpkg --set-selections 

然后验证持有:

dpkg --get-selections 

然后你可以尝试用apt来更新firefox,通常它不会。

+0

这与我的回答有什么不同? –

+0

这不是:)我在同一时间写过><你的答案也更详细。 –

+0

啊,我看到了,我的不好。 –