Comment 11 for bug 332350

Revision history for this message
Steve Beattie (sbeattie) wrote :

Martin, I'm re-opening this bug after having it occur in a jaunty -> karmic upgrade, as reported in duplicate bug 402115. How this occurred for me is, if during the early stages of an upgrade when it attempts to update the apt cache after rewriting /etc/apt/sources.list, if the apt cache update fails for some reason, the upgrader leaves behind log files in /var/log/dist-upgrade/YYYYMMDD-HHMM/ and then quits. On a *subsequent* upgrade, if during a package maintainer script there is a failure, /usr/share/apport/package_hook gets invoked with /var/log/dist-upgrade/ as a logdir argument. /usr/share/apport/package_hook attempts to attach everything in this directory as files, which doesn't work so well on subdirectories.