Comment 3 for bug 1731502

Revision history for this message
Andreas Hasenack (ahasenack) wrote : Re: package samba 2:4.6.7+dfsg-1ubuntu3 [origin: Ubuntu] failed to install/upgrade: subprocess installed post-installation script returned error exit status 1

Thanks for filing this bug in Ubuntu.

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 Fri 2017-11-10 09:51:44 CST; 32ms ago
     Docs: man:nmbd(8)
           man:samba(7)
           man:smb.conf(5)
 Main PID: 8674
   Status: "nmbd: No local IPv4 non-loopback interfaces available, waiting for interface ..."

What happened is that systemd gave up waiting for nmbd to notify it that it started up fully. In this case, nmbd didn't make that notification because there was no networking available.

While nmbd can and will just wait forever, systemd is expecting a notification and if one doesn't arrive in 90s it will decide the service failed to start.

I believe in your case this is happening because you only get networking after you login on your system, probably via wifi.

I filed this bug upstream in samba about this problem: https://bugzilla.samba.org/show_bug.cgi?id=13111

I will use this Ubuntu bug to track this issue.