Web lists-archives.com

errors installing Samba 4 on Debian/Stretch




I'm posting this here because the problem seems to be with the package rather than with Samba. When I run apt install samba I get

root@TheLibrarian:~# apt install samba
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  python-dnspython samba-dsdb-modules samba-vfs-modules tdb-tools
Suggested packages:
  bind9 bind9utils ctdb ldb-tools smbldap-tools winbind ufw
The following NEW packages will be installed:
  python-dnspython samba samba-dsdb-modules samba-vfs-modules tdb-tools
0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/1,748 kB of archives.
After this operation, 14.3 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Selecting previously unselected package python-dnspython.
(Reading database ... 114359 files and directories currently installed.)
Preparing to unpack .../python-dnspython_1.15.0-1_all.deb ...
Unpacking python-dnspython (1.15.0-1) ...
Selecting previously unselected package tdb-tools.
Preparing to unpack .../tdb-tools_1.3.11-2_amd64.deb ...
Unpacking tdb-tools (1.3.11-2) ...
Selecting previously unselected package samba.
Preparing to unpack .../samba_2%3a4.5.12+dfsg-2+deb9u3_amd64.deb ...
Unpacking samba (2:4.5.12+dfsg-2+deb9u3) ...
Selecting previously unselected package samba-dsdb-modules.
Preparing to unpack .../samba-dsdb-modules_2%3a4.5.12+dfsg-2+deb9u3_amd64.deb ...
Unpacking samba-dsdb-modules (2:4.5.12+dfsg-2+deb9u3) ...
Selecting previously unselected package samba-vfs-modules.
Preparing to unpack .../samba-vfs-modules_2%3a4.5.12+dfsg-2+deb9u3_amd64.deb ...
Unpacking samba-vfs-modules (2:4.5.12+dfsg-2+deb9u3) ...
Setting up python-dnspython (1.15.0-1) ...
Setting up samba-vfs-modules (2:4.5.12+dfsg-2+deb9u3) ...
Processing triggers for libc-bin (2.24-11+deb9u3) ...
Processing triggers for systemd (232-25+deb9u4) ...
Setting up tdb-tools (1.3.11-2) ...
update-alternatives: using /usr/bin/tdbbackup.tdbtools to provide /usr/bin/tdbbackup (tdbbackup) in auto mode
Processing triggers for man-db (2.7.6.1-2) ...
Setting up samba (2:4.5.12+dfsg-2+deb9u3) ...
Samba is not being run as an AD Domain Controller, masking samba-ad-dc-service. Please ignore the following error about deb-systemd-helper not finding samba-ad-dc-service. Created symlink /etc/systemd/system/multi-user.target.wants/nmbd.service → /lib/systemd/system/nmbd.service. Created symlink /etc/systemd/system/multi-user.target.wants/samba-ad-dc.service → /lib/systemd/system/samba-ad-dc.service. Created symlink /etc/systemd/system/multi-user.target.wants/smbd.service → /lib/systemd/system/smbd.service. 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 Wed 2018-10-17 18:26:45 EDT; 10ms ago
     Docs: man:smbd(8)
           man:samba(7)
           man:smb.conf(5)
  Process: 12189 ExecStart=/usr/sbin/smbd $SMBDOPTIONS (code=exited, status=1/FAILURE)
 Main PID: 12189 (code=exited, status=1/FAILURE)

Oct 17 18:26:44 TheLibrarian systemd[1]: Starting Samba SMB Daemon...
Oct 17 18:26:45 TheLibrarian systemd[1]: smbd.service: Main process exited, code=exited, sta…ILURE
Oct 17 18:26:45 TheLibrarian systemd[1]: Failed to start Samba SMB Daemon.
Oct 17 18:26:45 TheLibrarian systemd[1]: smbd.service: Unit entered failed state. Oct 17 18:26:45 TheLibrarian 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
Setting up samba-dsdb-modules (2:4.5.12+dfsg-2+deb9u3) ...
Processing triggers for libc-bin (2.24-11+deb9u3) ...
Processing triggers for systemd (232-25+deb9u4) ...
Errors were encountered while processing:
 samba
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@TheLibrarian:~#


The two suggestions for systemctl status and journalctl just return similar stuff. The service couldn't be started. Also, I note that the install seems to believe that I don't want to install samba as an ad-dc for some reason.