[Bug 978587] Re: dpkg should recover more gracefully from decompressing errors

Raphaël Hertzog hertzog at debian.org
Wed Apr 11 06:14:17 UTC 2012


I don't know who asked you that, but no. dpkg can't recover from a
corrupted file... at best it should be the responsibility of apt to
ensure that the .deb file it feeds to dpkg are the same than what was
expected during download.

I'm not sure if there's such a request already in APT's bug list. I'm
reassigning it just in case it's not...

** Package changed: dpkg (Ubuntu) => apt (Ubuntu)

** Summary changed:

- dpkg should recover more gracefully from decompressing errors
+ apt should ensure .deb are not corrupted before handing them to dpkg

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to apt in Ubuntu.
https://bugs.launchpad.net/bugs/978587

Title:
  apt should ensure .deb are not corrupted before handing them to dpkg

Status in “apt” package in Ubuntu:
  New

Bug description:
  Upon upgrading to libreoffice-core 3.5.2 version, I stumbled upon what
  seems to be a bad download issue:

  Preparing to replace libreoffice-core 1:3.5.1-1ubuntu5 (using .../libreoffice-core_1%3a3.5.2-2ubuntu1_amd64.deb) ...
  rmdir: failed to remove `/var/lib/libreoffice/basis3.4/program/': No such file or directory
  rmdir: failed to remove `/var/lib/libreoffice/basis3.4': No such file or directory
  Unpacking replacement libreoffice-core ...
  dpkg-deb (subprocess): data: internal bzip2 read error: 'DATA_ERROR'
  dpkg-deb: error: subprocess <decompress> returned error exit status 2
  dpkg: error processing /var/cache/apt/archives/libreoffice-core_1%3a3.5.2-2ubuntu1_amd64.deb (--unpack):
   subprocess dpkg-deb --fsys-tarfile returned error exit status 2

  I was asked to file a bug about it, as it might be possible for dpkg
  to recover from that more gracefully.

  Further information upon requests.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/978587/+subscriptions




More information about the foundations-bugs mailing list