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

Launchpad Bug Tracker 1075180 at bugs.launchpad.net
Fri Dec 7 00:43:47 UTC 2012


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

** Changed in: apt (Ubuntu)
       Status: New => Confirmed

-- 
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:
  I can't add PPA repository behind the proxy

Status in “apt” 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/apt/+bug/1075180/+subscriptions




More information about the foundations-bugs mailing list