With $ DEBIAN_FRONTEND=noninteractive apt-get -o Dir=/tmp/broken-apt2 -o Dir::state::status=./var/lib/dpkg/status dist-upgrade -o Debug::pkgDpkgPM=1 2>&1 | egrep '(libcurl3-gnutls|libldap-2.4-2)' /usr/bin/dpkg --status-fd 260 --unpack .. /var/cache/apt/archives/libldap-2.4-2_2.4.21-0ubuntu5.3_amd64.deb /tmp/broken-apt2/var/cache/apt/archives/libcurl3-gnutls_7.19.7-1ubuntu1_amd64.deb ... /usr/bin/dpkg --status-fd 434 --configure .. libcurl3-gnutls .. /usr/bin/dpkg --status-fd 448 --configure .. libldap-2.4-2 ..
But this should have happend in the same configure run!
With FRONTEND= noninteractive apt-get -o Dir=/tmp/ broken- apt2 -o Dir::state: :status= ./var/lib/ dpkg/status dist-upgrade -o Debug::pkgDpkgPM=1 2>&1 | egrep '(libcurl3- gnutls| libldap- 2.4-2)' apt/archives/ libldap- 2.4-2_2. 4.21-0ubuntu5. 3_amd64. deb /tmp/broken- apt2/var/ cache/apt/ archives/ libcurl3- gnutls_ 7.19.7- 1ubuntu1_ amd64.deb ...
$ DEBIAN_
/usr/bin/dpkg --status-fd 260 --unpack .. /var/cache/
/usr/bin/dpkg --status-fd 434 --configure .. libcurl3-gnutls ..
/usr/bin/dpkg --status-fd 448 --configure .. libldap-2.4-2 ..
But this should have happend in the same configure run!