purchased software download fails with and breaks apt proxy

Bug #647212 reported by Kamal Mostafa
74
This bug affects 13 people
Affects Status Importance Assigned to Milestone
apt-cacher-ng (Ubuntu)
Fix Released
High
Unassigned
Nominated for Precise by TJ
Maverick
Invalid
Undecided
Unassigned
Natty
Invalid
Undecided
Unassigned
software-center (Ubuntu)
Fix Committed
Undecided
Unassigned
Nominated for Precise by TJ
Maverick
Invalid
High
Unassigned
Natty
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: software-center

I used Software Center -> Get Software -> For Purchase and bought "Ricks Wallpapers" for $1.00 USD. The purchase process went fine, but the install failed, and has now left my apt cache in a bad state.

After the purchase process, Software Center spun its wheels for a very long time (several minutes) until finally a popup error window delivered this error:

W: Failed to fetch https://private-ppa.launchpad.net/commercial-ppa-uploaders/ri
cks-wallpaper/ubuntu/dists/maverick/main/binary-amd64/Packages.gz Proxy CONNECT
 aborted
E: Some index files failed to download, they have been ignored, or old ones used
 instead.

'sudo apt-get update' also fails with the same error message.

The problem apparently occurs because of my apt-cache-ng proxy setup (which works fine otherwise). I have a one line file /etc/apt/apt.conf.d/01proxy:
   Acquire::http { Proxy "http://my.proxy.host:3142"; };

If I disable my apt proxy by commenting out the Acquire line, then I am able to install "Ricks Wallpapers" from Software Center. And 'apt-get update' then yields only "Ign https://...ricks-wallpaper..." (no error). But then even after having successfully installed the package, re-enabling my proxy Acquire line causes 'apt-get update' to fail with the same error above.

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: software-center 3.0
ProcVersionSignature: Ubuntu 2.6.35-23.34~username~mjgbacklight1-generic 2.6.35.4
Uname: Linux 2.6.35-23-generic x86_64
Architecture: amd64
Date: Fri Sep 24 16:09:50 2010
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Alpha amd64 (20100803.1)
PackageArchitecture: all
ProcEnviron:
 LANG=en_US.utf8
 SHELL=/bin/bash
SourcePackage: software-center

Revision history for this message
Kamal Mostafa (kamalmostafa) wrote :
Michael Vogt (mvo)
Changed in software-center (Ubuntu):
status: New → Confirmed
importance: Undecided → High
milestone: none → ubuntu-10.10
Revision history for this message
Michael Vogt (mvo) wrote :

Part of the problem seems to be that we should use port 80 of keyserver.ubuntu.com, I commtied a fix for this. The rest needs a bit of debugging love, I will do that tomorrow.

Changed in software-center (Ubuntu):
milestone: ubuntu-10.10 → maverick-updates
Changed in software-center (Ubuntu Natty):
milestone: maverick-updates → none
Changed in software-center (Ubuntu Maverick):
milestone: none → maverick-updates
Changed in software-center (Ubuntu Natty):
status: Confirmed → New
Changed in software-center (Ubuntu Maverick):
status: New → Confirmed
importance: Undecided → High
Changed in software-center (Ubuntu Natty):
importance: High → Undecided
Changed in software-center (Ubuntu Maverick):
status: Confirmed → Fix Committed
Changed in software-center (Ubuntu Natty):
status: New → Fix Committed
Revision history for this message
RapierTG (rapier) wrote :

I am still getting this in Oneiric.

Revision history for this message
JC Hulce (soaringsky) wrote :

This bug affects Ubuntu 10.10, Maverick Meerkat. Maverick has reached end-of-life and is no longer supported, so I am closing the bugtask for Maverick. Please upgrade to a newer version of Ubuntu.
More information here: https://lists.ubuntu.com/archives/ubuntu-announce/2012-April/000158.html

Changed in software-center (Ubuntu Maverick):
status: Fix Committed → Invalid
Revision history for this message
Florian Huber (itshorty) wrote :

I'm getting this on precise.

Tried with free tiberiumalliances and local apt-cacher-ng:

