有没有办法让一个有缺陷的包在 debian Stretch 上工作?

有没有办法让一个有缺陷的包在 debian Stretch 上工作?

我需要isc-dhcp-server在 debianstretch 上安装,但无法正确安装该软件包。

apt-listbugs list isc-dhcp-server

 #867362 - isc-dhcp-server: DHCP server does not start after upgrade to Stretch

安装包后

# systemctl status isc-dhcp-server

● isc-dhcp-server.service - LSB: DHCP server
   Loaded: loaded (/etc/init.d/isc-dhcp-server; generated; vendor preset: enabled)
   Active: failed (Result: exit-code) since Thu 2017-10-05 11:47:47 UTC; 2min 52s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 5416 ExecStart=/etc/init.d/isc-dhcp-server start (code=exited, status=1/FAILURE)

oct. 05 11:47:45 stretch isc-dhcp-server[5416]: Launching both IPv4 and IPv6 servers (please configure INTERFACES in /etc/default/isc
oct. 05 11:47:45 stretch dhcpd[5427]: irs_resconf_load failed: 59.
oct. 05 11:47:45 stretch dhcpd[5427]: Unable to set resolver from resolv.conf; startup continuing but DDNS support may be affected
oct. 05 11:47:45 stretch dhcpd[5427]: Wrote 0 leases to leases file.
oct. 05 11:47:47 stretch isc-dhcp-server[5416]: Starting ISC DHCPv4 server: dhcpdcheck syslog for diagnostics. ... failed!
oct. 05 11:47:47 stretch isc-dhcp-server[5416]:  failed!
oct. 05 11:47:47 stretch systemd[1]: isc-dhcp-server.service: Control process exited, code=exited status=1
oct. 05 11:47:47 stretch systemd[1]: Failed to start LSB: DHCP server.
oct. 05 11:47:47 stretch systemd[1]: isc-dhcp-server.service: Unit entered failed state.
oct. 05 11:47:47 stretch systemd[1]: isc-dhcp-server.service: Failed with result 'exit-code'.

安装包从源头(4.3.6版本)无法解决问题,有办法isc-dhcp-server在debianstretch上安装吗?

journalctl | grep isc-dhcp-server

oct. 05 11:45:09 stretch isc-dhcp-server[5288]: Launching both IPv4 and IPv6 servers (please configure INTERFACES in /etc/default/isc-dhcp-server if you only want one or the other).
oct. 05 11:45:12 stretch isc-dhcp-server[5288]: Starting ISC DHCPv4 server: dhcpdcheck syslog for diagnostics. ... failed!
oct. 05 11:45:12 stretch isc-dhcp-server[5288]:  failed!
oct. 05 11:45:12 stretch systemd[1]: isc-dhcp-server.service: Control process exited, code=exited status=1
oct. 05 11:45:11 stretch audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=isc-dhcp-server comm="systemd" exe="/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'
oct. 05 11:45:12 stretch systemd[1]: isc-dhcp-server.service: Unit entered failed state.
oct. 05 11:45:12 stretch systemd[1]: isc-dhcp-server.service: Failed with result 'exit-code'.
oct. 05 11:47:45 stretch isc-dhcp-server[5416]: Launching both IPv4 and IPv6 servers (please configure INTERFACES in /etc/default/isc-dhcp-server if you only want one or the other).
oct. 05 11:47:47 stretch isc-dhcp-server[5416]: Starting ISC DHCPv4 server: dhcpdcheck syslog for diagnostics. ... failed!
oct. 05 11:47:47 stretch isc-dhcp-server[5416]:  failed!
oct. 05 11:47:47 stretch systemd[1]: isc-dhcp-server.service: Control process exited, code=exited status=1
oct. 05 11:47:47 stretch audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=isc-dhcp-server comm="systemd" exe="/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'
oct. 05 11:47:47 stretch systemd[1]: isc-dhcp-server.service: Unit entered failed state.
oct. 05 11:47:47 stretch systemd[1]: isc-dhcp-server.service: Failed with result 'exit-code'.

systemctl list-units --state=failed

  UNIT                    LOAD   ACTIVE SUB    DESCRIPTION                                        
● dnsmasq.service         loaded failed failed dnsmasq - A lightweight DHCP and caching DNS server
● isc-dhcp-server.service loaded failed failed LSB: DHCP server                                   

答案1

我一直在 Stretch 中使用官方 ISC DHCPd Debian 软件包没有systemd,并在 Debian 中使用它,并自 Debian 6 起升级特定的 DHCP 集群,没有遇到太多麻烦。

至于Stretch,我已经在上面使用isc-dhcp一年多了,我认为,因为我之前迁移是为了利用新版本,而不是组装我自己的 deb。 (我有一些与 Windows DHCP 客户端相关的原因)

通常这些类型的服务应该单独存在于一台机器中,因此我建议破例并使用带有 sysV init 实用程序的 Debian 服务器。

为此,您可以这样做:

sudo apt-get install  sysvinit-core sysvinit 

相关内容