相关疑难解决方法(0)

我如何告诉 apt 永远不要升级特定的软件包?

我更喜欢安装我自己的 Firefox 版本。我如何告诉 apt 永远不要尝试升级它,即使我稍后输入“apt-get update ; apt-get upgrade”?

编辑:好的,所以dpkg -l firefox打印这个:

ii  firefox   3.0.3+nobinonly-0ubuntu2   meta package for the popular mozilla web browser
Run Code Online (Sandbox Code Playgroud)

所以我将此添加到我的首选项中:

Package: firefox
Pin: version 3.*
Pin-Priority: 1000
Run Code Online (Sandbox Code Playgroud)

但 apt-get upgrade 仍然打印:

The following packages have been kept back:
    (nothing related to firefox)
The following packages will be upgraded:
    (blah blah blah)
    firefox firefox-3.0 firefox-3.0-branding firefox-3.0-gnome-support 
    firefox-gnome-support
    (blah blah blah)
Run Code Online (Sandbox Code Playgroud)

我也尝试制作包“ *firefox*”,但这也不起作用。

linux apt

7
推荐指数
3
解决办法
1626
查看次数

标签 统计

apt ×1

linux ×1