add-apt-repository doesn't add key when behind a proxy

Bug #576860 reported by Stéphane Chambrin
34
This bug affects 6 people
Affects Status Importance Assigned to Milestone
software-properties (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: apt

Hi,

I've run into an error while trying to add a PPA repository using add-apt-repository.

Ubuntu Version : 10.04
apt version : 0.7.25.3ubuntu7
(up-to-date at the time of the error/reporting)
I'm behind an HTTP proxy, updating/installing using Synaptic/apt works fine.

Here's what I did and whet happened:

$ sudo add-apt-repository ppa:michael-gruz/ppa
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python2.6/threading.py", line 532, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.6/dist-packages/softwareproperties/ppa.py", line 59, in run
    self.add_ppa_signing_key(self.ppa_path)
  File "/usr/lib/python2.6/dist-packages/softwareproperties/ppa.py", line 88, in add_ppa_signing_key
    print "Error reading %s: %s" % (lp_url, e)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 43: ordinal not in range(128)

This PPA is to install Skype. (we use it at the office...)
I got the line from http://doc.ubuntu-fr.org/skype, the French speaking Ubuntu community site.

After launching the command, the terminal hangs for 10/20 seconds (^C doesn't do anything), then the error message is displayed.
The return code ($?) is 0; but I don't know if it's from sudo or apt.

The result is that the repository is added but not the PGP key.

Revision history for this message
Stéphane Chambrin (superstepho) wrote :

An update about this problem :

I've tried from home (so not behind the proxy) and it works fine : the PGP key is added, and no error message is displayed.
So I guess the problem is proxy related, may be specific to the proxy settings we have at work.

Anyway, the error message could more... user friendly. ;-)

Revision history for this message
Torsten Spindler (tspindler) wrote :

Assigning to correct source package.

summary: - add-apt-repository doesn't add key
+ add-apt-repository doesn't add key when behind a proxy
affects: apt (Ubuntu) → software-properties (Ubuntu)
Revision history for this message
Williams Orellana (worellana) wrote :

I also I have the same problem, using the work PC behind a ISA proxy, I use apt and synaptic with cntlm and working flawlessly

Ubuntu 10.04 "Lucid Lynx"

description: updated
Changed in software-properties (Ubuntu):
status: New → Confirmed
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.