Package: slapd Version: 2.2.23-2 Severity: important Preconditions:
slapd would not upgrade, so I removed it (apt-get remove slapd) and ran install (apt-get install slapd). Error during install: Reading Package Lists... Done Building Dependency Tree... Done Suggested packages: openldap-guide The following NEW packages will be installed: slapd 0 upgraded, 1 newly installed, 0 to remove and 39 not upgraded. Need to get 796kB of archives. After unpacking 2241kB of additional disk space will be used. Get:1 http://ftp.fi.debian.org unstable/main slapd 2.2.23-2 [796kB] Fetched 796kB in 2s (278kB/s) Preconfiguring packages ... Selecting previously deselected package slapd. (Reading database ... 120482 files and directories currently installed.) Unpacking slapd (from .../slapd_2.2.23-2_i386.deb) ... Setting up slapd (2.2.23-2) ... Backing up /etc/ldap/slapd.conf in /var/backups/slapd-2.2.23-1... done. Enabling LDAPv2 support... already enabled. Moving old database directories to /var/backups: Loading from /var/backups/slapd-2.2.23-1: - directory dc=cante,dc=net... /var/lib/dpkg/info/slapd.postinst: line 103: /var/backups/slapd-2.2.23-1/dc=cante,dc=net.ldif: No such file or directory /var/lib/dpkg/info/slapd.postinst: line 106: [: : integer expression expected failed. Loading the database from the LDIF dump failed with the following error while running slapadd: /var/backups/slapd-2.2.23-1/dc=cante,dc=net.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) The offending code: 96 automatic_ldif_fixing_wanted_for() { # 96 {{{ 97 # Check if the user wants us to automatically fix the given LDIF file. 98 # Usage: if automatic_ldif_fixing_wanted_for "$file"; then ... 99 # XXX: Use debconf to configure this 100 101 local file size maxsize 102 file="$1" 103 size=`wc -c < "$file"` 104 maxsize=$((1024 * 1024 * 20)) 105 106 if [ "$size" -lt "$maxsize" ]; then 107 return 0 108 else 109 return 1 110 fi 111 } Suggestion: Check for existence of file before proceeding. -- System Information: Debian Release: 3.1 APT prefers unstable APT policy: (500, 'unstable'), (1, 'experimental') Architecture: i386 (i686) Kernel: Linux 2.6.10-1-686 Locale: LANG=C, LC_CTYPE=C (charmap=ISO-8859-1) (ignored: LC_ALL set to en_US) Versions of packages slapd depends on: ii coreutils [fileutils] 5.2.1-2 The GNU core utilities ii debconf 1.4.48 Debian configuration management sy ii libc6 2.3.2.ds1-20 GNU C Library: Shared libraries an ii libdb4.2 4.2.52-18 Berkeley v4.2 Database Libraries [ ii libiodbc2 3.52.2-3 iODBC Driver Manager ii libldap-2.2-7 2.2.23-2 OpenLDAP libraries ii libltdl3 1.5.6-6 A system independent dlopen wrappe ii libperl5.8 5.8.4-8 Shared Perl library ii libsasl2 2.1.19-1.5 Authentication abstraction library ii libslp1 1.0.11a-2 OpenSLP libraries ii libssl0.9.7 0.9.7e-3 SSL shared libraries ii libwrap0 7.6.dbs-8 Wietse Venema's TCP wrappers libra ii perl [libmime-base64-perl] 5.8.4-8 Larry Wall's Practical Extraction ii psmisc 21.6-1 Utilities that use the proc filesy -- debconf information excluded -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]