Tar*_*eeb 7 upgrade samba 16.04
我已经顺利升级到 16.04,除了 samba 没有启动外,一切都正常:
$ sudo /etc/init.d/smbd status
? 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'.
Run Code Online (Sandbox Code Playgroud)
升级后我没有更改任何配置,我只需要维护 15.10 的功能。我已经完成了几次重启,但都没有运气。
更新 1:我清除了 samba 并尝试重新安装,但出现以下错误:
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
Run Code Online (Sandbox Code Playgroud)
看起来 16.04 软件包的安装后脚本不好?
任何提示/技巧表示赞赏。
小智 7
security = share
从我的个人中删除smb.conf
而不重新安装并运行systemctl restart smbd.service
,为我解决了问题。
小智 4
升级到 16.04 后我遇到了确切的问题,首先显示了许多与您一样的错误,例如:
dpkg: error processing package samba (--configure)
Run Code Online (Sandbox Code Playgroud)
当我将软件源更改为ubuntu主服务器后,我可以重新安装samba和以下命令,不会出现错误:
sudo /etc/init.d/smbd status
sudo apt-get install libnss-winbind* libpam-winbind* samba* winbind*
Run Code Online (Sandbox Code Playgroud)
因为samba的卸载是--purge,我的旧smb.conf被删除了,生成了一个新的,我想我编辑一下之后就不会出现问题了。
归档时间: |
|
查看次数: |
41882 次 |
最近记录: |