Thanks for filing this bug in Ubuntu. For the Active Directory Controller role, you need to use the samba-ad- dc service instead of the individual samba services:
sudo systemctl stop smbd.service nmbd.service winbind.service sudo systemctl disable smbd.service nmbd.service winbind.service sudo systemctl unmask samba-ad-dc.service sudo systemctl enable samba-ad-dc.service sudo systemctl restart samba-ad-dc.service Your samba logs in /var/log/samba/log* should be saying something along those lines. After that's done, tell apt to try to finish the interrupted package installation/upgrade that triggered this bug report: sudo apt update sudo apt -f install Please let me know how it goes. ** Changed in: samba (Ubuntu) Status: New => Incomplete -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1740656 Title: package samba 2:4.3.11+dfsg-0ubuntu0.16.04.12 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/1740656/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs