[Bug 1693418] Re: package samba 2:4.5.8+dfsg-0ubuntu0.17.04.2 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1

Andreas Hasenack andreas at canonical.com
Tue May 30 13:55:23 UTC 2017


The smb.conf snippet from comment #7 is very different from the
SMBConf.txt attachment to this bug. Comment #7's is an AD controller,
whereas the attachment is for a standalone server. This changes things.

That being said, this seems to be the issue:
Mai 30 07:59:49 pdc smbd[7719]: You should start 'samba' instead, and it will control starting smbd if required

When using samba as an AD controller, you have to use a different
systemd job. Run the following:

sudo systemctl mask smbd.service
sudo systemctl mask nmbd.service
sudo systemctl unmask samba-ad-dc.service

Then try "sudo apt -f install" or "sudo dpkg --configure -a".

You may have to start samba-ad-dc explicitly:

sudo systemctl start samba-ad-dc.service


The error log message is a bit misleading, talking about a "samba" service. It looks like samba-ad-dc replaces it.

-- 
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/1693418

Title:
  package samba 2:4.5.8+dfsg-0ubuntu0.17.04.2 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/1693418/+subscriptions



More information about the Ubuntu-server-bugs mailing list