[Bug 796329] Re: package slapd 2.4.23-6ubuntu6 failed to remove: subprocess installed pre-removal script returned error exit status 1

James Page 796329 at bugs.launchpad.net
Thu Jun 23 10:11:09 UTC 2011


Hi Patrick

It looks like the olcPidFile entry is missing from your slapd
configuration; I also noticed this error in your original bug report:

 CNConfig: Error: [Errno 2] No such file or directory

which indicates that the configuration is general not good.

The premoval script attempts to shutdown slapd prior to removing the
package; if the olcPidFile entry is not present in
/etc/ldap/slapd.d/cn=config.ldif or /etc/ldap/slapd.conf (depending on
your configuration style) the removal will fail as it is unable to
shutdown the slapd process.

You should be able to resolve this situation by running the following
commands (if you are using /etc/ldap/slapd.d configuration style):

  sudo echo "olcPidFile: /var/run/slapd/slapd.pid" >> /etc/ldap/slapd.d/cn=config.ldif
  sudo apt-get remove slapd

Please mark this bug report as 'Invalid' if this resolves your issue.

Thanks


** Changed in: openldap (Ubuntu)
       Status: New => Incomplete

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to openldap in Ubuntu.
https://bugs.launchpad.net/bugs/796329

Title:
  package slapd 2.4.23-6ubuntu6 failed to remove: subprocess installed
  pre-removal script returned error exit status 1

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openldap/+bug/796329/+subscriptions



More information about the Ubuntu-server-bugs mailing list