Package: slapd Version: 2.4.9-1 Severity: important Upgrading fails as the ldif file is not created as expected. To overcome this I restored the backup into /var/lib/ldap, then did slapcat > /var/backups/slapd-2.3.35-2/dc=localdomain.ldif, removed the /var/backup/dc=localdomain-2.3.35-2.ldapdb folder which was created during upgrade, and again ran apt-get -f install.
Output follows: Setting up slapd (2.4.9-1) ... Backing up /etc/ldap/slapd.conf in /var/backups/slapd-2.3.35-2... done. Upgrading BDB 'checkpoint' options... . Moving old database directories to /var/backups: - directory dc=localdomain... done. Loading from /var/backups/slapd-2.3.35-2: - directory dc=localdomain... failed. Loading the database from the LDIF dump failed with the following error while running slapadd: /var/backups/slapd-2.3.35-2/dc=localdomain.ldif: No such file or directory dpkg: error processing slapd (--configure): subprocess post-installation script returned error exit status 1 Errors were encountered while processing: slapd E: Sub-process /usr/bin/dpkg returned an error code (1) -- System Information: Debian Release: lenny/sid APT prefers testing APT policy: (500, 'testing') Architecture: amd64 (x86_64) Kernel: Linux 2.6.24-1-amd64 (SMP w/1 CPU core) Locale: LANG=en_AU, LC_CTYPE=en_AU (charmap=ISO-8859-1) Shell: /bin/sh linked to /bin/bash Versions of packages slapd depends on: ii adduser 3.104 add and remove users and groups ii coreutils 5.97-5.3 The GNU core utilities ii debconf [debconf-2.0] 1.5.14 Debian configuration management sy ii libc6 2.7-6 GNU C Library: Shared libraries ii libdb4.2 4.2.52+dfsg-2 Berkeley v4.2 Database Libraries [ ii libgnutls26 2.2.5-1 the GNU TLS library - runtime libr ii libldap-2.4-2 2.4.9-1 OpenLDAP libraries ii libltdl3 1.5.22-4 A system independent dlopen wrappe ii libperl5.10 5.10.0-10 Shared Perl library ii libsasl2-2 2.1.22.dfsg1-21 Cyrus SASL - authentication abstra ii libslp1 1.2.1-6.2 OpenSLP libraries ii libwrap0 7.6.dbs-14 Wietse Venema's TCP wrappers libra ii perl [libmime-base64-per 5.10.0-10 Larry Wall's Practical Extraction ii psmisc 22.5-1 Utilities that use the proc filesy ii unixodbc 2.2.11-16 ODBC tools libraries Versions of packages slapd recommends: ii libsasl2-modules 2.1.22.dfsg1-21 Cyrus SASL - pluggable authenticat -- debconf information: * slapd/password2: (password omitted) slapd/internal/adminpw: (password omitted) * slapd/password1: (password omitted) slapd/tlsciphersuite: slapd/fix_directory: true shared/organization: localdomain slapd/upgrade_slapcat_failure: slapd/backend: BDB slapd/allow_ldap_v2: false slapd/no_configuration: false slapd/move_old_database: true slapd/suffix_change: false slapd/slave_databases_require_updateref: slapd/dump_database_destdir: /var/backups/slapd-VERSION slapd/autoconf_modules: true slapd/domain: localdomain slapd/password_mismatch: slapd/invalid_config: true slapd/slurpd_obsolete: slapd/upgrade_slapadd_failure: slapd/dump_database: when needed slapd/migrate_ldbm_to_bdb: false slapd/purge_database: false -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]