我们在 ubuntu xenial 上使用“无人值守升级”。
几天以来,“uu”无法自行更新:
手动运行:unattended-upgrades -d
消息:
...pkg 'powermgmt-base' not in allowed origin...
我的出身:
"${distro_id}:${distro_codename}-security";
"${distro_id}:${distro_codename}-updates";
编辑:
我找到了正确的来源:
"${distro_id}:${distro_codename}";
现在的问题是,“UU”无法自我更新:
Preparing to unpack .../unattended-upgrades_1.1ubuntu1.18.04.7~16.04.3_all.deb ...
SIGUSR1 received, will stop
SIGUSR1 received, will stop
SIGUSR1 received, will stop
SIGUSR1 received, will stop
有什么建议吗?
答案1
在中/etc/apt/apt.conf.d/50unattended-upgrades
,将以下设置更改为错误的:
// Split the upgrade into the smallest possible chunks so that
// they can be interrupted with SIGUSR1. This makes the upgrade
// a bit slower but it has the benefit that shutdown while a upgrade
// is running is possible (with a small delay)
Unattended-Upgrade::MinimalSteps "true";
答案2
这为我解决了这个问题:Unattended-Upgrade::MinimalSteps“false”;
这以前是“真的”!