[Pkg-openldap-devel] Bug#633133: slapd: package purge/install breaks

Isaac Freeman isaac at us.ibm.com
Fri Jul 8 18:58:19 UTC 2011


Package: slapd
Version: 2.4.23-7.2
Severity: important


aptitude remove --purge slapd

followed by 

aptitude install slapd

reports errors with post-install scripts trying to manipulate configuration files.

Full session log:

(0) isaac @ ldap2 : ~
$ sudo aptitude remove --purge slapd
The following packages will be REMOVED:  
  libltdl7{pu} libperl5.10{pu} libslp1{pu} odbcinst{pu} 
  odbcinst1debian2{pu} slapd unixodbc{pu} 
0 packages upgraded, 0 newly installed, 7 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 5,685 kB will be freed.
Do you want to continue? [Y/n/?] 
(Reading database ... 30426 files and directories currently installed.)
Removing slapd ...
Stopping OpenLDAP: slapd.
Processing triggers for man-db ...
(Reading database ... 30207 files and directories currently installed.)
Removing unixodbc ...
Purging configuration files for unixodbc ...
Removing libperl5.10 ...
Removing libslp1 ...
Purging configuration files for libslp1 ...
Removing odbcinst1debian2 ...
Purging configuration files for odbcinst1debian2 ...
Removing odbcinst ...
Purging configuration files for odbcinst ...
Removing libltdl7 ...
Purging configuration files for libltdl7 ...
Processing triggers for man-db ...
                                         

(0) isaac @ ldap2 : ~
$ 

(0) isaac @ ldap2 : ~
$ 

(0) isaac @ ldap2 : ~
$ sudo aptitude install slapd
[sudo] password for isaac: 

(1) isaac @ ldap2 : ~
$ cd /var/lib/ldap/

(0) isaac @ ldap2 : /var/lib/ldap
$ ls
alock     __db.004   entryCSN.bdb   log.0000000001   ou.bdb
cn.bdb    __db.005   entryUUID.bdb  loginShell.bdb   sn.bdb
__db.001  __db.006   gidNumber.bdb  mail.bdb         sudoUser.bdb
__db.002  DB_CONFIG  givenName.bdb  memberUid.bdb    uid.bdb
__db.003  dn2id.bdb  id2entry.bdb   objectClass.bdb  uidNumber.bdb

(0) isaac @ ldap2 : /var/lib/ldap
$ cd ..

(0) isaac @ ldap2 : /var/lib
$ sudo mv ldap/ ldap-bak
[sudo] password for isaac: 

(0) isaac @ ldap2 : /var/lib
$ sudo aptitude install slapd
The following NEW packages will be installed:
  libltdl7{a} libperl5.10{a} libslp1{a} odbcinst{a} odbcinst1debian2{a} 
  slapd unixodbc{a} 
0 packages upgraded, 7 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/2,325 kB of archives. After unpacking 5,685 kB will be used.
Do you want to continue? [Y/n/?] 
Preconfiguring packages ...              
Selecting previously deselected package libltdl7.
(Reading database ... 30127 files and directories currently installed.)
Unpacking libltdl7 (from .../libltdl7_2.2.6b-2_amd64.deb) ...
Selecting previously deselected package libperl5.10.
Unpacking libperl5.10 (from .../libperl5.10_5.10.1-17squeeze2_amd64.deb) ...
Selecting previously deselected package libslp1.
Unpacking libslp1 (from .../libslp1_1.2.1-7.8_amd64.deb) ...
Selecting previously deselected package odbcinst.
Unpacking odbcinst (from .../odbcinst_2.2.14p2-1_amd64.deb) ...
Selecting previously deselected package odbcinst1debian2.
Unpacking odbcinst1debian2 (from .../odbcinst1debian2_2.2.14p2-1_amd64.deb) ...
Selecting previously deselected package unixodbc.
Unpacking unixodbc (from .../unixodbc_2.2.14p2-1_amd64.deb) ...
Selecting previously deselected package slapd.
Unpacking slapd (from .../slapd_2.4.23-7.2_amd64.deb) ...
Processing triggers for man-db ...
Setting up libltdl7 (2.2.6b-2) ...
Setting up libperl5.10 (5.10.1-17squeeze2) ...
Setting up libslp1 (1.2.1-7.8) ...
Setting up odbcinst (2.2.14p2-1) ...
Setting up odbcinst1debian2 (2.2.14p2-1) ...
Setting up unixodbc (2.2.14p2-1) ...
Setting up slapd (2.4.23-7.2) ...
  Backing up /etc/ldap/slapd.d in /var/backups/slapd-2.4.23-7.2... done.
Starting OpenLDAP: slapd failed!
invoke-rc.d: initscript slapd, action "start" failed.
dpkg: error processing slapd (--configure):
 subprocess installed post-installation script returned error exit status 1
configured to not write apport reports
                                      Errors were encountered while processing:
 slapd
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:
Setting up slapd (2.4.23-7.2) ...
  Backing up /etc/ldap/slapd.d in /var/backups/slapd-2.4.23-7.2... done.
Starting OpenLDAP: slapd failed!
invoke-rc.d: initscript slapd, action "start" failed.
dpkg: error processing slapd (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 slapd
                                         

(255) isaac @ ldap2 : /var/lib
$ 



-- System Information:
Debian Release: 6.0.2
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages slapd depends on:
ii  adduser                3.112+nmu2        add and remove users and groups
ii  coreutils              8.5-1             GNU core utilities
ii  debconf [debconf-2.0]  1.5.36.1          Debian configuration management sy
ii  libc6                  2.11.2-10         Embedded GNU C Library: Shared lib
ii  libdb4.8               4.8.30-2          Berkeley v4.8 Database Libraries [
ii  libgnutls26            2.8.6-1           the GNU TLS library - runtime libr
ii  libldap-2.4-2          2.4.23-7.2        OpenLDAP libraries
ii  libltdl7               2.2.6b-2          A system independent dlopen wrappe
ii  libperl5.10            5.10.1-17squeeze2 shared Perl library
ii  libsasl2-2             2.1.23.dfsg1-7    Cyrus SASL - authentication abstra
ii  libslp1                1.2.1-7.8         OpenSLP libraries
ii  libwrap0               7.6.q-19          Wietse Venema's TCP wrappers libra
ii  lsb-base               3.2-23.2squeeze1  Linux Standard Base 3.2 init scrip
ii  perl [libmime-base64-p 5.10.1-17squeeze2 Larry Wall's Practical Extraction 
ii  psmisc                 22.11-1           utilities that use the proc file s
ii  unixodbc               2.2.14p2-1        ODBC tools libraries

Versions of packages slapd recommends:
ii  libsasl2-modules          2.1.23.dfsg1-7 Cyrus SASL - pluggable authenticat

Versions of packages slapd suggests:
ii  ldap-utils                    2.4.23-7.2 OpenLDAP utilities

-- Configuration Files:
/etc/default/slapd changed [not included]

-- debconf information excluded





More information about the Pkg-openldap-devel mailing list