Comment 28 for bug 2006589

Revision history for this message
Adrien Nader (adrien) wrote :

Sorry, I hadn't yet done the verification step after proposed. Here is the log for a kinetic LXD which installs anacron and then updates it to the version in -proposed ((2.3-33ubuntu2) over (2.3-33ubuntu1)).

As can be seen, the service and timer are enabled both before and after the upgrade. We can also see that the work-around I added is triggered and points out that the service and timer have been disabled until the work-around kicks in.

======

RUN lxc launch ubuntu:kinetic anacron-sru
Creating anacron-sru
Starting anacron-sru
RUN@anacron-sru sh -c apt-get -qq update >/dev/null
RUN@anacron-sru apt-get -y -qq -o=Dpkg::Use-Pty=0 upgrade --autoremove
(Reading database ... 34189 files and directories currently installed.)
Removing libfreetype6:amd64 (2.12.1+dfsg-3ubuntu0.1) ...
Processing triggers for libc-bin (2.36-0ubuntu4) ...
RUN@anacron-sru apt-get -y install anacron
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Suggested packages:
  default-mta | mail-transport-agent
The following NEW packages will be installed:
  anacron
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 25.9 kB of archives.
After this operation, 100 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu kinetic/main amd64 anacron amd64 2.3-33ubuntu1 [25.9 kB]
Fetched 25.9 kB in 0s (274 kB/s)
Selecting previously unselected package anacron.
(Reading database ... 34183 files and directories currently installed.)
Preparing to unpack .../anacron_2.3-33ubuntu1_amd64.deb ...
Unpacking anacron (2.3-33ubuntu1) ...
Setting up anacron (2.3-33ubuntu1) ...
Created symlink /etc/systemd/system/multi-user.target.wants/anacron.service → /lib/systemd/system/anacron.service.
Created symlink /etc/systemd/system/timers.target.wants/anacron.timer → /lib/systemd/system/anacron.timer.
Processing triggers for man-db (2.10.2-2) ...
Scanning processes...

No services need to be restarted.

No containers need to be restarted.

No user sessions are running outdated binaries.

No VM guests are running outdated hypervisor (qemu) binaries on this host.
RUN@anacron-sru sh -c echo deb http://fr.archive.ubuntu.com/ubuntu kinetic-proposed main restricted >> /etc/apt/sources.list
RUN@anacron-sru sh -c apt-get -qq update >/dev/null
RUN@anacron-sru apt-get install anacron
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Suggested packages:
  default-mta | mail-transport-agent
The following packages will be upgraded:
  anacron
1 upgraded, 0 newly installed, 0 to remove and 24 not upgraded.
Need to get 26.7 kB of archives.
After this operation, 4096 B of additional disk space will be used.
Get:1 http://fr.archive.ubuntu.com/ubuntu kinetic-proposed/main amd64 anacron amd64 2.3-33ubuntu2 [26.7 kB]
Fetched 26.7 kB in 0s (292 kB/s)
(Reading database ... 34202 files and directories currently installed.)
Preparing to unpack .../anacron_2.3-33ubuntu2_amd64.deb ...
Warning: anacron.service will be disabled during the upgrade from anacron 2.3-33ubuntu1; we'll do our best to re-enable it (currently points to `/lib/systemd/system/anacron.service')
Warning: anacron.timer will be disabled during the upgrade from anacron 2.3-33ubuntu1; we'll do our best to re-enable it (currently points to `/lib/systemd/system/anacron.timer')
Unpacking anacron (2.3-33ubuntu2) over (2.3-33ubuntu1) ...
Setting up anacron (2.3-33ubuntu2) ...
Warning: anacron.service was probably disabled moments ago during the upgrade from anacron 2.3-33ubuntu1; re-enabling now (pointing to `/lib/systemd/system/anacron.service'
Warning: anacron.timer was probably disabled moments ago during the upgrade from anacron 2.3-33ubuntu1; re-enabling now (pointing to `/lib/systemd/system/anacron.timer'
Processing triggers for man-db (2.10.2-2) ...
Scanning processes...

No services need to be restarted.

No containers need to be restarted.

No user sessions are running outdated binaries.

No VM guests are running outdated hypervisor (qemu) binaries on this host.
RUN@anacron-sru systemctl show anacron.service --property=UnitFileState
UnitFileState=enabled
RUN@anacron-sru systemctl show anacron.timer --property=UnitFileState
UnitFileState=enabled