[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: unattended-upgrades does not install upgrades on shutdown



On 14/10/19 6:16 am, Yvan Masson wrote:
Hi,

I forgot to tell that I configured another important thing, in /etc/systemd/logind.conf:
…
InhibitDelayMaxSec=600
…
Which should let enough time to do the upgrades.

Any hint is very welcome!


Le 12/10/2019 à 18:45, Yvan Masson a écrit :
Hi list,

I configured some Buster desktops in a school to upgrade automatically on shutdown via unattended-upgrades. I am almost sure it worked at first but it does not anymore. I would really appreciate any suggestion as I already spent a few hours on this issue without any result.

Symptoms are: shutdown is long (more than 2 minutes), plymouth screen shows that unattended-upgrade is running, but no packages are upgraded.

I created /etc/apt/apt.conf.d/51unattended-upgrades-local to store my settings (/etc/apt/apt.conf.d/50unattended-upgrades has not been modified):
     Unattended-Upgrade::Origins-Pattern {
       "origin=Debian,codename=buster-updates";
       "origin=Debian,codename=buster,label=Debian";
       "origin=Debian,codename=buster,label=Debian-Security";
     };
     Unattended-Upgrade::MinimalSteps "false";
     Unattended-Upgrade::InstallOnShutdown "true";
     Unattended-Upgrade::Verbose "true";
     Unattended-Upgrade::Debug "true";

I created /etc/apt/apt.conf.d/10periodic:
     APT::Periodic::Unattended-Upgrade "1";
     APT::Periodic::Update-Package-Lists "1";
     APT::Periodic::Download-Upgradeable-Packages "1";
     APT::Periodic::AutocleanInterval "7";

For /var/log/unattended-upgrades/unattended-upgrades-shutdown.log, see
https://paste.debian.net/1106125/
For /var/log/unattended-upgrades/unattended-upgrades.log, see
https://paste.debian.net/1106126/
/var/log/unattended-upgrades/unattended-upgrades-dpkg.log is empty.

As you can see, many upgrades are available. Those packages have already been downloaded. Where could be my mistake? Could this be a bug of the script when too many packages are upgradable (because yes it has worked at the very beginning)?

Best regards,
Yvan







Perhaps there was a larger than normal upgrade to exceeded to 10mins delay, and it's all stalled


Suggest a manual upgrade to see what results you get.


--
Keith Bainbridge

ke1th3216@gmail.com
+61 (0)447 667 468


Reply to: