我有一些有unattended-upgrades设置的Ubuntu机器。 我正在运行11.10,不希望更新到12.04。 如何从命令行禁用升级对话框(在启动机器后仍会popup)?
我想你可以编辑/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
你可能想把它设置为从不。
我发现这给了更好的粒度
/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";