[Bug 1274466] Re: apt-ftparchive on-disk cache format changed between lucid and precise, results in Packages files with silently corrupted checksums fields

Michael Vogt michael.vogt at canonical.com
Wed Jun 4 09:37:24 UTC 2014


Here is a fix for the bug. Its a bit heavy handed and will discard the
record if the on-disk size and the struct size mismatch. This is not
strictly needed if the struct StatStore is just appended and the
FlagList is correctly used. It is in this case as the struct changed
size right in the middle.

** Patch added: "possible fix"
   https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1274466/+attachment/4125218/+files/apt-lp1274466.patch

-- 
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/1274466

Title:
  apt-ftparchive on-disk cache format changed between lucid and precise,
  results in Packages files with silently corrupted checksums fields

Status in “apt” package in Ubuntu:
  Confirmed

Bug description:
  The archive.ubuntu.com master server has just been upgraded from lucid
  to precise.  As a result, the apt version went from 0.7.25.3 to
  0.8.16~exp12, and apparently some time in that interval the on-disk
  format of apt-ftparchive's cache changed.

  This wouldn't be a problem, except apt-ftparchive itself doesn't
  *notice* that the cache format has changed, and instead happily reads
  the existing files and parses them incorrectly, resulting in corrupted
  checksums output in the Packages file for each of the .debs.

  apt-ftparchive should version its file formats so that it correctly
  notices incompatible cache files.

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



More information about the foundations-bugs mailing list