Thanks. Two things: a) you have an invalid setting in your /etc/samba/smb.conf file: $ testparm ./smb.conf Load smb config files from ./smb.conf rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384) set_variable_helper("false"): value is not boolean! Error loading services.
It's this line: usershare owner only="false" You have to fix that. b) For non-AD samba services, the samba-ad-dc service must be masked (which is the default) and the other services must be enabled. So run these commands: sudo systemctl stop smbd.service nmbd.service winbind.service samba-ad-dc.service sudo systemctl disable samba-ad-dc.service sudo systemctl mask samba-ad-dc.service sudo systemctl enable smbd.service nmbd.service sudo systemctl start smbd.service nmbd.service Then you can run these to fix the packaging side of things: sudo apt update sudo apt -f install -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1739981 Title: package samba 2:4.5.8+dfsg-0ubuntu0.17.04.8 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1739981/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs