sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
libv8-3.14.5
Use 'sudo apt autoremove' to remove it.
0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up samba (2:4.4.5+dfsg-2ubuntu5) ...
Failed to preset unit: Unit file /etc/systemd/system/samba-ad-dc.service is masked.
/usr/bin/deb-systemd-helper: error: systemctl preset failed on samba-ad-dc.service: No such file or directory
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; enabled; vendor preset: enabled)
Active: failed (Result: timeout) since Wed 2016-10-26 14:27:08 CET; 5ms ago
Docs: man:nmbd(8)
man:samba(7)
man:smb.conf(5)
Main PID: 5853
Status: "nmbd: No local IPv4 non-loopback interfaces available, waiting for interface ..."
Tasks: 1 (limit: 4915)
CGroup: /system.slice/nmbd.service
Oct 26 14:25:38 ameurux-pc systemd[1]: Starting Samba NMB Daemon...
Oct 26 14:25:38 ameurux-pc systemd[1]: nmbd.service: Supervising process 5853 which is not our ...its.
Oct 26 14:27:08 ameurux-pc systemd[1]: nmbd.service: Start operation timed out. Terminating.
Oct 26 14:27:08 ameurux-pc systemd[1]: nmbd.service: Killing process 5853 (nmbd) with signal SIGKILL.
Oct 26 14:27:08 ameurux-pc systemd[1]: Failed to start Samba NMB Daemon.
Oct 26 14:27:08 ameurux-pc systemd[1]: nmbd.service: Unit entered failed state.
Oct 26 14:27:08 ameurux-pc systemd[1]: nmbd.service: Failed with result 'timeout'.
Hint: Some lines were ellipsized, use -l to show in full.
dpkg: error processing package samba (--configure):
subprocess installed post-installation script returned error exit status 1
Processing triggers for libc-bin (2.24-3ubuntu1) ...
Errors were encountered while processing:
samba
E: Sub-process /usr/bin/dpkg returned an error code (1)