sudo apt-get update
[...]
Err https://private-ppa.launchpad.net precise/main amd64 Packages
  Proxy CONNECT aborted
Err https://private-ppa.launchpad.net precise/main i386 Packages
  Proxy CONNECT aborted
[...]

W: Failed to fetch https://private-ppa.launchpad.net/commercial-ppa-uploaders/tiberiumalliances/ubuntu/dists/precise/main/binary-amd64/Packages Proxy CONNECT aborted

W: Failed to fetch https://private-ppa.launchpad.net/commercial-ppa-uploaders/tiberiumalliances/ubuntu/dists/precise/main/binary-i386/Packages Proxy CONNECT aborted

Revision history for this message
Jim Salter (jrssnet) wrote :

I also have this issue on Precise.

W: Failed to fetch https://private-ppa.launchpad.net/commercial-ppa-uploaders/bastion/ubuntu/dists/precise/main/binary-amd64/Packages Proxy CONNECT aborted

W: Failed to fetch https://private-ppa.launchpad.net/commercial-ppa-uploaders/bastion/ubuntu/dists/precise/main/binary-i386/Packages Proxy CONNECT aborted

W: Failed to fetch https://private-ppa.launchpad.net/commercial-ppa-uploaders/limbo/ubuntu/dists/precise/main/binary-amd64/Packages Proxy CONNECT aborted

W: Failed to fetch https://private-ppa.launchpad.net/commercial-ppa-uploaders/limbo/ubuntu/dists/precise/main/binary-i386/Packages Proxy CONNECT aborted

W: Failed to fetch https://private-ppa.launchpad.net/commercial-ppa-uploaders/swordandsworcery/ubuntu/dists/precise/main/binary-amd64/Packages Proxy CONNECT aborted

W: Failed to fetch https://private-ppa.launchpad.net/commercial-ppa-uploaders/swordandsworcery/ubuntu/dists/precise/main/binary-i386/Packages Proxy CONNECT aborted

W: Failed to fetch https://private-ppa.launchpad.net/commercial-ppa-uploaders/monster-rpg2/ubuntu/dists/oneiric/main/binary-amd64/Packages Proxy CONNECT aborted

W: Failed to fetch https://private-ppa.launchpad.net/commercial-ppa-uploaders/monster-rpg2/ubuntu/dists/oneiric/main/binary-i386/Packages Proxy CONNECT aborted

W: Failed to fetch https://private-ppa.launchpad.net/commercial-ppa-uploaders/7wonders/ubuntu/dists/precise/main/binary-amd64/Packages Proxy CONNECT aborted

W: Failed to fetch https://private-ppa.launchpad.net/commercial-ppa-uploaders/7wonders/ubuntu/dists/precise/main/binary-i386/Packages Proxy CONNECT aborted

W: Failed to fetch https://private-ppa.launchpad.net/commercial-ppa-uploaders/mm3/ubuntu/dists/precise/main/binary-amd64/Packages Proxy CONNECT aborted

W: Failed to fetch https://private-ppa.launchpad.net/commercial-ppa-uploaders/mm3/ubuntu/dists/precise/main/binary-i386/Packages Proxy CONNECT aborted

W: Failed to fetch https://private-ppa.launchpad.net/commercial-ppa-uploaders/lonesurvivor/ubuntu/dists/precise/main/binary-amd64/Packages Proxy CONNECT aborted

W: Failed to fetch https://private-ppa.launchpad.net/commercial-ppa-uploaders/lonesurvivor/ubuntu/dists/precise/main/binary-i386/Packages Proxy CONNECT aborted

W: Failed to fetch https://private-ppa.launchpad.net/commercial-ppa-uploaders/swordandsworcery/ubuntu/dists/precise/main/binary-amd64/Packages Proxy CONNECT aborted

W: Failed to fetch https://private-ppa.launchpad.net/commercial-ppa-uploaders/swordandsworcery/ubuntu/dists/precise/main/binary-i386/Packages Proxy CONNECT aborted

no longer affects: software-center
Revision history for this message
Jim Salter (jrssnet) wrote :

