This should be closed - I solved the problem by going around it, and can't reproduce it.
** Description changed: When I do either apt-get update; apt-get upgrade or aptitude upgrade, the process exits on error without completing fully. The error is: 72 packages upgraded, 1 newly installed, 2 to remove and 0 not upgraded. Need to get 0B/116MB of archives. After unpacking 42.2MB will be used. - Do you want to continue? [Y/n/?] + Do you want to continue? [Y/n/?] Writing extended state information... Done Extracting templates from packages: 100% Preconfiguring packages ... - Unknown value for slapd/dump_database: when needed + Unknown value for slapd/dump_database: when needed Please report! slapd failed to preconfigure, with exit status 1 (Reading database ... 119566 files and directories currently installed.) Preparing to replace slapd 2.4.21-0ubuntu5.3 (using .../slapd_2.4.21-0ubuntu5.5_amd64.deb) ... - Unknown value for slapd/dump_database: when needed + Unknown value for slapd/dump_database: when needed Please report! dpkg: error processing /var/cache/apt/archives/slapd_2.4.21-0ubuntu5.5_amd64.deb (--unpack): - subprocess new pre-installation script returned error exit status 1 + subprocess new pre-installation script returned error exit status 1 Errors were encountered while processing: - /var/cache/apt/archives/slapd_2.4.21-0ubuntu5.5_amd64.deb + /var/cache/apt/archives/slapd_2.4.21-0ubuntu5.5_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1) A package failed to install. Trying to recover: dpkg: dependency problems prevent configuration of slapd: - slapd depends on libldap-2.4-2 (= 2.4.21-0ubuntu5.3); however: - Version of libldap-2.4-2 on system is 2.4.21-0ubuntu5.5. + slapd depends on libldap-2.4-2 (= 2.4.21-0ubuntu5.3); however: + Version of libldap-2.4-2 on system is 2.4.21-0ubuntu5.5. dpkg: error processing slapd (--configure): - dependency problems - leaving unconfigured + dependency problems - leaving unconfigured Errors were encountered while processing: - slapd - Reading package lists... Done - Building dependency tree - Reading extended state information + slapd + Reading package lists... Done + Building dependency tree + Reading extended state information Initializing package states... Done Writing extended state information... Done ** Changed in: openldap (Ubuntu) Status: Incomplete => Invalid -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to openldap in Ubuntu. https://bugs.launchpad.net/bugs/844478 Title: apt upgrade exits on error with slapd_2.4.21-0ubuntu5.5_amd64.deb To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/openldap/+bug/844478/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs