Bug#1009963: deb-systemd-helper: Misleading error message in "sub enable" if systemctl fails

Michael Biebl biebl at debian.org
Thu Apr 21 17:13:12 BST 2022


Am 21.04.22 um 12:33 schrieb Sascha Herrmann:
> Package: init-system-helpers
> Version: 1.60
> Severity: normal
> X-Debbugs-Cc: sh-bugs at ps.nvbi.de
> 
> Dear Maintainer,
> 
> the code line 'or error("systemctl preset failed on $scriptname: $!");' prints
> some misleading information, if the systemctl command fails and returns an
> return value != 0. When using the systemctl package (systemctl-replacement),
> some packages fail to setup their service files, systemctl returns the error
> code 1 which results in a message like
> 
> "/usr/bin/deb-systemd-helper: error: systemctl preset failed on keyboard-setup.service: No such file or directory"
> 

So /usr/bin/systemctl is provided by the "systemctl" package?
Can you post the output of
apt-cache policy systemctl

Please uninstall the systemctl package and test if the failure is gone.

Regards,
Michael

-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20220421/e220525c/attachment.sig>


More information about the Pkg-systemd-maintainers mailing list