Please note that this is not just a problem with Software Center; apt-get update also fails from the command line when using apt-cacher ng and using PPAs from the Ubuntu commerical packages.

Revision history for this message
Jim Salter (jrssnet) wrote :

Note: there is a workaround for this issue.

You can bypass apt-cacher-ng for certain hosts by using lines like the following in /etc/apt/apt.conf or creating a configuration file in /etc/apt/apt.conf.d/

Acquire::HTTP::Proxy::private-ppa.launchpad.net "DIRECT";

TJ (tj)
Changed in apt-cacher-ng (Ubuntu):
status: New → Confirmed
importance: Undecided → High
Revision history for this message
TJ (tj) wrote :

Aspects of this issue are caused by a truncation bug in apt's netrc auth.conf handling code ( bug #1008289).

Revision history for this message
Jeremy Bícha (jbicha) wrote :

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

---------------
apt-cacher-ng (0.7.7-1) experimental; urgency=low

  * New upstream releasee
    + pass-through mode for allowed hosts (LP: #647212)
    + possible fixes of file descriptor objects expiration (closes: #677983)

 -- Eduard Bloch <email address hidden> Sat, 04 Aug 2012 20:50:16 +0200

Changed in apt-cacher-ng (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Daniel Hahler (blueyed) wrote :

Re-opening the acng task.
I think a fix would need to ship the necessary configuration to make it work by default, e.g.:

    PassThroughPattern: private-ppa\.launchpad\.net:443$

Changed in apt-cacher-ng (Ubuntu):
status: Fix Released → Won't Fix
status: Won't Fix → Triaged
Revision history for this message
pi-rho (pi-rho) wrote :

A new feature has been added in upstream apt-cacher-ng 0.7.7-1 to address this issue.

Revision history for this message
pi-rho (pi-rho) wrote :

Also, the fix has been released in quantal:

Changes:
 apt-cacher-ng (0.7.7-1ubuntu1) quantal; urgency=low
 .
   * Merge from Debian. Remaining changes:
     - debian/apt-cacher-ng.logrotate:
       Comment out the "su" lines as this requires logrotate 3.8.1 which isn't
       in Ubuntu yet.
     - drop conflict on logrotate < 3.8.1
 .
 apt-cacher-ng (0.7.7-1) experimental; urgency=low
 .
   * New upstream releasee
     + pass-through mode for allowed hosts (LP: #647212)
     + possible fixes of file descriptor objects expiration (closes: #677983)

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

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in apt-cacher-ng (Ubuntu Maverick):
status: New → Confirmed
Changed in apt-cacher-ng (Ubuntu Natty):
status: New → Confirmed
pi-rho (pi-rho)
Changed in apt-cacher-ng (Ubuntu Maverick):
status: Confirmed → Invalid
pi-rho (pi-rho)
Changed in lucid-backports:
status: New → Invalid
no longer affects: lucid-backports
Revision history for this message
pi-rho (pi-rho) wrote :

Natty is now end-of-life. This bug has been fixed in supported releases (quantal, precise, backport requested for lucid).

Changed in apt-cacher-ng (Ubuntu Natty):
status: Confirmed → Invalid
Revision history for this message
Sam Ruby (rubys) wrote :

I'm seeing the problem with Ubuntu quantal/12.10.

Cross-reference: Ubuntu Pay Support #27504.

The workaround specified in comment #8 works for me.

tags: added: u1-support
Revision history for this message
Selene ToyKeeper (toykeeper) wrote :

Is there any reason *not* to include the workaround in comment 8, by default, in Software Center? It seems like that config shouldn't break anything, if I understand correctly, and it would prevent issues which come up when proxies are installed... If that is correct, it seems like an easy and obvious improvement.

tags: added: u1-by-support u1-support-escalated
removed: u1-support
dino99 (9d9)
Changed in software-center (Ubuntu Natty):
status: Fix Committed → Invalid
tags: removed: maverick
pi-rho (pi-rho)
Changed in apt-cacher-ng (Ubuntu):
status: Triaged → 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.