package:samba:2:4.7.6+dfsg~ubuntu-0ubuntu2.2 Setting up samba (2:4.7.6+dfsg~ubuntu-0ubuntu2.2) ... 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. Job for smbd.service failed because a timeout was exceeded. See "systemctl status smbd.service" and "journalctl -xe" for details. invoke-rc.d: initscript smbd, action "restart" failed. ● smbd.service - Samba SMB Daemon Loaded: loaded (/lib/systemd/system/smbd.service; enabled; vendor preset: enabled) Active: failed (Result: timeout) since Wed 2018-08-15 09:11:37 EDT; 1s ago Docs: man:smbd(8) man:samba(7) man:smb.conf(5) Process: 17311 ExecStart=/usr/sbin/smbd --foreground --no-process-group $SMBDOPTIONS (code=killed, signal=TERM) Main PID: 17311 (code=killed, signal=TERM) Status: "smbd: ready to serve connections..." Aug 15 09:09:36 Thinkpad systemd[1]: Starting Samba SMB Daemon... Aug 15 09:11:06 Thinkpad systemd[1]: smbd.service: Start operation timed out. Terminating. Aug 15 09:11:35 Thinkpad smbd[17311]: [2018/08/15 09:11:29.315313, 0] ../lib/util/become_daemon.c:124(daemon_ready) Aug 15 09:11:35 Thinkpad smbd[17311]:  STATUS=daemon 'smbd' finished starting up and ready to serve connections Aug 15 09:11:37 Thinkpad systemd[1]: smbd.service: Failed with result 'timeout'. Aug 15 09:11:37 Thinkpad systemd[1]: Failed to start Samba SMB Daemon. dpkg: error processing package samba (--configure): installed samba package post-installation script subprocess returned error exit status 1