I'm trying to set up a plex server on the pi, I've got the server up and running and I now just need to put things on it. To do this I wanted to share a folder on a HDD mounted to the pi to be able to transfer files from my windows pc to the pi without having to unplug the HDD. I've got it mounted I believe and am trying to install samba.
I ran this
Code: Select all
$ sudo apt-get install samba samba-common-bin
Code: Select all
pi@raspberrypi:/ $ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up samba (2:4.5.16+dfsg-1+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 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 2019-08-21 11:15:57 BST; 37ms ago
Docs: man:smbd(8)
man:samba(7)
man:smb.conf(5)
Process: 4623 ExecStart=/usr/sbin/smbd $SMBDOPTIONS (code=exited, status=127)
Main PID: 4623 (code=exited, status=127)
Aug 21 11:15:57 raspberrypi systemd[1]: Starting Samba SMB Daemon...
Aug 21 11:15:57 raspberrypi smbd[4623]: /usr/sbin/smbd: error while loading shared libraries:…ctory
Aug 21 11:15:57 raspberrypi systemd[1]: smbd.service: Main process exited, code=exited, statu…7/n/a
Aug 21 11:15:57 raspberrypi systemd[1]: Failed to start Samba SMB Daemon.
Aug 21 11:15:57 raspberrypi systemd[1]: smbd.service: Unit entered failed state.
Aug 21 11:15:57 raspberrypi 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
Processing triggers for libc-bin (2.24-11+deb9u4) ...
Errors were encountered while processing:
samba
E: Sub-process /usr/bin/dpkg returned an error code (1)
Anyone have any ideas how to fix this?
Thanks,
Hengreer