Does not allow appstream files

Bug #1547431 reported by Michał Sawicz
58
This bug affects 9 people
Affects Status Importance Assigned to Milestone
apt-cacher-ng (Ubuntu)
Fix Released
Medium
Unassigned
Precise
Fix Released
Medium
Unassigned
Trusty
Fix Released
Medium
Unassigned
Wily
Fix Released
Medium
Unassigned

Bug Description

With appstream [1] showing up in Ubuntu, acng prevents apt-get update by returning 403 errors for .yml.gz files:

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial/restricted/dep11/Components-amd64.yml 403 Forbidden file type or location: http://archive.ubuntu.com/ubuntu/dists/xenial/restricted/dep11/Components-amd64.yml.gz
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial/universe/dep11/Components-amd64.yml 403 Forbidden file type or location: http://archive.ubuntu.com/ubuntu/dists/xenial/universe/dep11/Components-amd64.yml.gz

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: apt-cacher-ng 0.7.26-1
ProcVersionSignature: Ubuntu 3.13.0-77.121-generic 3.13.11-ckt32
Uname: Linux 3.13.0-77-generic x86_64
ApportVersion: 2.14.1-0ubuntu3.19
Architecture: amd64
Date: Fri Feb 19 11:08:51 2016
SourcePackage: apt-cacher-ng
UpgradeStatus: Upgraded to trusty on 2014-06-20 (608 days ago)
modified.conffile..etc.apt.cacher.ng.security.conf: [inaccessible: [Errno 13] Permission denied: '/etc/apt-cacher-ng/security.conf']
mtime.conffile..etc.apt.cacher.ng.acng.conf: 2015-05-06T22:26:51.074192

Revision history for this message
Michał Sawicz (saviq) wrote :
Revision history for this message
Eduard Bloch (edi-gmx) wrote :

Ancient version. There is a fix in Debian.

Revision history for this message
Rolf Leggewie (r0lf) wrote :

Eduard, come on, you only uploaded the fix two months ago. Thanks for the fix, though. I will mark this as fix released for xenial, Michał already requested a backport to trusty.

Eduard, it would be nice if you set the Vcs-Git and Vcs-Browser variables in debian/control so that the information about the upstream VCS shows up at https://packages.qa.debian.org/a/apt-cacher-ng.html.

That's where I checked for the necessary patch to backport. What I found is https://alioth.debian.org/scm/browser.php?group_id=100566 but that repo IS indeed ancient. Eduard, where do you publish your upstream interim work nowadays?

Changed in apt-cacher-ng (Ubuntu):
status: New → Fix Released
Revision history for this message
Eduard Bloch (edi-gmx) wrote :

It is the correct repository and far from being ancient. You just need to focus on the right branch, see debian/gbp.conf for details.

I will add some Vcs links though. Actually I thought I already had done that before and never bothered to review debian/control in the last couple of years :-).

Revision history for this message
Jean Christophe André (progfou) wrote :

For those who wonder (because of the lack of informative comments for standard _users_...) the fix has been released in upstream version 0.8.8.

Ref. : https://alioth.debian.org/plugins/scmgit/cgi-bin/gitweb.cgi?p=apt-cacher-ng/apt-cacher-ng.git;a=commitdiff;h=c54b88bb28781b13a35c7bbc227066c7c141af9c

Revision history for this message
Rolf Leggewie (r0lf) wrote :

attaching untested patch for trusty

Revision history for this message
Rolf Leggewie (r0lf) wrote :

Michał, can you compile a package with this patch and see if the problem is fixed for you? If upstream is fixed then this should do it.

Revision history for this message
Stefan Bader (smb) wrote :

Rolf, I took the minimal changes and prepared a Precise version of it. Have been testing that on my box which still (no, don't ask) runs Precise and the update of a Xenial desktop succeeded after that being installed.

tags: added: precise
Revision history for this message
Stefan Bader (smb) wrote :

Verified the proposed Trusty patch by setting up a Trusty VM for apt-cacher-ng, then removing the dep11 data (rm /var/lib/apt/lists/*dep11*) from the apt cache, setting the http proxy to the VM and then running apt-get update.
With the current Trusty version, appstream files fail (403 error) and after updating to the proposed package this succeeds.

Stefan Bader (smb)
Changed in apt-cacher-ng (Ubuntu Precise):
importance: Undecided → Medium
status: New → Confirmed
Changed in apt-cacher-ng (Ubuntu Trusty):
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Stefan Bader (smb) wrote :

Rolf, are you able to upload apt-cacher-ng or do we need to add sponsors, too? (Because I cannot upload).

Revision history for this message
Stefan Bader (smb) wrote :

For now I uploaded the proposed fix for Trusty and Precise to my testing PPA (ppa:smb/testing) in case anybody else wants to test without building the packages on their own.

Revision history for this message
Rolf Leggewie (r0lf) wrote :

Stefan, you'd need to upload to precise-proposed.

Revision history for this message
Stefan Bader (smb) wrote :

Rolf, I think the upload process was changed back to all supported releases. Which means it does not matter whether the target is <release>-proposed or <release>. It will always go via proposed. Since I did not hear anything back before I prepared both uploads and asked someone to sponsor (who promptly forgot to, need to poke there again). I hope that is ok with you.

Revision history for this message
Colin Watson (cjwatson) wrote :

Stefan's assessment of Launchpad's behaviour regarding uploads is correct. It is not necessary to upload explicitly to -proposed.

Mathew Hodson (mhodson)
Changed in apt-cacher-ng (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Jordi de Wal (jdwal) wrote :

Just to confirm, works fine with Rolf's patch (tested on Trusty). Thanks Stefan taking away the need to build it myself :-).

Revision history for this message
Stefan Bader (smb) wrote :

SRU Justification:

Impact: When a new Xenial installation attempts to update its appstream cache with an older version of apt-cacher-ng as its apt proxy, it will fail with error messages about invalid files/locations.

Fix: A small addition to the embedded patterns backported from a newer version of apt-cacher-ng allows to proxy appstream extensions again.

Testcase: Having an apt-cacher-ng proxy enabled for a Xenial system (might require to manually delete the cached files before) apt-get update will expose many 403 errors. After upgrading apt-cacher-ng those will download ok.

Revision history for this message
Stefan Bader (smb) wrote :

Not sure about Wily. Potentially it is affected, too.

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

Hello Michał, 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: Confirmed → Fix Committed
tags: added: verification-needed
Changed in apt-cacher-ng (Ubuntu Trusty):
status: Confirmed → Fix Committed
Revision history for this message
Chris J Arges (arges) wrote :

Hello Michał, 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: Confirmed → Fix Committed
Revision history for this message
Chris J Arges (arges) wrote :

Hello Michał, 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 appstream files. I'm also able to install and update packages as before. Marking verificaition-done for trusty.

tags: added: verification-done-trusty
Revision history for this message
Stefan Bader (smb) wrote :

Verified again for Precise and Wily 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
Stefan Bader (smb)
Changed in apt-cacher-ng (Ubuntu Wily):
assignee: Stefan Bader (smb) → nobody
Revision history for this message
Ryan E Perez (perezry) wrote :

Ran into this same bug using version 0.8.0.3 (Debian Jessie)
Fix for me was to add the following to acng.conf

PfilePatternEx: \.yml.gz$

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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