You are not logged in.

#1 2019-07-21 15:15:12

cpicanco
New Member
From: Brazil
Registered: 2015-10-15
Posts: 3
Website

Error installing Samba

Hi guys (and girls), I am having a difficult time installing Samba. For some unknown reason, I am receiving the following error message:

Setting up samba (2:4.5.16+dfsg-1+deb9u2) ...
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 Sun 2019-07-21 12:10:05 -03; 6ms ago
     Docs: man:smbd(8)
           man:samba(7)
           man:smb.conf(5)
  Process: 5988 ExecStart=/usr/sbin/smbd $SMBDOPTIONS (code=exited, status=1/FAILURE)
 Main PID: 5988 (code=exited, status=1/FAILURE)

Jul 21 12:10:05 bunsenlabs systemd[1]: Starting Samba SMB Daemon...
Jul 21 12:10:05 bunsenlabs systemd[1]: smbd.service: Main process exited, code=…LURE
Jul 21 12:10:05 bunsenlabs systemd[1]: Failed to start Samba SMB Daemon.
Jul 21 12:10:05 bunsenlabs systemd[1]: smbd.service: Unit entered failed state.
Jul 21 12:10:05 bunsenlabs systemd[1]: smbd.service: Failed with result 'exit-code'.
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

Any suggestions?

Last edited by cpicanco (2019-07-21 15:19:08)

Offline

#2 2019-07-21 15:53:10

damo
....moderator....
Registered: 2015-08-20
Posts: 5,006

Re: Error installing Samba

cpicanco wrote:

...
Any suggestions?

Follow the instructions included in the output to start with? Then Google error messages if necessary.


Be Excellent to Each Other...

FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Online

#3 2019-07-21 17:19:24

cpicanco
New Member
From: Brazil
Registered: 2015-10-15
Posts: 3
Website

Re: Error installing Samba

Here are the output of `systemctl status smbd.service`

