[Bug 1550726] [NEW] [apt-utils] apt-ftparchive reports wrong file size and checksums in Packages

jean-christophe manciot manciot.jeanchristophe at gmail.com
Sat Feb 27 14:53:51 UTC 2016


Public bug reported:

On Linux 4.2.0-30-generic #36-Ubuntu SMP Fri Feb 26 00:58:07 UTC 2016 x86_64 GNU/Linux
with apt-utils  1.0.10.2

Generating Packages with (apt-ftparchive.conf is attached below.):
apt-ftparchive generate --contents=off ./apt-ftparchive.conf
Generated Packages contains:
#################################################################
Package: nemo
...
Installed-Size: 9508
...
Version: 2.8.6-11
...
Filename: dists/wily/system-tools/binary-amd64/nemo_2.8.6-11_amd64.deb
Size: 1392338
MD5sum: de162d539df28402f54761f671259278
SHA1: fb5ebacfc032071d3715dce18640deb649732048
SHA256: d0c52eb9bd8224e3d876dc6426ccc1ed49f975038152c53faacd5e71e0a19a33
SHA512: e1cc7eb9865c9f3f5a8d4a8f4406862617e285a080bf6c894b3295088a4406a149b53e27ae379c43335a4231e60966f7068412e93173a6e9bfaa8c48b43ac616
#################################################################

However, on disk, we have very different file size & checksums:
ll nemo*
-rw-r--r-- 1 actionmystique actionmystique 1082324 Feb 27 15:01 nemo_2.8.6-11_amd64.deb

md5sum nemo_2.8.6-11_amd64.deb
68d5c945d9ccd9d3d2807ba46e33cc42  nemo_2.8.6-11_amd64.deb

If we generate Packages differently with:
apt-ftparchive packages . > Packages
Generated Packages contains this time correct file size & checksums:
#################################################################
Package: nemo
...
Installed-Size: 5284
...
Version: 2.8.6-11
...
Filename: ./nemo_2.8.6-11_amd64.deb
Size: 1082324
MD5sum: 68d5c945d9ccd9d3d2807ba46e33cc42
SHA1: eecee7a24c20843c15997adcddcd3dad38c9c831
SHA256: 83451ab9c9975dc7e18d43f2a7d223000c4ee84c9383e82a6461bffef641760a
SHA512: ce715c1d480607e347511562f6d29d10eddb900d2ced3a82d1db08e2bc1a9c24974d3c59cc1e1e83b19ba5dac90d0cc80c7288606e6e3ac06d3551df3550ad09
#################################################################

What is very strange is that all other packages in the same folder are
correctly described by Packages when using the first method for
generating Packages.

I have the same issue with another package in another folder.

I have also uploaded the deb.
Any suggestion?

N.B: I can upload the second package if necessary.

** Affects: apt (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: checksums packages size

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

Title:
  [apt-utils] apt-ftparchive reports wrong file size and checksums in
  Packages

Status in apt package in Ubuntu:
  New

Bug description:
  On Linux 4.2.0-30-generic #36-Ubuntu SMP Fri Feb 26 00:58:07 UTC 2016 x86_64 GNU/Linux
  with apt-utils  1.0.10.2

  Generating Packages with (apt-ftparchive.conf is attached below.):
  apt-ftparchive generate --contents=off ./apt-ftparchive.conf
  Generated Packages contains:
  #################################################################
  Package: nemo
  ...
  Installed-Size: 9508
  ...
  Version: 2.8.6-11
  ...
  Filename: dists/wily/system-tools/binary-amd64/nemo_2.8.6-11_amd64.deb
  Size: 1392338
  MD5sum: de162d539df28402f54761f671259278
  SHA1: fb5ebacfc032071d3715dce18640deb649732048
  SHA256: d0c52eb9bd8224e3d876dc6426ccc1ed49f975038152c53faacd5e71e0a19a33
  SHA512: e1cc7eb9865c9f3f5a8d4a8f4406862617e285a080bf6c894b3295088a4406a149b53e27ae379c43335a4231e60966f7068412e93173a6e9bfaa8c48b43ac616
  #################################################################

  However, on disk, we have very different file size & checksums:
  ll nemo*
  -rw-r--r-- 1 actionmystique actionmystique 1082324 Feb 27 15:01 nemo_2.8.6-11_amd64.deb

  md5sum nemo_2.8.6-11_amd64.deb
  68d5c945d9ccd9d3d2807ba46e33cc42  nemo_2.8.6-11_amd64.deb

  If we generate Packages differently with:
  apt-ftparchive packages . > Packages
  Generated Packages contains this time correct file size & checksums:
  #################################################################
  Package: nemo
  ...
  Installed-Size: 5284
  ...
  Version: 2.8.6-11
  ...
  Filename: ./nemo_2.8.6-11_amd64.deb
  Size: 1082324
  MD5sum: 68d5c945d9ccd9d3d2807ba46e33cc42
  SHA1: eecee7a24c20843c15997adcddcd3dad38c9c831
  SHA256: 83451ab9c9975dc7e18d43f2a7d223000c4ee84c9383e82a6461bffef641760a
  SHA512: ce715c1d480607e347511562f6d29d10eddb900d2ced3a82d1db08e2bc1a9c24974d3c59cc1e1e83b19ba5dac90d0cc80c7288606e6e3ac06d3551df3550ad09
  #################################################################

  What is very strange is that all other packages in the same folder are
  correctly described by Packages when using the first method for
  generating Packages.

  I have the same issue with another package in another folder.

  I have also uploaded the deb.
  Any suggestion?

  N.B: I can upload the second package if necessary.

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



More information about the foundations-bugs mailing list