[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#799158: marked as done (Acquire::GzipIndexes breaks "copy" APT method ("Hash Sum mismatch"))



Your message dated Fri, 13 Nov 2015 17:19:27 +0000
with message-id <E1ZxI0V-0004yj-Vx@franck.debian.org>
and subject line Bug#799158: fixed in apt 1.1~exp15
has caused the Debian Bug report #799158,
regarding Acquire::GzipIndexes breaks "copy" APT method ("Hash Sum mismatch")
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
799158: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=799158
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: apt
Version: 1.0.10.2

Hi,

Docker's Debian images do a few non-standard things with their APT
configuration, but in particular they add:

  Acquire::GzipIndexes "true";

(This reduced their wheezy image from 30MB -> 8MB.)

However, this doesn't seem to work when using the "copy" APT method:

  $ cat /etc/apt/sources.list
  deb copy:/home/mirror/mirror.chris-lamb.co.uk/debian sid main
  deb-src copy:/home/mirror/mirror.chris-lamb.co.uk/debian sid main

  $ apt-get update
  Ign:1 copy:/home/mirror/mirror.chris-lamb.co.uk/debian sid InRelease
  Get:2 copy:/home/mirror/mirror.chris-lamb.co.uk/debian sid Release
  [252 kB]
  Get:3 copy:/home/mirror/mirror.chris-lamb.co.uk/debian sid Release.gpg
  [1554 B]
  Get:4 copy:/home/mirror/mirror.chris-lamb.co.uk/debian sid/main
  Sources [10.5 MB]
  Err:4 copy:/home/mirror/mirror.chris-lamb.co.uk/debian sid/main
  Sources
    Hash Sum mismatch
  Get:5 copy:/home/mirror/mirror.chris-lamb.co.uk/debian sid/main amd64
  Packages [10.1 MB]
  Err:5 copy:/home/mirror/mirror.chris-lamb.co.uk/debian sid/main amd64
  Packages
    Hash Sum mismatch
  [..]

The files themselves seem to be match the hashes:

  $ grep main/source/Sources
  /home/mirror/mirror.chris-lamb.co.uk/debian/dists/sid/Release | head
  -n4
   debce8f250490c4bcb25cc0924cd926b 38111794 main/source/Sources
   c49a3e3a3f078dcaeb4ca4f271781f7a     7876
   main/source/Sources.diff/Index
   adfea60f28e7a58436c5e6972d771b77 10477560 main/source/Sources.gz
   8fc39dc141ae9314fb13124b4644611a  8099536 main/source/Sources.xz

  $ md5sum
  /home/mirror/mirror.chris-lamb.co.uk/debian/dists/sid/main/source/Sources.gz
  adfea60f28e7a58436c5e6972d771b77 
  /home/mirror/mirror.chris-lamb.co.uk/debian/dists/sid/main/source/Sources.gz

  $ gunzip -c
  /home/mirror/mirror.chris-lamb.co.uk/debian/dists/sid/main/source/Sources.gz
  | md5sum -
  debce8f250490c4bcb25cc0924cd926b  -

If it helps, methods/copy.cc has this:

 38 void CopyMethod::CalculateHashes(FetchResult &Res)
 39 {
 40    Hashes Hash;
 41    FileFd::CompressMode CompressMode = FileFd::None;
 42    if (_config->FindB("Acquire::GzipIndexes", false) == true)
 43       CompressMode = FileFd::Extension;
 44 
 45    FileFd Fd(Res.Filename, FileFd::ReadOnly, CompressMode);
 46    Hash.AddFD(Fd);
 47    Res.TakeHashes(Hash);
 48 }

Using the "file" method (or HTTP) on the same mirror works without
error.


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby@debian.org / chris-lamb.co.uk
       `-

--- End Message ---
--- Begin Message ---
Source: apt
Source-Version: 1.1~exp15

We believe that the bug you reported is fixed in the latest version of
apt, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 799158@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Michael Vogt <mvo@debian.org> (supplier of updated apt package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Wed, 11 Nov 2015 17:04:43 +0100
Source: apt
Binary: apt libapt-pkg5.0 libapt-inst2.0 apt-doc libapt-pkg-dev libapt-pkg-doc apt-utils apt-transport-https
Architecture: source all amd64
Version: 1.1~exp15
Distribution: experimental
Urgency: medium
Maintainer: APT Development Team <deity@lists.debian.org>
Changed-By: Michael Vogt <mvo@debian.org>
Description:
 apt        - commandline package manager
 apt-doc    - documentation for APT
 apt-transport-https - https download transport for APT
 apt-utils  - package management related utility programs
 libapt-inst2.0 - deb package format runtime library
 libapt-pkg-dev - development files for APT's libapt-pkg and libapt-inst
 libapt-pkg-doc - documentation for APT development
 libapt-pkg5.0 - package management runtime library
Closes: 218995 763437 778234 780700 781237 796549 799123 799158 801571 802553 802610 803471
Changes:
 apt (1.1~exp15) experimental; urgency=medium
 .
   [ Julian Andres Klode ]
   * deblistparser: Make PrioList const
   * srvrec: Do not expose C++11 tuple use in header
   * cacheset: Fix compilation on new GCC in C++98 mode
   * Provide tests for thread-safety
 .
   [ Mert Dirik ]
   * Turkish program translation update (Closes: 802610)
 .
   [ David Kalnischkies ]
   * implement a public pkgSystem::MultiArchSupported
   * implement a public pkgSystem::ArchitecturesSupported
   * implement operator* for cacheset iterators
   * refactor dpkg execution in deb/debsystem
   * provide public interface to hold/unhold packages
   * allow all dpkg selections to be set via apt-mark and libapt
   * drop privileges in file:// method as we do for decompressors
   * unbreak the copy-method claiming hashsum mismatch since ~exp9
     (Closes: 799158)
   * show progress info while 'downloading' a local .deb file
   * support .deb files in upgrade operations as well
   * rework errors and warnings around insecure repositories (Closes: 796549)
   * refer to apt-secure(8) in unsecure repositories warning
   * suggest 'apt autoremove' to get right of unneeded packages (Closes: 801571)
   * add binary-specific options via Binary scope
   * revamp apt(8) to refer more instead of duplicating
   * disable updating insecure repositories in apt by default
   * new quiet level -qq for apt to hide progress output
   * hidden support more apt-get/apt-cache commands in apt
     (Closes: 778234, 780700, 781237)
   * show version and type in "apt (r)depends" (Closes: 218995)
   * revamp all tools help messages
   * sanify API to get 'the' candidate version (Closes: #803471)
   * support arch:all data e.g. in separate Packages file
   * ignore newlines in dpkg-deb control output for installing debs
     (Closes: 802553)
   * allow acquire method specific options via Binary scope
   * encode UTF-8 characters correctly in QuoteString (Closes: 799123)
   * activate AI_IDN by default to support IDN domains (Closes: 763437)
Checksums-Sha1:
 da0fd67dc26205cc340fb3a1bff206c78b23f8c5 2331 apt_1.1~exp15.dsc
 5023048117dc83f077f93b406cce267f3f4279c0 1931860 apt_1.1~exp15.tar.xz
 ab9b0215755cb10683bdc13ef024e2c05c78f5b0 310980 apt-doc_1.1~exp15_all.deb
 0747303e77b22f6e8aa9a0617110bed4def2deb0 145860 apt-transport-https_1.1~exp15_amd64.deb
 a56f87d72876bc5d798ceecc114b4d83636c6a5d 369516 apt-utils_1.1~exp15_amd64.deb
 3a5c6da18754a6693f55e781d9e6603cf3305e21 1034996 apt_1.1~exp15_amd64.deb
 4b24d859b73f906614b10342e0e9270c7eda4901 175760 libapt-inst2.0_1.1~exp15_amd64.deb
 3608039adbef75ac15872457dd0fce0fa4bd4456 213230 libapt-pkg-dev_1.1~exp15_amd64.deb
 6596bfe5926b7eb2e4852be8c806df471d572e09 973190 libapt-pkg-doc_1.1~exp15_all.deb
 ab558ab724c03d803429183bf60f290a1f09979f 792038 libapt-pkg5.0_1.1~exp15_amd64.deb
Checksums-Sha256:
 0cedf073bf6e2e3d2fe4ca29e42748f90f6e9772d2edd38b60b72b653734a7ff 2331 apt_1.1~exp15.dsc
 cc41393c8543d3eaeae27eeb9d342fe150068494b401ec92875eb3ec64db69ba 1931860 apt_1.1~exp15.tar.xz
 a89386b2f31e2c3189fb2915da097eebc1bf86c4bee6e705bad2b225fa58a570 310980 apt-doc_1.1~exp15_all.deb
 84557b9461d30a580bde0ed759e5469b6228d7afde5751ba1c9e0e4b83a0c145 145860 apt-transport-https_1.1~exp15_amd64.deb
 50b84b837d3ab69172d883b643a1f03906cbbe21959dcfdd4ad5628c26ca0b22 369516 apt-utils_1.1~exp15_amd64.deb
 d87851e710a49603498322fa7db81b6db16eea3cd942029c391e2f425b9913ef 1034996 apt_1.1~exp15_amd64.deb
 2caff037ac00e90840bbf3e8b5aa65e6d530b121b20478832a805aa7d229d9c7 175760 libapt-inst2.0_1.1~exp15_amd64.deb
 21c5decf9a01b3e81f3137f25fa2b0ad9127cbff5222d58fab9824e7b5c805b7 213230 libapt-pkg-dev_1.1~exp15_amd64.deb
 e61d10ca9fac6af4ed2453dba72da8d3b3f5b4f0961bb259c6bece505c582652 973190 libapt-pkg-doc_1.1~exp15_all.deb
 8d7843fc186be34f9bd2e9885491d1ae350063e58f1b8d46dcf8822ac3a2ce8d 792038 libapt-pkg5.0_1.1~exp15_amd64.deb
Files:
 4149983fd1fc5ebd543b2f01d310a8c4 2331 admin important apt_1.1~exp15.dsc
 d4e07cdbfbebbe6d47ef8ab911ce94b3 1931860 admin important apt_1.1~exp15.tar.xz
 0a3151154ea86b81703dd464ad940f9c 310980 doc optional apt-doc_1.1~exp15_all.deb
 8d06af9344938f2972b45c8e52129caa 145860 admin optional apt-transport-https_1.1~exp15_amd64.deb
 35c2a6aaa96d0e57408662f9f6fc4160 369516 admin important apt-utils_1.1~exp15_amd64.deb
 a0b740847e8a69e145d15ae9ecc1cfd6 1034996 admin important apt_1.1~exp15_amd64.deb
 ae94d0c38fc6444e53971e4aabbb90f4 175760 libs important libapt-inst2.0_1.1~exp15_amd64.deb
 4f2f19349103e6772f97bd4f134ffb8b 213230 libdevel optional libapt-pkg-dev_1.1~exp15_amd64.deb
 c92e3bc5b28a2bdf04e969cc385b27bc 973190 doc optional libapt-pkg-doc_1.1~exp15_all.deb
 a24c143158a5ccaa18646a7998cc9feb 792038 libs important libapt-pkg5.0_1.1~exp15_amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCAAGBQJWQ3NNAAoJEJjKuzq9TKWeHWAP+wcOFQGmL4R/x/dY+Rp6mcbC
UbBxjPBadPWhmVWkUWy3A6gJzff4aOVRIwsDd1jxGtd/QFNvX+mrtAtkEzmSDHpC
sh+A+GO8KbV8ySwFxc5aXQ0yGukcB266XIi6RgfuKppSiZ44ZqflzteWMW8zvZTU
P0oHoOuasVPSR1uj/A6tV+pTtaNMwQEeQ6IFRR8krao1Kn8HXUsasiRwhiIkGP8E
GPXhbnZKUohUfI6XMfNUTlKVo3BojSP+EDKoWL7PXJC2IOS3EwGc7FlLY4swJzZH
k/5m0Z2VB2RJdppW6iNfEV5tPC528o2Q91pIwi6cEZrAtdh53XRjWC+gQVmvSocN
91DwdvqhfI5QsXBCcA367a1P+TwlsyMTP556cKhw0RsSegHEmw1omL/zA5hv/hxL
tsO+2hXMogTiTO+bCiob78r/v27+hoXyo55txy7/e9lakWX8qmfC7DysUxIZnJVH
NEJd4HvxuBbx8kXA66Qw1YSM6jlHMtgLp6QqaZUQMtOL0LTRb9zrV3IJ0g0uHx+8
1MCNzyvmsDGjrC+Wjm3jDlJWM+Vza7ZipSlWwxdIq2Ut7i+dutv7WpNmxjpfnzDe
lFBfiUzoplx/4xASobwCP0n7sEc2DIP7yKs2N/LEAz14gpVLK51/tVQuUpE/Dx5+
4Bm0HKQRbnkYLGJ8V1up
=NXFk
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: