apt-get produce an error when I tray install or unisntall slapd

Bug #298928 reported by ulisesibarra
4
Affects Status Importance Assigned to Milestone
openldap (Ubuntu)
Fix Released
Medium
Mathias Gug

Bug Description

1.-Ubuntu 8.10 - l Intrepid Ibex
2.-ulises@ulises-laptop:~$ apt-cache policy slapd
slapd:
  Instalados: 2.4.11-0ubuntu6
  Candidato: 2.4.11-0ubuntu6
  Tabla de versión:
 *** 2.4.11-0ubuntu6 0
        500 http://mx.archive.ubuntu.com intrepid/main Packages
        100 /var/lib/dpkg/status

Description to the problem:

When you try to uninstall "slapd" with synaptic this is hung, frozen whole system, then I had to reboot.
After start the system again, as appeared uninstalled the sldap, and when I to try to intall it gave me as result as follows:

Se ha producido un error

Se proporcionan los siguientes detalles:

E: slapd: el subproceso post-installation script devolvió el código de salida de error 1

----------
Greetings

Ulises Ibarra

ProblemType: Package
Architecture: i386
DistroRelease: Ubuntu 8.10
ErrorMessage: el subproceso post-installation script devolvió el código de salida de error 1
Package: slapd 2.4.11-0ubuntu6
SourcePackage: openldap
Title: package slapd 2.4.11-0ubuntu6 failed to install/upgrade: el subproceso post-installation script devolvió el código de salida de error 1
Uname: Linux 2.6.27-7-generic i686

Revision history for this message
ulisesibarra (ulisesmartinibarra) wrote :
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Thanks for your report.

The cause of the failure is:
=====
Desempaquetando slapd (de .../slapd_2.4.11-0ubuntu6_i386.deb) ...
Procesando activadores para man-db ...
Configurando slapd (2.4.11-0ubuntu6) ...
  Backing up /etc/ldap/slapd.d/ in /var/backups/slapd-2.4.11-0ubuntu6... done.
chown: no se puede acceder a «/var/run/slapd»: No existe el fichero ó directorio
dpkg: error al procesar slapd (--configure):
 el subproceso post-installation script devolvió el código de salida de error 1
=====

This is due to /var/run being of type tmpfs . The fix is to modify the initscript to create the directory in /var/run/ if it does not exist, and then remove anything to do with /var/run from the postinst.

Changed in openldap:
importance: Undecided → Medium
status: New → Triaged
Mathias Gug (mathiaz)
Changed in openldap:
assignee: nobody → mathiaz
status: Triaged → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package openldap - 2.4.15-1ubuntu2

---------------
openldap (2.4.15-1ubuntu2) jaunty; urgency=low

  * debian/slapd.postinst: create /var/run/slapd before updating its
    permissions (LP: #298928).
  * debian/slapd.init: Correclty set slapd config backend option even if the
    pidfile is configured in slapd default file (LP: #292364).
  * debian/apparmor-profile: support multiple databases to be stored under
    /var/lib/ldap/. (LP: #286614).

 -- Mathias Gug <email address hidden> Fri, 13 Mar 2009 13:56:12 -0400

Changed in openldap:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.