在安装nodejs时遇到的错误提示:

smbd.service - LSB: start Samba SMB/CIFS daemon (smbd)
Loaded: loaded (/etc/init.d/smbd; bad; vendor preset: enabled)
Active: failed (Result: exit-code) since Mon 2016-04-25 21:43:03 EET; 23min ago
Docs: man:systemd-sysv-generator(8)
Process: 1954 ExecStart=/etc/init.d/smbd start (code=exited, status=1/FAILURE)

Apr 25 21:43:02 home systemd[1]: Starting LSB: start Samba SMB/CIFS daemon (smbd)…
Apr 25 21:43:03 home smbd[1954]: * Starting SMB/CIFS daemon smbd
Apr 25 21:43:03 home smbd[1954]: …fail!
Apr 25 21:43:03 home systemd[1]: smbd.service: Control process exited, code=exited status=1
Apr 25 21:43:03 home systemd[1]: Failed to start LSB: start Samba SMB/CIFS daemon (smbd).
Apr 25 21:43:03 home systemd[1]: smbd.service: Unit entered failed state.
Apr 25 21:43:03 home systemd[1]: smbd.service: Failed with result ‘exit-code’.
I did not alter any configuration after the upgrade, I just need to maintain the 15.10 functionalities. I have done several reboots with no luck.

Update1: I purged samba and tried to re-install, but got the following error:

Errors were encountered while processing:
samba
E: Sub-process /usr/bin/dpkg returned an error code (1)
Failed to perform requested operation on package. Trying to recover:
Setting up samba (2:4.3.8+dfsg-0ubuntu1) …
Job for smbd.service failed because the control process exited with error code. See “systemctl status smbd.service” and “journalctl -xe” for details.
invoke-rc.d: initscript smbd, action “start” failed.
dpkg: error processing package samba (–configure):
subprocess installed post-installation script returned error exit status 1
Processing triggers for libc-bin (2.23-0ubuntu3) …
Errors were encountered while processing:
samba

解决方案:

  1. $ vim /etc/samba/smb.conf
  2. 找到 security = share 并将其注释掉
  3. $ systemctl restart smbd.service
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值