@David, of course :

- Start from an up-to-date Ubuntu Bionic :

[root@uzimysut01 ~]# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 18.04.1 LTS
Release:        18.04
Codename:       bionic

- Downgrade linux-cloud-tools-common to version 4.15.0-34.37 :

[root@uzimysut01 ~]# apt install linux-cloud-tools-common=4.15.0-34.37
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be DOWNGRADED:
  linux-cloud-tools-common
0 upgraded, 0 newly installed, 1 downgraded, 0 to remove and 0 not upgraded.
Need to get 58.3 kB of archives.
After this operation, 7,168 B disk space will be freed.
Do you want to continue? [Y/n]
Get:1 https://repos.it.sncf.fr/ubuntu-security bionic-security/main amd64 
linux-cloud-tools-common all 4.15.0-34.37 [58.3 kB]
Fetched 58.3 kB in 0s (268 kB/s)
dpkg: warning: downgrading linux-cloud-tools-common from 4.15.0-36.39 to 
4.15.0-34.37
(Reading database ... 37537 files and directories currently installed.)
Preparing to unpack .../linux-cloud-tools-common_4.15.0-34.37_all.deb ...
Unpacking linux-cloud-tools-common (4.15.0-34.37) over (4.15.0-36.39) ...
Setting up linux-cloud-tools-common (4.15.0-34.37) ...
Processing triggers for ureadahead (0.100.0-20) ...
Processing triggers for man-db (2.8.3-2) ...

- Install unattended-upgrades :

[root@uzimysut01 ~]# apt install unattended-upgrades

- Ensure unattended-upgrades is active, and that it works in "shutdown
mode" :

[root@uzimysut01 ~]# grep Unattended-Upgrade /etc/apt/apt.conf.d/20auto-upgrades
APT::Periodic::Unattended-Upgrade "1";

[root@uzimysut01 ~]# grep InstallOnShutdown 
/etc/apt/apt.conf.d/50unattended-upgrades
Unattended-Upgrade::InstallOnShutdown "true";

- [optional] If you do not want to wait 30 minutes, modify the
TimeoutStopSec :

[root@uzimysut01 ~]# systemctl edit unattended-upgrades

[Service]
TimeoutStopSec=300

- Reboot :

[root@uzimysut01 ~]# systemctl reboot

- After reboot, dpkg is in a broken state :

[root@uzimysut01 ~]# apt dist-upgrade
E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct 
the problem.

- State of the linux-cloud-tools-common package :

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

Thanks a lot for your help.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1796376

Title:
  Bug #1739107 fix causes linux-cloud-tools-common not to be upgradable
  with unattended-upgrades on shutdown mode

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1796376/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to