Support by-hash index files in apt-cacher-ng

Bug #1568754 reported by Stefan Bader
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
apt-cacher-ng (Debian)
Fix Released
Unknown
apt-cacher-ng (Ubuntu)
Fix Released
Low
Unassigned
Precise
Fix Released
Low
Stefan Bader
Trusty
Fix Released
Low
Stefan Bader
Wily
Fix Released
Low
Stefan Bader

Bug Description

Server side by-hash index files are a new feature that was introduced in Xenial. This causes Xenial clients (apt) to start new pattern requests which apt-cacher-ng needs to be aware of. For Xenial's version of apt-cacher-ng this was already done.

SRU Justification (for backports):

Impact: Another new feature of the archive in Xenial is server side by-hash index files. To support this when running through an apt-cacher-ng proxy requires another modification to be backported into older releases.

Fix: TBD (pick the pattern modification and apply it to older releases).

Testcase: Running "apt-get update" on a Xenial host causes error messages like below in the log of apt-cacher-ng on the proxy host.

1460365731|E|813|192.168.2.5|403 Forbidden file type or location: http://de.archive.ubuntu.com/ubuntu/dists/xenial/multiverse/dep11/by-hash/SHA256/e04fd75ac12e225db94a5c280c881054dc13a369c202b4085c90a6de7c92e8b2

Stefan Bader (smb)
summary: - Backport request to support by-hash in apt-cacher-ng
+ Support by-hash in apt-cacher-ng
summary: - Support by-hash in apt-cacher-ng
+ Support by-hash index files in apt-cacher-ng
Revision history for this message
Adam Conrad (adconrad) wrote :
Changed in apt-cacher-ng (Ubuntu):
status: New → Fix Released
Changed in apt-cacher-ng (Debian):
status: Unknown → Fix Committed
Revision history for this message
Stefan Bader (smb) wrote :

This is the change added to Xenial modified to apply against Wily (only context fixup).

Stefan Bader (smb)
Changed in apt-cacher-ng (Ubuntu Precise):
assignee: nobody → Stefan Bader (smb)
importance: Undecided → Low
status: New → Triaged
Changed in apt-cacher-ng (Ubuntu Trusty):
assignee: nobody → Stefan Bader (smb)
importance: Undecided → Low
status: New → Triaged
Changed in apt-cacher-ng (Ubuntu Wily):
assignee: nobody → Stefan Bader (smb)
importance: Undecided → Low
status: New → Triaged
Revision history for this message
Chris J Arges (arges) wrote : Please test proposed package

Hello Stefan, or anyone else affected,

Accepted apt-cacher-ng into precise-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/apt-cacher-ng/0.7.2-1ubuntu2.2 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Changed in apt-cacher-ng (Ubuntu Precise):
status: Triaged → Fix Committed
tags: added: verification-needed
Changed in apt-cacher-ng (Ubuntu Trusty):
status: Triaged → Fix Committed
Revision history for this message
Chris J Arges (arges) wrote :

Hello Stefan, or anyone else affected,

Accepted apt-cacher-ng into trusty-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/apt-cacher-ng/0.7.26-1ubuntu0.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Changed in apt-cacher-ng (Ubuntu Wily):
status: Triaged → Fix Committed
Revision history for this message
Chris J Arges (arges) wrote :

Hello Stefan, or anyone else affected,

Accepted apt-cacher-ng into wily-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/apt-cacher-ng/0.8.5-1ubuntu0.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Revision history for this message
Steve Beattie (sbeattie) wrote :

Thanks for preparing this fix. I can confirm that the version of apt-cacher-ng in trusty-proposed (0.7.26-1ubuntu0.1) permits the downloading and caching of the by-hash indexes. I'm also able to install and update packages via this version of apt-cacher-ng as before, both for hosts running xenial and for hosts running older ubuntu releases. Marking verificaition-done for trusty.

tags: added: verification-done-trusty
Mathew Hodson (mhodson)
Changed in apt-cacher-ng (Ubuntu):
importance: Undecided → Low
Revision history for this message
Stefan Bader (smb) wrote :

Verified for Wily and Precise as well.

tags: added: verification-done-precise verification-done-wily
removed: verification-needed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package apt-cacher-ng - 0.7.2-1ubuntu2.2

---------------
apt-cacher-ng (0.7.2-1ubuntu2.2) precise; urgency=low

  * Backport changes needed to support AppStream / DEP-11 (LP: #1547431).
  * Backport support for by-hash index files (LP: #1568754).

 -- Stefan Bader <email address hidden> Mon, 11 Apr 2016 15:32:00 +0200

Changed in apt-cacher-ng (Ubuntu Precise):
status: Fix Committed → Fix Released
Revision history for this message
Chris J Arges (arges) wrote : Update Released

The verification of the Stable Release Update for apt-cacher-ng has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package apt-cacher-ng - 0.7.26-1ubuntu0.1

---------------
apt-cacher-ng (0.7.26-1ubuntu0.1) trusty; urgency=medium

  [ Rolf Leggewie ]
  * backport appstream support from upstream (LP: #1547431).

  [Stefan Bader]
  * backport support for by-hash index files (LP: #1568754).

 -- Stefan Bader <email address hidden> Mon, 11 Apr 2016 15:28:48 +0200

Changed in apt-cacher-ng (Ubuntu Trusty):
status: Fix Committed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package apt-cacher-ng - 0.8.5-1ubuntu0.1

---------------
apt-cacher-ng (0.8.5-1ubuntu0.1) wily; urgency=low

  * Support dep11/appstream files (LP: #1547431)
  * Support by-hash index files (LP: #1568754).
  * Also dropped "single-debian-patch" and "auto-commit" from
    debian/source/options as that seemed to prevent properly
    seperated backport patches.

 -- Stefan Bader <email address hidden> Mon, 11 Apr 2016 14:12:10 +0200

Changed in apt-cacher-ng (Ubuntu Wily):
status: Fix Committed → Fix Released
Changed in apt-cacher-ng (Debian):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.