[Bug 2006589] Re: Anacron service and timer disabled after upgrading from 2.3-33

Steve Langasek 2006589 at bugs.launchpad.net
Tue Feb 14 00:08:35 UTC 2023


+        if [ -n "${units_to_enable}" ]; then
+                echo "Some systemd units were probably just disabled mistakenly by anacron 2.3-33; re-enabling ${units_to_enable}"
+                for unit in ${units_to_enable}; do
+                        systemctl enable "${unit}" || true
+                done
+        fi
+fi


Is there any deb-systemd-helper state to worry about here in addition to the systemd state?

WRT recording results in preinst and acting on them in postinst, if this
is necessary, please use /var/lib/ not /run.  It is possible under
undesirable circumstances that a reboot happens between the preinst and
the postinst being executed.

-- 
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/2006589

Title:
  Anacron service and timer disabled after upgrading from 2.3-33

Status in anacron package in Ubuntu:
  Confirmed

Bug description:
  As hinted by https://lists.debian.org/debian-devel-
  announce/2022/11/msg00001.html , anacron 2.3-33's packaging has a bug
  which disables both the timer and service when its postrm script is
  invoked and that includes upgrades from this package.

  We need to work-around this issue since it is the version in kinetic.

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




More information about the Ubuntu-sponsors mailing list