[From nobody Sat Sep 19 16:35:06 2026
Received: (at submit) by bugs.debian.org; 5 Sep 2026 17:03:48 +0000
X-Spam-Checker-Version: SpamAssassin 4.0.1-bugs.debian.org_2005_01_02
 (2024-03-25) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-129.1 required=4.0 tests=ALL_TRUSTED,BAYES_00,
 BODY_INCLUDES_PACKAGE,BODY_INCLUDES_SEVERITY,DKIMWL_WL_HIGH,
 DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FROMDEVELOPER,HAS_PACKAGE,
 MD5_SHA1_SUM,PGPSIGNATURE,SPF_HELO_NONE,SPF_PASS,
 USER_IN_DKIM_WELCOMELIST autolearn=ham autolearn_force=no
 version=4.0.1-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 33; hammy, 150; neutral, 130; spammy,
 0. spammytokens:
 hammytokens:0.000-+--Hx-spam-relays-external:sk:stravin,
 0.000-+--H*RT:sk:stravin, 0.000-+--Hx-spam-relays-external:311,
 0.000-+--H*RT:311, 0.000-+--H*RT:108
Return-path: &lt;terceiro@debian.org&gt;
Received: from stravinsky.debian.org ([2001:41b8:202:deb::311:108]:56382)
 by buxtehude.debian.org with esmtps
 (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
 (Exim 4.96) (envelope-from &lt;terceiro@debian.org&gt;) id 1x2tnw-000VUi-2i
 for submit@bugs.debian.org; Sat, 05 Sep 2026 17:03:48 +0000
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debian.org; 
 s=smtpauto.stravinsky;
 h=X-Debian-User:Content-Type:MIME-Version:Message-ID:
 Subject:To:From:Date:Reply-To:Cc:Content-Transfer-Encoding:Content-ID:
 Content-Description:In-Reply-To:References;
 bh=bCG3tq3oQpNIT+WJwrmihDtjhQAIamZKacqqFMBFfLU=; b=oVtjAw+9i0/3M+ikj/AjZXiH6Z
 VOt3UPCdO/7N83BISLQgKWUBBZdKUFGWWipZgKWjgClSt9yzN8Z/qGHsqk4naOvTJNe85WChdkzz/
 oV2XvQWX+mSb2DKOJcLyW8/AtS+npmJVo2YMYJl9cqHkfeaakMrmwEdG8AspkYkSQw+yjmG5W5/Y3
 c2OLVEzoKM4JDEfzKgBIDOQ6T6qgaYPMJSAAS8Lab4UAO6HanRGbPvISxRHPhaTmpSabHlY3qhNBP
 bo49+5M2NwK/PGuLq7WXIxAplb9Fzz+Xb+ooWujv28QK1WN+dy+YwHwmoIpPop26M62A/P2OpT9nR
 JJnpejkA==;
Received: from authenticated-user by stravinsky.debian.org with esmtpsa
 (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
 (Exim 4.96) (envelope-from &lt;terceiro@debian.org&gt;)
 id 1x2tnv-00077a-0v; Sat, 05 Sep 2026 17:03:47 +0000
Received: from localhost (ava [IPv6:2804:14d:7224:88bd:b38e:cd50:1e1d:e09a])
 by vps.terceiro.xyz (Postfix) with ESMTPSA id 95B5E40100;
 Sat, 05 Sep 2026 14:03:44 -0300 (-03)
Date: Sat, 5 Sep 2026 14:03:43 -0300
From: Antonio Terceiro &lt;terceiro@debian.org&gt;
To: Debian Bug Tracking System &lt;submit@bugs.debian.org&gt;
Subject: systemd: fails to upgrade on Debian CI: Can't exec &quot;kill&quot;: No such
 file or directory
Message-ID: &lt;apxLbB58C59a-WcK@debian.org&gt;
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256;
 protocol=&quot;application/pgp-signature&quot;; boundary=&quot;pbybjnID7TiudeqJ&quot;
Content-Disposition: inline
X-Reportbug-Version: 13.2.0+nmu1
X-Debian-User: terceiro
Delivered-To: submit@bugs.debian.org

--pbybjnID7TiudeqJ
Content-Type: multipart/mixed; boundary=&quot;QbbloiYil225KKAG&quot;
Content-Disposition: inline

--QbbloiYil225KKAG
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Package: init-system-helpers
Version: 1.69+nmu1
=20
Severity: serious
Justification: non-declared dependency; fails on systemd upgrades if procps=
 is missing

Dear Maintainer,

I have been see has been causing this issue all over jobs on Debian
CI: when upgrading from testing, it causes the apt upgrade to fail like
this:

----------------8&lt;----------------8&lt;----------------8&lt;-----------------
Setting up systemd (262~rc1-2) ...
Can't exec &quot;kill&quot;: No such file or directory at /usr/bin/deb-systemd-invoke=
 line 179.
Job for systemd-journald.service failed because the control process exited =
with error code.
See &quot;systemctl status systemd-journald.service&quot; and &quot;journalctl -xeu system=
d-journald.service&quot; for details.
Job for systemd-networkd.service failed because the control process exited =
with error code.
See &quot;systemctl status systemd-networkd.service&quot; and &quot;journalctl -xeu system=
d-networkd.service&quot; for details.
Setting up systemd-resolved (262~rc1-2) ...
Could not execute systemctl:  at /usr/bin/deb-systemd-invoke line 148.
----------------8&lt;----------------8&lt;----------------8&lt;-----------------

I can reproduce this locally with autopkgtest, like this:

autopkgtest --no-built-binaries --apt-upgrade --add-apt-release=3Dunstable =
--pin-packages=3Dunstable=3Dsrc:systemd debian-security-support  -- incus a=
utopkgtest/debian/testing/arm64

This is caused by an implicit dependeny on procps (for /usr/bin/kill).
The code around deb-systemd-invoke line 179 is:

178     if ($is_system) {
179         system('kill', '-s', $signal, '1');
180     } else {
181         system('systemctl', '--quiet', 'kill', '--kill-whom=3Dmain', '-=
-signal', $signal, 'user@*.servic    e');
182     }

The attached patch (against git master) fixes the issue, i.e. if I have
the package with this patch installed, then upgrading systemd works.

--QbbloiYil225KKAG
Content-Type: text/x-diff; charset=us-ascii
Content-Disposition: attachment;
	filename=0001-deb-systemd-invoke-don-t-assume-kill-is-available.patch
Content-Transfer-Encoding: quoted-printable

=46rom 9ef0e143ee5a68620f2bb98e68e6c3ee037620b3 Mon Sep 17 00:00:00 2001
=46rom: Antonio Terceiro &lt;terceiro@debian.org&gt;
Date: Sat, 5 Sep 2026 13:46:50 -0300
Subject: [PATCH] deb-systemd-invoke: don't assume `kill` is available

/usr/bin/kill is provided by procps, which is not a dependency, and
might not be installed. For example, recent Debian CI containers do not
include `procps`, and this revealed an implicit dependency in procps by
init-system-helpers.

Given Perl has a kill() function, we can just use that instead of
shelling out to /usr/bin/kill.
---
 script/deb-systemd-invoke | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/script/deb-systemd-invoke b/script/deb-systemd-invoke
index c94d47a..adfac93 100755
--- a/script/deb-systemd-invoke
+++ b/script/deb-systemd-invoke
@@ -371,7 +371,7 @@ sub reload_reexec_signal {
     }
=20
     if ($is_system) {
-        system('kill', '-s', $signal, '1');
+        kill($signal, 1);
     } else {
         system('systemctl', '--quiet', 'kill', '--kill-whom=3Dmain', '--si=
gnal', $signal, 'user@*.service');
     }
--=20
2.53.0


--QbbloiYil225KKAG--

--pbybjnID7TiudeqJ
Content-Type: application/pgp-signature; name=signature.asc

-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEEst7mYDbECCn80PEM/A2xu81GC94FAmqcS2wACgkQ/A2xu81G
C94+YRAA384DMktEYxOlsJ12d8/4hWWm6uwFIg+7BmtxmdHXkVqB2hFUNV0ZgNGS
GX6/bp8zBL8WRzlChUg7DBhmd1sz2EIgwREHxRzfsO9cWMeK9UheWCPyX0W00Tb8
EcmekXCHz62Hw6Qtr63e6c28yjKk4Zb3JqmddH9fz3KNBeaXkxUgUBkpV0/dorA4
bndSXLd5wx90X3Xeo4+o8qz2zwa3PnGmoAscMe+fyQ7a8GTF7huZDgdPyA1cCyqs
d80/ov8W0AVQ1zv8njUp3dIV0wiIaEhv25f8ZOq2IIeOPYgJUI0Cs73GeydyxOwd
7JI5AMEMzbWBrLWjk76tYu0S98dxv8JIcZltgGeY3A0znEK5wGA4qfcimLM7YG82
20sP5hCqbs8isXizbFwX96BZ3jXlQ1GaTkjsGv3AaM4nd3a+DBk7foHH9imvJDMc
GxH67RcRlfUeMRxxauWsvX+RIZbz7kM/7P7byqJtjK3/J3BxMHMqmYo0Xs1ZxGI1
hFV8LpqD6oW8sydzDg507bHgB1jchQWP5FphVFjP3YntNP7Dxu6MNiJ9TiS7+PcN
ki8/KNZbIgLIMDgCmJ1+7/ordJymloV7sg+Pze3TDDp9Zawe56HeWwOmwM0lULjf
wDQefCyMa9qKREZDw7O+wCAc6btjuaQZJcKu8TkglcaNqeY2cj4=
=DHJi
-----END PGP SIGNATURE-----

--pbybjnID7TiudeqJ--
]