package:samba:2:4.7.6+dfsg~ubuntu-0ubuntu2 Setting up samba (2:4.7.6+dfsg~ubuntu-0ubuntu2) ... Samba is not being run as an AD Domain Controller. Please ignore the following error about deb-systemd-helper not finding samba-ad-dc.service. invoke-rc.d: could not determine current runlevel invoke-rc.d: could not determine current runlevel Job for nmbd.service failed because a timeout was exceeded. See "systemctl status nmbd.service" and "journalctl -xe" for details. invoke-rc.d: initscript nmbd, action "start" failed. ● nmbd.service - Samba NMB Daemon Loaded: loaded (/lib/systemd/system/nmbd.service; disabled; vendor preset: enabled) Active: failed (Result: timeout) since Wed 2018-05-23 18:38:59 BST; 8ms ago Docs: man:nmbd(8) man:samba(7) man:smb.conf(5) Process: 1667 ExecStart=/usr/sbin/nmbd --foreground --no-process-group $NMBDOPTIONS (code=killed, signal=TERM) Main PID: 1667 (code=killed, signal=TERM) Status: "nmbd: No local IPv4 non-loopback interfaces available, waiting for interface ..." May 23 18:37:29 minecraft4cool-Inspiron-15-3567 systemd[1]: Starting Samba NMB Daemon... May 23 18:38:59 minecraft4cool-Inspiron-15-3567 systemd[1]: nmbd.service: Start operation timed out. Terminating. May 23 18:38:59 minecraft4cool-Inspiron-15-3567 systemd[1]: nmbd.service: Failed with result 'timeout'. May 23 18:38:59 minecraft4cool-Inspiron-15-3567 systemd[1]: Failed to start Samba NMB Daemon. dpkg: error processing package samba (--configure): installed samba package post-installation script subprocess returned error exit status 1