Ubuntu:远程禁用升级?

Ubuntu:远程禁用升级?

我已设置好多台 Ubuntu 机器unattended-upgrades。我正在运行 11.10,但不想更新到 12.04。如何从命令行禁用升级对话框(启动机器后仍会弹出)?

答案1

我认为你可以编辑/etc/update-manager/release-upgrades

> # default behavior for the release upgrader
> #
> 
> [DEFAULT]
> # default prompting behavior, valid options:
> #  never  - never prompt for a new distribution version
> #  normal - prompt if a new version of the distribution is available
> #  lts    - prompt only if a LTS version of the distribution is available Prompt=normal
> Prompt=never

您可能想将其设置为从不。

答案2

我发现这提供了更好的粒度

/etc/apt/apt.conf.d/10periodic

将所有选项设置为 0 以禁用自动更新,但您可以根据需要进行调整:

APT::Periodic::Update-Package-Lists "0";
APT::Periodic::Download-Upgradeable-Packages "0";
APT::Periodic::AutocleanInterval "0";
APT::Periodic::Unattended-Upgrade "0";

相关内容