The dpkg terminal output unfortunately doesn't show why slapd failed to start. Please check /var/log/syslog for the relevant slapd output.
You mentioned you installed Samba-4. If you are running Samba's AD DC, that would probably bind the LDAP port (389/tcp), which would prevent slapd from starting since it wants to use the same port. Is that what's happening here? ** Changed in: openldap (Ubuntu) Status: New => Incomplete -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to openldap in Ubuntu. https://bugs.launchpad.net/bugs/1471370 Title: package slapd 2.4.31-1+nmu2ubuntu8.1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1 Status in openldap package in Ubuntu: Incomplete Bug description: I'm installing Samba 4.4.2 (latest) from samba website, and after that install slapd, after install come out this error signal. I think it's a bug, hopefully someone will be able to fix it soon Description: Ubuntu 14.04.2 LTS Release: 14.04 Version: slapd 2.4.31-1+nmu2ubuntu8.1 ProblemType: Package DistroRelease: Ubuntu 14.04 Package: slapd 2.4.31-1+nmu2ubuntu8.1 ProcVersionSignature: Ubuntu 3.16.0-30.40~14.04.1-generic 3.16.7-ckt3 Uname: Linux 3.16.0-30-generic x86_64 ApportVersion: 2.14.1-0ubuntu3.11 Architecture: amd64 Date: Sat Jul 4 11:33:42 2015 DuplicateSignature: package:slapd:2.4.31-1+nmu2ubuntu8.1:subprocess installed post-installation script returned error exit status 1 ErrorMessage: subprocess installed post-installation script returned error exit status 1 InstallationDate: Installed on 2015-07-03 (0 days ago) InstallationMedia: Ubuntu 14.04.2 LTS "Trusty Tahr" - Release amd64 (20150218.1) SourcePackage: openldap Title: package slapd 2.4.31-1+nmu2ubuntu8.1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1 UpgradeStatus: No upgrade log present (probably fresh install) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/openldap/+bug/1471370/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp