[Bug 2006589] Re: Anacron service and timer disabled after upgrading from 2.3-33
Adrien Nader
2006589 at bugs.launchpad.net
Wed Feb 8 21:34:16 UTC 2023
I'm attaching a patch from 2.3.26ubuntu1 (kinetic's) to
2.3-36ubuntu2(~ppa2) which uses a heuristic to re-enable the service
and/or the timer if they were previously enabled. There are comments
inside the postinst/preinst scripts.
A typical test I used on my machine looked like the following:
sudo dpkg -i ../lp/anacron_2.3-33ubuntu1_amd64.deb
sudo systemctl enable anacron.timer
sudo systemctl disable anacron.service
sudo dpkg -i ../anacron_2.3-36ubuntu2\~ppa2_amd64.deb
The following displays the enabled/disabled status:
systemctl show --property=UnitFileState anacron.timer
systemctl show --property=UnitFileState anacron.service
As I mention in my changes, systemctl show/status have side-effects and
I have no idea why.
** Patch added: "anacron_2.3-36ubuntu1-to-2.3-36ubuntu2~ppa2.diff"
https://bugs.launchpad.net/ubuntu/+source/anacron/+bug/2006589/+attachment/5645637/+files/anacron_2.3-36ubuntu1-to-2.3-36ubuntu2~ppa2.diff
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to anacron in Ubuntu.
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 foundations-bugs
mailing list