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

Re: unattended-upgrades does not install upgrades on shutdown

Le 14/10/2019 à 04:22, Keith Bainbridge a écrit :
On 14/10/19 6:16 am, Yvan Masson wrote:

I forgot to tell that I configured another important thing, in /etc/systemd/logind.conf:
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 {
     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
For /var/log/unattended-upgrades/unattended-upgrades.log, see
/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,

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.

You were right Keith: after applying some updates manually, remaining updates are properly installed with unattended-upgrade… Now I need to understand what was

Reply to: