On 04 Jan 2019, Pequito pondered and said...
What is the command you are using to install samba might make all the difference.
aka: sudo apt install samba samba-common-bin
I did use that as it was given as the example on the RPi wiki/website but I recall the system said the samba-common-bin was already installed... so
perhaps that's it?
I then did this
[snip]
pi@raspberrypi:~ $ sudo apt-get remove samba
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer
required:
attr libaio1 python-dnspython samba-dsdb-modules samba-vfs-modules tdb-tools Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
samba
0 upgraded, 0 newly installed, 1 to remove and 156 not upgraded.
1 not fully installed or removed.
After this operation, 11.0 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 137672 files and directories currently installed.) Removing samba (2:4.5.12+dfsg-2+deb9u4) ...
Processing triggers for libc-bin (2.24-11+deb9u3) ...
Processing triggers for man-db (2.7.6.1-2) ...
pi@raspberrypi:~ $ sudo apt-get remove samba-common-bin
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer
required:
attr libaio1 python-crypto python-dnspython python-ldb python-samba
python-tdb samba-dsdb-modules samba-vfs-modules tdb-tools
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
samba-common-bin
0 upgraded, 0 newly installed, 1 to remove and 156 not upgraded.
After this operation, 1,339 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 137482 files and directories currently installed.) Removing samba-common-bin (2:4.5.12+dfsg-2+deb9u4) ...
Processing triggers for man-db (2.7.6.1-2) ...
pi@raspberrypi:~ $ sudo apt-get remove samba-common-bin
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'samba-common-bin' is not installed, so not removed
The following packages were automatically installed and are no longer
required:
attr libaio1 python-crypto python-dnspython python-ldb python-samba
python-tdb samba-dsdb-modules samba-vfs-modules tdb-tools
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 156 not upgraded. pi@raspberrypi:~ $ sudo apt autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
attr libaio1 python-crypto python-dnspython python-ldb python-samba
python-tdb samba-dsdb-modules samba-vfs-modules tdb-tools
0 upgraded, 0 newly installed, 10 to remove and 156 not upgraded.
After this operation, 12.6 MB disk space will be freed.
Do you want to continue? [Y/n]
(Reading database ... 137454 files and directories currently installed.) Removing attr (1:2.4.47-2) ...
Removing samba-vfs-modules (2:4.5.12+dfsg-2+deb9u4) ...
Removing libaio1:armhf (0.3.110-3) ...
Removing python-samba (2:4.5.12+dfsg-2+deb9u4) ...
Removing python-crypto (2.6.1-7) ...
Removing python-dnspython (1.15.0-1) ...
Removing python-ldb (2:1.1.27-1) ...
Removing python-tdb (1.3.11-2) ...
Removing samba-dsdb-modules (2:4.5.12+dfsg-2+deb9u4) ...
Removing tdb-tools (1.3.11-2) ...
Processing triggers for libc-bin (2.24-11+deb9u3) ...
Processing triggers for man-db (2.7.6.1-2) ...
pi@raspberrypi:~ $
[snip]
Not sure if I should reboot first (but I didn't) then I ran
sudo apt-get install samba samba-common-bin
[snip]
pi@raspberrypi:~ $ sudo apt-get install samba samba-common-bin
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
attr libaio1 python-crypto python-dnspython python-ldb python-samba
python-tdb samba-dsdb-modules samba-vfs-modules tdb-tools
Suggested packages:
python-crypto-dbg python-crypto-doc python-gpgme bind9 bind9utils ctdb
ldb-tools smbldap-tools winbind ufw heimdal-clients
The following NEW packages will be installed:
attr libaio1 python-crypto python-dnspython python-ldb python-samba
python-tdb samba samba-common-bin samba-dsdb-modules samba-vfs-modules
tdb-tools
0 upgraded, 12 newly installed, 0 to remove and 156 not upgraded.
Need to get 0 B/3,683 kB of archives.
After this operation, 24.9 MB of additional disk space will be used.
Do you want to continue? [Y/n]
Selecting previously unselected package python-dnspython.
(Reading database ... 136772 files and directories currently installed.) Preparing to unpack .../00-python-dnspython_1.15.0-1_all.deb ...
Unpacking python-dnspython (1.15.0-1) ...
Selecting previously unselected package python-crypto.
Preparing to unpack .../01-python-crypto_2.6.1-7_armhf.deb ...
Unpacking python-crypto (2.6.1-7) ...
Selecting previously unselected package python-ldb.
Preparing to unpack .../02-python-ldb_2%3a1.1.27-1_armhf.deb ...
Unpacking python-ldb (2:1.1.27-1) ...
Selecting previously unselected package python-tdb.
Preparing to unpack .../03-python-tdb_1.3.11-2_armhf.deb ...
Unpacking python-tdb (1.3.11-2) ...
Selecting previously unselected package python-samba.
Preparing to unpack .../04-python-samba_2%3a4.5.12+dfsg-2+deb9u4_armhf.deb ... Unpacking python-samba (2:4.5.12+dfsg-2+deb9u4) ...
Selecting previously unselected package samba-common-bin.
Preparing to unpack
.../05-samba-common-bin_2%3a4.5.12+dfsg-2+deb9u4_armhf.deb ...
Unpacking samba-common-bin (2:4.5.12+dfsg-2+deb9u4) ...
Selecting previously unselected package tdb-tools.
Preparing to unpack .../06-tdb-tools_1.3.11-2_armhf.deb ...
Unpacking tdb-tools (1.3.11-2) ...
Selecting previously unselected package samba.
Preparing to unpack .../07-samba_2%3a4.5.12+dfsg-2+deb9u4_armhf.deb ... Unpacking samba (2:4.5.12+dfsg-2+deb9u4) ...
Selecting previously unselected package attr.
Preparing to unpack .../08-attr_1%3a2.4.47-2_armhf.deb ...
Unpacking attr (1:2.4.47-2) ...
Selecting previously unselected package libaio1:armhf.
Preparing to unpack .../09-libaio1_0.3.110-3_armhf.deb ...
Unpacking libaio1:armhf (0.3.110-3) ...
Selecting previously unselected package samba-dsdb-modules.
Preparing to unpack .../10-samba-dsdb-modules_2%3a4.5.12+dfsg-2+deb9u4_armhf.deb ...
Unpacking samba-dsdb-modules (2:4.5.12+dfsg-2+deb9u4) ...
Selecting previously unselected package samba-vfs-modules.
Preparing to unpack
.../11-samba-vfs-modules_2%3a4.5.12+dfsg-2+deb9u4_armhf.deb ...
Unpacking samba-vfs-modules (2:4.5.12+dfsg-2+deb9u4) ...
Setting up python-dnspython (1.15.0-1) ...
Setting up python-crypto (2.6.1-7) ...
Setting up python-tdb (1.3.11-2) ...
Processing triggers for libc-bin (2.24-11+deb9u3) ...
Setting up libaio1:armhf (0.3.110-3) ...
Processing triggers for systemd (232-25+deb9u6) ...
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-dsdb-modules (2:4.5.12+dfsg-2+deb9u4) ...
Setting up attr (1:2.4.47-2) ...
Setting up python-ldb (2:1.1.27-1) ...
Setting up samba-vfs-modules (2:4.5.12+dfsg-2+deb9u4) ...
Setting up python-samba (2:4.5.12+dfsg-2+deb9u4) ...
Setting up samba-common-bin (2:4.5.12+dfsg-2+deb9u4) ...
Setting up samba (2:4.5.12+dfsg-2+deb9u4) ...
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 Sat 2019-01-05 10:36:49 NZDT;
128ms ago
Docs: man:smbd(8)
man:samba(7)
man:smb.conf(5)
Process: 13498 ExecStart=/usr/sbin/smbd $SMBDOPTIONS (code=dumped, signal=SEGV)
Main PID: 13498 (code=dumped, signal=SEGV)
Jan 05 10:36:48 raspberrypi systemd[1]: Starting Samba SMB Daemon...
Jan 05 10:36:49 raspberrypi systemd[1]: smbd.service: Main process exited, c.EGV
Jan 05 10:36:49 raspberrypi systemd[1]: Failed to start Samba SMB Daemon.
Jan 05 10:36:49 raspberrypi systemd[1]: smbd.service: Unit entered failed state.
Jan 05 10:36:49 raspberrypi systemd[1]: smbd.service: Failed with result 'co.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+deb9u3) ...
Errors were encountered while processing:
samba
E: Sub-process /usr/bin/dpkg returned an error code (1)
[snip]
So yeah, seems it does not like to install :(
──────────────────────────────────────── ──── E∙
avon@bbs.nz ────── W∙bbs.nz ─── ──── K∙keybase.io/avon ──────────────
--- Mystic BBS v1.12 A42 2018/12/30 (Windows/32)
* Origin: Agency BBS | Dunedin, New Zealand | agency.bbs.nz (21:1/101)