I think you are trying to run the samba-ad-dc service (samba-ad- dc.service) on a non-AD-DC configured machine. The smb.conf you attached shows that you are using "security = user" which is a standalone server role, not an active directory controller.
If this is really your intention (NOT running an AD controller), then I suggest you disable samba-ad-dc.service and enable smbd and nmbd: sudo systemctl stop samba-ad-dc.service smbd.service nmbd.service sudo systemctl disable samba-ad-dc.service sudo systemctl mask samba-ad-dc.service sudo systemctl unmask smbd.service sudo systemctl unmask nmbd.service sudo systemctl enable smbd.service sudo systemctl enable nmbd.service sudo systemctl start smbd.service nmbd.service Please let me know how it goes. -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to samba in Ubuntu. https://bugs.launchpad.net/bugs/1704446 Title: package samba 2:4.5.8+dfsg-0ubuntu0.17.04.3 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/1704446/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs