答案1
这是一个低优先级问题,因此您可以通过指定中或更高来跳过它:
dpkg-reconfigure -pmedium unattended-upgrades
APT::Periodic::Unattended-Upgrade
默认答案是in的当前值/etc/apt/apt.conf.d/20auto-upgrades
,如果未设置,则为“是”。
答案2
sudo EDITOR='sed -Ei "
s|unattended-upgrades/enable_auto_updates=.+|unattended-upgrades/enable_auto_updates=\"no\"|
"' dpkg-reconfigure -f editor unattended-upgrades