Comment 19 for bug 1739107

Revision history for this message
Guillaume Penin (guillaume-penin) wrote :

Hi all,

I suspect that this fix is now preventing unattended-upgrades (in shutdown down) to upgrade the package linux-cloud-tools-common.

The update process hangs during "Preparing to unpack". The server restarts after the unattended-upgrades service timeout expires.

Package state after reboot :

iFR linux-cloud-tools-common 4.15.0-34.37 all Linux kernel version specific cloud tools for version 4.15.0

The current impact is very important as all security updates are blocked until you manually fix each server with :

dpkg --configure -a
apt install --only-upgrade linux-cloud-tools-common

As a simple straightforward fix, replacing :

Before=shutdown.target cloud-init-local.service walinuxagent.service

with :

Before=shutdown.target walinuxagent.service

makes the package upgradable during shutdown.

I have reported this bug in another bug report : https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1796376

Thanks for your help.