Ubuntu-16.04
無人值守升級無法自行更新:收到 SIGUSR1,將停止
我們在 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
有什麼建議嗎?
在
/etc/apt/apt.conf.d/50unattended-upgrades
中,將以下設置更改為false:// 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";
這為我解決了這個問題:Unattended-Upgrade::MinimalSteps “false”;
這是以前的“真實”!