update-manager fails to download release notes with apt-cacher-ng

Bug #601883 reported by Andy Whitcroft
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apt-cacher-ng (Debian)
Fix Released
Unknown
apt-cacher-ng (Ubuntu)
Fix Released
Medium
Andy Whitcroft
Lucid
Fix Released
Medium
Andy Whitcroft
update-manager (Ubuntu)
Invalid
Medium
Andy Whitcroft
Lucid
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: update-manager

TEST CASE:
1. use lucid with the latest update (but with the normal apt-cacher-ng)
2. run apt-cacher-ng on this machine
3. point proxy to apt-cacher-ng and run "update-manager -d"
4. verify that no release update appears

5. install the new apt-cacher-ng from lucid-proposed
6. repeat 2,3 and verify that it works now

Now that update-manager is correctly honouring the apt Proxy configuration update-manager -d upgrades to the next development release no longer work. The download of the DevelReleaseAnnouncement fails. This seems to occur because the request has a ?lang=<foo> suffix.

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: update-manager 1:0.134.10
Uname: Linux 2.6.32-02063211-generic i686
Architecture: i386
Date: Mon Jul 5 13:22:26 2010
PackageArchitecture: all
ProcEnviron:
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
SourcePackage: update-manager

Revision history for this message
Andy Whitcroft (apw) wrote :
Changed in apt-cacher-ng (Ubuntu):
status: New → Invalid
assignee: nobody → Andy Whitcroft (apw)
importance: Undecided → Medium
Changed in update-manager (Ubuntu):
importance: Undecided → Medium
assignee: nobody → Andy Whitcroft (apw)
status: New → In Progress
Revision history for this message
Andy Whitcroft (apw) wrote :

Investigations show that this is actually fixable via configuration changes to apt-cacher-ng. Shoving this over there for resolution.

Revision history for this message
Andy Whitcroft (apw) wrote :

Attaching a proposed patch for apt-cacher-ng which seems to sort the problem out for me. This diff also includes a conversion to debian 3.0 (quilt) format so it is slightly bigger than required.

Revision history for this message
Andy Whitcroft (apw) wrote :

Here is the same patch for Lucid.

Revision history for this message
Andy Whitcroft (apw) wrote :

@ubuntu-sponsors -- in #3 and #4 above are proposed debdiffs for apt-cacher-ng to allow update-manager -d mode upgrades to the next release to work. Without these update-manager is unable to get the release notes and refuses to update the users system.

Revision history for this message
Michael Vogt (mvo) wrote :

I made ReleaseAnnoucement have the \\? as well: "ReleaseAnnouncement|(\\?.*)"

and uploaded to maverick. many thanks. We should probably SRU this too once the fix in maverick is confirmed to work.

Changed in apt-cacher-ng (Ubuntu):
status: Invalid → In Progress
Changed in update-manager (Ubuntu):
status: In Progress → Invalid
Changed in apt-cacher-ng (Ubuntu):
status: In Progress → Fix Committed
Changed in apt-cacher-ng (Ubuntu Lucid):
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package apt-cacher-ng - 0.4.7-1ubuntu2

---------------
apt-cacher-ng (0.4.7-1ubuntu2) maverick; urgency=low

  * convert package to 3.0 (quilt) format
  * pull existing stat::stat patch over to quilt patch
  * update-manager -d requires access to the DevelReleaseAnnouncement
    accessing it with a ?lang=foo suffix. Add this to the persistant
    files list. LP: #601883.
 -- Andy Whitcroft <email address hidden> Mon, 05 Jul 2010 13:30:50 +0100

Changed in apt-cacher-ng (Ubuntu):
status: Fix Committed → Fix Released
Michael Vogt (mvo)
description: updated
Michael Vogt (mvo)
Changed in update-manager (Ubuntu Lucid):
status: New → Invalid
Revision history for this message
Martin Pitt (pitti) wrote : Please test proposed package

Accepted apt-cacher-ng into lucid-proposed, the package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

Changed in apt-cacher-ng (Ubuntu Lucid):
status: Triaged → Fix Committed
tags: added: verification-needed
Andy Whitcroft (apw)
Changed in apt-cacher-ng (Ubuntu Lucid):
assignee: nobody → Andy Whitcroft (apw)
Revision history for this message
Andy Whitcroft (apw) wrote :

@martin -- re-installed the Lucid -updates version and confirmed that the update-manager -d was unable to download the release notes. Updated to the Lucid -proposed version and confirmed that the update-manager -d was then able to download the release notes and start the upgrade.

tags: added: verification-done
removed: verification-needed
Changed in apt-cacher-ng (Debian):
status: Unknown → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package apt-cacher-ng - 0.4.6-1ubuntu1

---------------
apt-cacher-ng (0.4.6-1ubuntu1) lucid-proposed; urgency=low

  * convert package to 3.0 (quilt) format
  * update-manager -d requires access to the DevelReleaseAnnouncement
    accessing it with a ?lang=foo suffix. Add this to the persistant
    files list. LP: #601883.
 -- Andy Whitcroft <email address hidden> Mon, 05 Jul 2010 14:09:48 +0100

Changed in apt-cacher-ng (Ubuntu Lucid):
status: Fix Committed → Fix Released
tags: added: testcase
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.