On 12/2/20 5:15 AM, Jamie Heilman wrote: > debconf: delaying package configuration, since apt-utils is not installed > (Reading database ... 25354 files and directories currently installed.) > Removing runit-systemd (2.1.2-36) ... > Selecting previously unselected package runit-run. > (Reading database ... 25348 files and directories currently installed.) > Preparing to unpack .../runit-run_2.1.2-38_all.deb ... > Unpacking runit-run (2.1.2-38) ... > Setting up runit-run (2.1.2-38) ... > (Reading database ... 25355 files and directories currently installed.) > Purging configuration files for runit-systemd (2.1.2-36) ... > > systemctl status shows disabled. This happens regardless of if > /etc/service is a symlink to /etc/runit/runsvdir/current or not (I > updated one of my systems just to see). > > I suspect you couldn't repro it becuase you didn't purge > runit-systemd, you probably only removed it, which clearly has > different logic in runit-systemd's postrm script:
Yes you are right, this is the issue: I see from you output that you have a hook or some setting that automatically purge packages after removal. Am I correct? The default setting in apt is that packages are not purged after removal; your sequence is particularly unfortunate here because runit-run and runit-systemd share the same conffiles, so you end up with runit-run in a weird state like installed, configured but purged at the same time, de facto overriding the "enable by default" setting of runit-run. This bug exists but only under a particular configuration of apt; changing the name of the service so that the purge of runit-systemd does not affect runit-run could be a fix, but then some other user may popup and complain that i broke their setup with an unnecessary change.. I think I will leave this bug open for a while (for reference to other users that may run into the same issue) but unfixed, as I don't have an idea for a fix that does not have the potential to break other people's stuff. I'm still open to suggestions and further discussion Lorenzo