Package: isc-dhcp-server
Version: 4.4.3-P1-1.1
Severity: important
X-Debbugs-Cc: [email protected]

Installation breaks on /var/lib/dpkg/info/isc-dhcp-server.postinst

Line 74:
test ! -x /sbin/restorecon || restorecon /var/lib/dhcp/dhcpd.leases

# echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
# whereis restorecon
restorecon: /usr/sbin/restorecon /usr/share/man/man8/restorecon.8.gz

restorecon is not in /sbin

Editing line 74 and removing the path it works:
test ! -x restorecon || restorecon /var/lib/dhcp/dhcpd.leases



-- System Information:
Debian Release: 11.6
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 
'testing'), (500, 'stable')
Architecture: arm64 (aarch64)

Kernel: Linux 5.18.0-odroid-arm64 (SMP w/4 CPU threads; PREEMPT)
Locale: LANG=es_ES.UTF-8, LC_CTYPE=es_ES.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: SELinux: enabled - Mode: Permissive - Policy name: default

Versions of packages isc-dhcp-server depends on:
ii  debconf [debconf-2.0]  1.5.77
ii  debianutils            4.11.2
ii  libc6                  2.36-8
ii  lsb-base               11.1.0

Versions of packages isc-dhcp-server recommends:
ii  isc-dhcp-common  4.4.1-2.3+deb11u1
ii  policycoreutils  3.1-3

Versions of packages isc-dhcp-server suggests:
pn  ieee-data             <none>
pn  isc-dhcp-server-ldap  <none>
pn  policykit-1           <none>

-- debconf information excluded

Reply via email to