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

Andreas Hasenack andreas at canonical.com
Tue Aug 1 12:49:56 UTC 2017


Thanks, the files confirm my suspicion:
Jul 29 06:50:53 dc smbd[1486]:   server role = 'active directory domain controller' not compatible with running smbd standalone.
Jul 29 06:50:53 dc smbd[1486]:   You should start 'samba' instead, and it will control starting smbd if required
Jul 29 06:50:53 dc systemd[1]: smbd.service: Main process exited, code=exited, status=1/FAILURE
Jul 29 06:50:53 dc systemd[1]: Failed to start Samba SMB Daemon.

To fix your problem, you need to disable the individual samba services
smbd, nmbd and winbind, and only start the new samba-ad-dc service,
which will take care of starting and handling the lifecycle of the
individual 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

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

Then please let us 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/1707148

Title:
  package winbind 2:4.5.8+dfsg-0ubuntu0.17.04.4 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/1707148/+subscriptions



More information about the Ubuntu-server-bugs mailing list