Samba SMB Daemon 启动失败;安装不完整

Samba SMB Daemon 启动失败;安装不完整

我正在尝试在运行 Raspbian 的 Raspberry Pi 上创建 Samba 服务器。安装给出以下错误消息。

Setting up samba (2:4.5.12+dfsg-2+deb9u1) ...
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 a fatal signal was delivered causing the control process to dump core.
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: core-dump) since Tue 2018-01-09 00:54:45 UTC; 503ms ago
     Docs: man:smbd(8)
           man:samba(7)
           man:smb.conf(5)
  Process: 27365 ExecStart=/usr/sbin/smbd $SMBDOPTIONS (code=dumped, signal=ILL)
 Main PID: 27365 (code=dumped, signal=ILL)
   Status: "Starting process..."

Jan 09 00:54:45 raspberrypi systemd[1]: Starting Samba SMB Daemon...
Jan 09 00:54:45 raspberrypi systemd[1]: smbd.service: Supervising proc…ts.
Jan 09 00:54:45 raspberrypi systemd[1]: smbd.service: Main process exi…ILL
Jan 09 00:54:45 raspberrypi systemd[1]: Failed to start Samba SMB Daemon.
Jan 09 00:54:45 raspberrypi systemd[1]: smbd.service: Unit entered fai…te.
Jan 09 00:54:45 raspberrypi systemd[1]: smbd.service: Failed with resu…p'.
Hint: Some lines were ellipsized, use -l to show in full.
dpkg: error processing package samba (--configure):
 subprocess installed post-installation script returned error exit status 1
Processing triggers for libc-bin (2.24-11+deb9u1) ...
Errors were encountered while processing:
 samba
E: Sub-process /usr/bin/dpkg returned an error code (1)

这是以下结果systemctl status smbd.service

● smbd.service - Samba SMB Daemon
   Loaded: loaded (/lib/systemd/system/smbd.service; enabled; vendor preset: enabled)
   Active: failed (Result: core-dump) since Tue 2018-01-09 00:54:45 UTC; 3min 17s ago
     Docs: man:smbd(8)
           man:samba(7)
           man:smb.conf(5)
  Process: 27365 ExecStart=/usr/sbin/smbd $SMBDOPTIONS (code=dumped, signal=ILL)
 Main PID: 27365 (code=dumped, signal=ILL)
   Status: "Starting process..."

Jan 09 00:54:45 raspberrypi systemd[1]: Starting Samba SMB Daemon...
Jan 09 00:54:45 raspberrypi systemd[1]: smbd.service: Supervising process 27365 which is not our child. We'll m
Jan 09 00:54:45 raspberrypi systemd[1]: smbd.service: Main process exited, code=dumped, status=4/ILL
Jan 09 00:54:45 raspberrypi systemd[1]: Failed to start Samba SMB Daemon.
Jan 09 00:54:45 raspberrypi systemd[1]: smbd.service: Unit entered failed state.
Jan 09 00:54:45 raspberrypi systemd[1]: smbd.service: Failed with result 'core-dump'.

这是相关部分journalctl -xe

-- Unit smbd.service has begun starting up.
Jan 09 00:54:45 raspberrypi systemd[1]: smbd.service: Supervising process 27365 which is not our child. We'll m
Jan 09 00:54:45 raspberrypi systemd[1]: smbd.service: Main process exited, code=dumped, status=4/ILL
Jan 09 00:54:45 raspberrypi systemd[1]: Failed to start Samba SMB Daemon.
-- Subject: Unit smbd.service has failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- Unit smbd.service has failed.

我不知道为什么会发生这个错误,因为它是在相对干净的 Raspbian 安装上进行的,而且我还没有对其进行任何实验。

相关内容