● smbd.service - Samba SMB Daemon
   Loaded: loaded (/lib/systemd/system/smbd.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Sun 2019-07-21 13:50:11 -03; 54s ago
     Docs: man:smbd(8)
           man:samba(7)
           man:smb.conf(5)
  Process: 2130 ExecStart=/usr/sbin/smbd $SMBDOPTIONS (code=exited, status=127)
 Main PID: 2130 (code=exited, status=127)

As you can see, the installation have not completed:

sudo apt update
sudo apt install samba samba-* winbind
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'samba-client' for glob 'samba-*'
Note, selecting 'samba-dev' for glob 'samba-*'
Note, selecting 'samba-doc' for glob 'samba-*'
Note, selecting 'samba-dsdb-modules' for glob 'samba-*'
Note, selecting 'samba-ad-dc' for glob 'samba-*'
Note, selecting 'samba-libs' for glob 'samba-*'
Note, selecting 'samba-common' for glob 'samba-*'
Note, selecting 'samba-vfs-modules' for glob 'samba-*'
Note, selecting 'samba-common-bin' for glob 'samba-*'
Note, selecting 'samba-tools' for glob 'samba-*'
Note, selecting 'samba-testsuite' for glob 'samba-*'
Note, selecting 'smbclient' instead of 'samba-client'
samba is already the newest version (2:4.5.16+dfsg-1+deb9u2).
samba-common is already the newest version (2:4.5.16+dfsg-1+deb9u2).
samba-common-bin is already the newest version (2:4.5.16+dfsg-1+deb9u2).
samba-dev is already the newest version (2:4.5.16+dfsg-1+deb9u2).
samba-dsdb-modules is already the newest version (2:4.5.16+dfsg-1+deb9u2).
samba-libs is already the newest version (2:4.5.16+dfsg-1+deb9u2).
samba-testsuite is already the newest version (2:4.5.16+dfsg-1+deb9u2).
samba-vfs-modules is already the newest version (2:4.5.16+dfsg-1+deb9u2).
smbclient is already the newest version (2:4.5.16+dfsg-1+deb9u2).
winbind is already the newest version (2:4.5.16+dfsg-1+deb9u2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.

My google searching suggests that it is related to broken or unresolved dependencies:

https://unix.stackexchange.com/question … er-install

I am really not sure how to proceed, since I am already following the standard installation procedure (i.e., apt update, apt install).

Offline

#4 2019-07-21 20:24:46

twoion
ほやほや
Registered: 2015-08-10
Posts: 2,459

Re: Error installing Samba

The valuable stuff we need is in journalctl -u smbd.service and /var/log/samba or similar.


What can you see / On the horizon?

Offline

#5 2019-07-21 22:47:30

cpicanco
New Member
From: Brazil
Registered: 2015-10-15
Posts: 3
Website

Re: Error installing Samba

Here is the output of `sudo journalctl -u smbd.service`

-- Logs begin at Sun 2019-07-21 13:45:25 -03, end at Sun 2019-07-21 19:49:22 -03. --
Jul 21 13:50:11 bunsenlabs systemd[1]: Starting Samba SMB Daemon...
Jul 21 13:50:11 bunsenlabs smbd[2130]: /usr/sbin/smbd: error while loading shared libraries: libsmbd-base.so.0: cannot open shared object file: No such file or directory
Jul 21 13:50:11 bunsenlabs systemd[1]: smbd.service: Main process exited, code=exited, status=127/n/a
Jul 21 13:50:11 bunsenlabs systemd[1]: Failed to start Samba SMB Daemon.
Jul 21 13:50:11 bunsenlabs systemd[1]: smbd.service: Unit entered failed state.
Jul 21 13:50:11 bunsenlabs systemd[1]: smbd.service: Failed with result 'exit-code'.
Jul 21 13:58:54 bunsenlabs systemd[1]: Starting Samba SMB Daemon...
Jul 21 13:58:54 bunsenlabs smbd[3260]: /usr/sbin/smbd: error while loading shared libraries: libwinbind-client.so.0: cannot open shared object file: No such file or directory
Jul 21 13:58:54 bunsenlabs systemd[1]: smbd.service: Main process exited, code=exited, status=127/n/a
Jul 21 13:58:54 bunsenlabs systemd[1]: Failed to start Samba SMB Daemon.
Jul 21 13:58:54 bunsenlabs systemd[1]: smbd.service: Unit entered failed state.
Jul 21 13:58:54 bunsenlabs systemd[1]: smbd.service: Failed with result 'exit-code'.
Jul 21 13:59:17 bunsenlabs systemd[1]: Starting Samba SMB Daemon...
Jul 21 13:59:17 bunsenlabs smbd[3426]: /usr/sbin/smbd: error while loading shared libraries: libwinbind-client.so.0: cannot open shared object file: No such file or directory
Jul 21 13:59:17 bunsenlabs systemd[1]: smbd.service: Main process exited, code=exited, status=127/n/a
Jul 21 13:59:17 bunsenlabs systemd[1]: Failed to start Samba SMB Daemon.
Jul 21 13:59:17 bunsenlabs systemd[1]: smbd.service: Unit entered failed state.
Jul 21 13:59:17 bunsenlabs systemd[1]: smbd.service: Failed with result 'exit-code'.
Jul 21 14:00:52 bunsenlabs systemd[1]: Starting Samba SMB Daemon...
Jul 21 14:00:52 bunsenlabs smbd[5826]: /usr/sbin/smbd: error while loading shared libraries: libwinbind-client.so.0: cannot open shared object file: No such file or directory
Jul 21 14:00:52 bunsenlabs systemd[1]: smbd.service: Main process exited, code=exited, status=127/n/a
Jul 21 14:00:52 bunsenlabs systemd[1]: Failed to start Samba SMB Daemon.
Jul 21 14:00:52 bunsenlabs systemd[1]: smbd.service: Unit entered failed state.
Jul 21 14:00:52 bunsenlabs systemd[1]: smbd.service: Failed with result 'exit-code'.
Jul 21 14:01:32 bunsenlabs systemd[1]: Starting Samba SMB Daemon...
Jul 21 14:01:32 bunsenlabs smbd[6629]: /usr/sbin/smbd: error while loading shared libraries: libwinbind-client.so.0: cannot open shared object file: No such file or directory
Jul 21 14:01:32 bunsenlabs systemd[1]: smbd.service: Main process exited, code=exited, status=127/n/a
Jul 21 14:01:32 bunsenlabs systemd[1]: Failed to start Samba SMB Daemon.
Jul 21 14:01:32 bunsenlabs systemd[1]: smbd.service: Unit entered failed state.
Jul 21 14:01:32 bunsenlabs systemd[1]: smbd.service: Failed with result 'exit-code'.
Jul 21 14:04:36 bunsenlabs systemd[1]: Starting Samba SMB Daemon...
Jul 21 14:04:36 bunsenlabs smbd[6912]: /usr/sbin/smbd: error while loading shared libraries: libwinbind-client.so.0: cannot open shared object file: No such file or directory
Jul 21 14:04:36 bunsenlabs systemd[1]: smbd.service: Main process exited, code=exited, status=127/n/a

Last edited by cpicanco (2019-07-21 22:49:27)

Offline

Board footer

Powered by FluxBB