Package: isc-dhcp-server
Version: 4.4.1-2
Severity: normal

Apologies if this report turns out to be a duplicate; I did look through
bugs.d.o (and those PRs listed by reportbug) but didn't find an existing
one for this issue.

The problem is that the isc-dhcp-server package installation fails in
it's last step:

  (#) root@master:~
  >>> apt-get install isc-dhcp-server -y
  Reading package lists... Done
  Building dependency tree       
  Reading state information... Done
  Suggested packages:
    policykit-1 isc-dhcp-server-ldap
  The following NEW packages will be installed:
    isc-dhcp-server
  0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
  Need to get 0 B/548 kB of archives.
  After this operation, 1,468 kB of additional disk space will be used.
  Preconfiguring packages ...
  Selecting previously unselected package isc-dhcp-server.
  (Reading database ... 56261 files and directories currently installed.)
  Preparing to unpack .../isc-dhcp-server_4.4.1-2_amd64.deb ...
  Unpacking isc-dhcp-server (4.4.1-2) ...
  Processing triggers for systemd (240-2) ...
  Processing triggers for man-db (2.8.4-3) ...
  Setting up isc-dhcp-server (4.4.1-2) ...
  Generating /etc/default/isc-dhcp-server...
  restorecon: lstat(/var/lib/dhcp/dhcpd.leases) failed: No such file or 
directory
  dpkg: error processing package isc-dhcp-server (--configure):
   installed isc-dhcp-server package post-installation script subprocess 
returned error exit status 255
  Processing triggers for systemd (240-2) ...
  Errors were encountered while processing:
   isc-dhcp-server
  needrestart is being skipped since dpkg has failed
  E: Sub-process /usr/bin/dpkg returned an error code (1)
  Disabling copy-on-write on /var/cache/apt/pkgcache.bin

This is easily fixed with "touch /var/lib/dhcp/dhcpd.leases" followed by a
reinvokation of apt-get:

  (#) root@master:~
  >>> touch /var/lib/dhcp/dhcpd.leases; apt-get install isc-dhcp-server
  Reading package lists... Done
  Building dependency tree       
  Reading state information... Done
  isc-dhcp-server is already the newest version (4.4.1-2).
  0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
  1 not fully installed or removed.
  After this operation, 0 B of additional disk space will be used.
  Do you want to continue? [Y/n] y
  Setting up isc-dhcp-server (4.4.1-2) ...
  Job for isc-dhcp-server.service failed because the control process exited 
with error code.
  See "systemctl status isc-dhcp-server.service" and "journalctl -xe" for 
details.
  invoke-rc.d: initscript isc-dhcp-server, action "start" failed.
  [...expected service startup errors regarding lack of configuration...]

-- System Information:
Debian Release: buster/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 4.19.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_GB.UTF-8 (charmap=UTF-8)
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.69
ii  debianutils            4.8.6
ii  libc6                  2.28-2
ii  libdns-export1104      1:9.11.5.P1+dfsg-1
ii  libirs-export161       1:9.11.5.P1+dfsg-1
ii  libisc-export1100      1:9.11.5.P1+dfsg-1
ii  lsb-base               10.2018112800

Versions of packages isc-dhcp-server recommends:
ii  isc-dhcp-common  4.4.1-2
ii  policycoreutils  2.8-1

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

-- debconf information:
  isc-dhcp-server/interfaces:

Reply via email to