Comment 0 for bug 1002535

Brian Murray (brian-murray) wrote :

In bug 1001715 we can see a package installation failure with the message:

 dpkg-deb: error: `/var/cache/apt/archives/openjdk-7-jre-lib_7~u3-2.1.1~pre1-1ubuntu2_all.deb' is not a debian format archive

These should not be reportable as they are indicative a corrupt or faulty package. I've committed a fix for this to apport for Quantal:

However, only 24 of these have been reported so far:

so an SRU may not be worth the work. In the event the we decide it is Steve Langasek came up with the following for recreating the error with a good package:


set -e

for i in "$@"
    case $i in
            cp /bin/bash $i

exec /usr/bin/dpkg.real "$@"