Package: sasl2-bin Version: 2.1.26.dfsg1-13 Severity: normal Hello Roberto,
I'm upgrading from wheezy to jessie with sudo apt-get dist-upgrade. That failed with the following error message: Configuring sasl2-bin --------------------- Failed to upgrade /etc/sasldb2 The /etc/sasldb2 file could not be upgraded to the new database format. This is a fatal error and will cause the package installation to fail. The configuration process will attempt to restore the backup of this file to its original location. Please eliminate all possible reasons that might lead to this failure, then try to configure this package again. After reading #716723, I've tried re-creating the database from scratch: sudo db4.6_dump /etc/sasldb2 >sasldb2.dump sudo rm /etc/sasldb2 sudo db5.1_load /etc/sasldb2 <sasldb2.dump sudo chgrp sasl /etc/sasldb2 sudo chmod 660 /etc/sasldb2 That didn't help, sudo apt-get -f install still failed. Then I added #!/bin/sh -x to /var/lib/dpkg/info/sasl2-bin.postinst and ran sudo /var/lib/dpkg/info/sasl2-bin.postinst configure 2.1.25.dfsg1-6+deb7u1. That resulted, among others, in the following: + db5.3_upgrade /etc/sasldb2 + db_input high cyrus-sasl2/upgrade-sasldb2-failed Running sudo db5.3_upgrade /etc/sasldb2 manually resulted in: sudo: db5.3_upgrade: command not found So, I've installed db5.3-util, and postinst worked fine. I think if the package explicitly calls db5.3_upgrade, it should depend on db5.3-util, or otherwise ensure db5.3_upgrade is present. In my case, the following packages were installed: ii db-util 5.1.6 all ii db4.6-util 4.6.21-16 i386 ii db5.1-util 5.1.29-9 i386 ii libdb2 2:2.7.7.0-9 i386 ii libdb3 3.2.9+dfsg-0.1 i386 ii libdb3-util 3.2.9+dfsg-0.1 i386 ii libdb4.3 4.3.29-8 i386 ii libdb4.5 4.5.20-13 i386 ii libdb4.6 4.6.21-16 i386 ii libdb4.8 4.8.30-2 i386 rc libdb5.1:i386 5.1.29-5 i386 ii libdb5.3:i386 5.3.28-9 i386 The dependencies are satisfied, but db5.3-util is missing. With kind regards, Baurzhan. -- System Information: Debian Release: 8.1 APT prefers stable APT policy: (700, 'stable') Architecture: i386 (i686) Kernel: Linux 2.6.32-5-686 (SMP w/1 CPU core) Locale: LANG=, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages sasl2-bin depends on: ii db-util 5.1.6 ii debconf [debconf-2.0] 1.5.56 ii libc6 2.19-18 ii libcomerr2 1.42.12-1.1 ii libdb5.3 5.3.28-9 ii libgssapi-krb5-2 1.12.1+dfsg-19 ii libk5crypto3 1.12.1+dfsg-19 ii libkrb5-3 1.12.1+dfsg-19 ii libldap-2.4-2 2.4.40+dfsg-1 ii libpam0g 1.1.8-3.1 ii libsasl2-2 2.1.26.dfsg1-13 ii libssl1.0.0 1.0.1k-3 sasl2-bin recommends no packages. sasl2-bin suggests no packages. -- debconf information: * cyrus-sasl2/upgrade-sasldb2-failed: cyrus-sasl2/upgrade-sasldb2-backup-failed: cyrus-sasl2/backup-sasldb2: /var/backups/sasldb2.bak cyrus-sasl2/purge-sasldb2: false -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

