aptitude升级时samba报错

每次aptitude install都报错,如下:
8月 17 20:24:54 debian systemd[1]: Starting Samba NMB Daemon…
8月 17 20:24:54 debian systemd[1]: nmbd.service: Supervising process 11270 which is not our child. We’ll most likely not notice when it exits.
8月 17 20:26:24 debian systemd[1]: nmbd.service: Start operation timed out. Terminating.
8月 17 20:26:24 debian systemd[1]: nmbd.service: Killing process 11270 (nmbd) with signal SIGKILL.
8月 17 20:26:24 debian systemd[1]: Failed to start Samba NMB Daemon.
8月 17 20:26:24 debian systemd[1]: nmbd.service: Unit entered failed state.
8月 17 20:26:24 debian systemd[1]: nmbd.service: Failed with result ‘timeout’.
dpkg: 处理软件包 samba (–configure)时出错:
子进程 已安装 post-installation 脚本 返回错误状态 1
正在处理用于 libc-bin (2.24-11+deb9u1) 的触发器 …
在处理时有错误发生:
samba

systemctl starrt nmbd 然后看看日志 /var/log/samba/log.nmbd
或者一边用 tail -f 监视日志,一边启动服务,看卡在哪里

/var/log/samba/log.nmbd为:STATUS=daemon ‘nmbd’ : No local IPv4 non-loopback interfaces available, waiting for interface …NOTE: NetBIOS name resolution is not supported for Internet Protocol Version 6 (IPv6)
smb.conf为 :
[global]
workgroup = WORKGROUP
dns proxy = no
log file = /var/log/samba/log.%m
max log size = 1000
syslog = 0
panic action = /usr/share/samba/panic-action %d
server role = standalone server
passdb backend = tdbsam
obey pam restrictions = yes
unix password sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = Enter\snew\s\spassword:* %n\n Retype\snew\s\spassword:* %n\n password\supdated\ssuccessfully .
pam password change = yes
map to guest = bad user
usershare allow guests = yes
[homes]
comment = Home Directories
browseable = no
read only = yes
create mask = 0700
directory mask = 0700
valid users = %S
[printers]
comment = All Printers
browseable = no
path = /var/spool/samba
printable = yes
guest ok = no
read only = yes
create mask = 0700
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
browseable = yes
read only = yes
guest ok = no