samba升级15.3后不能启动
Tofloor
poster avatar
foureyesboy
deepin
2016-11-14 03:56
Author
升级15.3更新后,samba服务不能启动。重新apt安装报错如下(注:与通过/etc/init.d/smbd start错误一样)。不知哪位有解决方法?

正在设置 tdb-tools (1.3.9-1) ...
update-alternatives: 使用 /usr/bin/tdbbackup.tdbtools 来在自动模式中提供 /usr/bin/tdbbackup (tdbbackup)
正在设置 samba (2:4.4.5+dfsg-2) ...
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 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.
● smbd.service - Samba SMB Daemon
   Loaded: loaded (/lib/systemd/system/smbd.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since 日 2016-11-13 15:56:54 CST; 8ms ago
     Docs: man:smbd(8)
           man:samba(7)
           man:smb.conf(5)
  Process: 8475 ExecStart=/usr/sbin/smbd $SMBDOPTIONS (code=exited, status=1/FAILURE)
Main PID: 8475 (code=exited, status=1/FAILURE)
   Status: "Starting process..."

11月 13 15:56:54 tlm-pc systemd[1]: Starting Samba SMB Daemon...
11月 13 15:56:54 tlm-pc systemd[1]: smbd.service: Supervising process 8475 which is not o...ts.
11月 13 15:56:54 tlm-pc systemd[1]: smbd.service: Main process exited, code=exited, statu...URE
11月 13 15:56:54 tlm-pc systemd[1]: Failed to start Samba SMB Daemon.
11月 13 15:56:54 tlm-pc systemd[1]: smbd.service: Unit entered failed state.
11月 13 15:56:54 tlm-pc systemd[1]: smbd.service: Failed with result 'exit-code'.
Hint: Some lines were ellipsized, use -l to show in full.
dpkg: 处理软件包 samba (--configure)时出错:
子进程 已安装 post-installation 脚本 返回错误状态 1
正在设置 samba-dsdb-modules (2:4.4.5+dfsg-2) ...
正在设置 samba-vfs-modules (2:4.4.5+dfsg-2) ...
正在处理用于 libc-bin (2.23-4) 的触发器 ...
在处理时有错误发生:
samba
E: Sub-process /usr/bin/dpkg returned an error code (1)

Reply Favorite View the author
All Replies
avatar
Island
deepin
2016-11-15 19:17
#1
sudo apt-get -f install 先修复下  然后sudo service smbd start
Reply View the author
avatar
Island
deepin
2016-11-15 19:18
#2
Debian changed service from 'samba' to 'smbd'
Reply View the author
avatar
foureyesboy
deepin
2016-11-18 02:39
#3
问题还是一样的。过程如下:

tlm@tlm-pc:~$ sudo apt-get -f install samba
正在读取软件包列表... 完成
正在分析软件包的依赖关系树      
正在读取状态信息... 完成      
The following additional packages will be installed:
  samba-dsdb-modules samba-vfs-modules tdb-tools
建议安装的软件包:
  bind9 bind9utils ctdb ldb-tools ntp smbldap-tools winbind ufw
下列【新】软件包将被安装:
  samba samba-dsdb-modules samba-vfs-modules tdb-tools
升级了 0 个软件包,新安装了 4 个软件包,要卸载 0 个软件包,有 1 个软件包未被升级。
需要下载 0 B/1,615 kB 的软件包。
解压缩后会消耗掉 13.7 MB 的额外空间。
您希望继续执行吗? [Y/n] y
正在选中未选择的软件包 tdb-tools。
(正在读取数据库 ... 系统当前共安装有 181538 个文件和目录。)
正准备解包 .../tdb-tools_1.3.9-1_amd64.deb  ...
正在解包 tdb-tools (1.3.9-1) ...
正在选中未选择的软件包 samba。
正准备解包 .../samba_2%3a4.4.5+dfsg-2_amd64.deb  ...
正在解包 samba (2:4.4.5+dfsg-2) ...
正在选中未选择的软件包 samba-dsdb-modules。
正准备解包 .../samba-dsdb-modules_2%3a4.4.5+dfsg-2_amd64.deb  ...
正在解包 samba-dsdb-modules (2:4.4.5+dfsg-2) ...
正在选中未选择的软件包 samba-vfs-modules。
正准备解包 .../samba-vfs-modules_2%3a4.4.5+dfsg-2_amd64.deb  ...
正在解包 samba-vfs-modules (2:4.4.5+dfsg-2) ...
正在处理用于 man-db (2.7.5-1) 的触发器 ...
正在处理用于 libc-bin (2.23-4) 的触发器 ...
正在处理用于 systemd (231-1) 的触发器 ...
正在设置 tdb-tools (1.3.9-1) ...
update-alternatives: 使用 /usr/bin/tdbbackup.tdbtools 来在自动模式中提供 /usr/bin/tdbbackup (tdbbackup)
正在设置 samba (2:4.4.5+dfsg-2) ...
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 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.
● smbd.service - Samba SMB Daemon
   Loaded: loaded (/lib/systemd/system/smbd.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since 四 2016-11-17 18:38:04 CST; 10ms ago
     Docs: man:smbd(8)
           man:samba(7)
           man:smb.conf(5)
  Process: 4142 ExecStart=/usr/sbin/smbd $SMBDOPTIONS (code=exited, status=1/FAILURE)
Main PID: 4142 (code=exited, status=1/FAILURE)

11月 17 18:38:04 tlm-pc systemd[1]: Starting Samba SMB Daemon...
11月 17 18:38:04 tlm-pc systemd[1]: smbd.service: Main process exited, code...RE
11月 17 18:38:04 tlm-pc systemd[1]: Failed to start Samba SMB Daemon.
11月 17 18:38:04 tlm-pc systemd[1]: smbd.service: Unit entered failed state.
11月 17 18:38:04 tlm-pc systemd[1]: smbd.service: Failed with result 'exit-...'.
Hint: Some lines were ellipsized, use -l to show in full.
dpkg: 处理软件包 samba (--configure)时出错:
子进程 已安装 post-installation 脚本 返回错误状态 1
正在设置 samba-dsdb-modules (2:4.4.5+dfsg-2) ...
正在设置 samba-vfs-modules (2:4.4.5+dfsg-2) ...
正在处理用于 libc-bin (2.23-4) 的触发器 ...
在处理时有错误发生:
samba
E: Sub-process /usr/bin/dpkg returned an error code (1)
tlm@tlm-pc:~$ sudo service smbd start
Job for smbd.service failed because the control process exited with error code.
See "systemctl status smbd.service" and "journalctl -xe" for details.
Reply View the author
avatar
jiancheng_wang
deepin
2017-08-12 08:10
#4
一样的问题,今天刚更新,
Reply View the author