[Bug 1075180] Re: I can't add PPA repository behind the proxy

Robie Basak 1075180 at bugs.launchpad.net
Wed Jan 16 07:37:10 UTC 2013


I don't think this is a duplicate, so unmarking it. This problem is that
an '@' is in the username. The claimed duplicate of bug 516032 is about
proxies in general, which is already fixed.

Also, reassigning to software-properties, since that supplies add-apt-
repository and not the apt package.

** This bug is no longer a duplicate of bug 516032
   add-apt-repository doesn't  work behind a proxy

** Summary changed:

- I can't add PPA repository behind the proxy
+ add-apt-repository does not work with proxy auth if an '@' is in the username

** Package changed: apt (Ubuntu) => software-properties (Ubuntu)

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to apt in Ubuntu.
https://bugs.launchpad.net/bugs/1075180

Title:
  add-apt-repository does not work with proxy auth if an '@' is in the
  username

Status in “software-properties” package in Ubuntu:
  Confirmed

Bug description:
  I'm trying to add the ppa repository (as a root) with the following
  command:

  export HTTP_PROXY="http://firstname.surname@xxx.com:my_pass@165.x.x.232:8080"
  add-apt-repository ppa:nilarimogard/webupd8

  But there is an error:
  Traceback (most recent call last):
    File "/usr/bin/add-apt-repository", line 125, in <module>
      ppa_info = get_ppa_info_from_lp(user, ppa_name)
    File "/usr/lib/python2.7/dist-packages/softwareproperties/ppa.py", line 84, in get_ppa_info_from_lp
      curl.perform()
  pycurl.error: (56, 'Received HTTP code 407 from proxy after CONNECT')

  Doesn't matter if @ is escaped or not.

  When added credentials into .curlrc
  cat ~/.curlrc 
  proxy = 165.x.x.232:8080
  proxy-user = name.surname at xxx.com:mypass0

  It seems to work for plain curl command, but not for add-apt-
  repository (pycurl).

  CURL HEADERS

  Headers sent:
  CONNECT launchpad.net:443 HTTP/1.1
  Host: launchpad.net:443
  Proxy-Authorization: Basic cmFmYWwud2llY3pvcmVrQHVi...3R0RDA=
  User-Agent: curl/7.22.0 (x86_64-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3
  Proxy-Connection: Keep-Alive

  Reply:
  HTTP/1.1 200 Connection established

  PyCURL HEADERS

  Headers sent:
  CONNECT launchpad.net:443 HTTP/1.1
  Host: launchpad.net:443
  User-Agent: PycURL/7.22.0
  Proxy-Connection: Keep-Alive
  Accept: application/json

  Reply:
  HTTP/1.1 407 Proxy Authentication Required
  Proxy-Authenticate: BASIC realm="proxy"
  It seems that PyCURL doesn't re-send any Authorization when requested.

  
  See more explanation here:
  http://askubuntu.com/questions/212132/i-cant-add-ppa-repository-behind-the-proxy-with-in-the-username

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/software-properties/+bug/1075180/+subscriptions




More information about the foundations-bugs mailing list