add-apt-repository does not work with proxy auth if an '@' is in the username
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
software-properties (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
I'm trying to add the ppa repository (as a root) with the following command:
export HTTP_PROXY="http://<email address hidden>
add-apt-repository ppa:nilarimogar
But there is an error:
Traceback (most recent call last):
File "/usr/bin/
ppa_info = get_ppa_
File "/usr/lib/
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 = <email address hidden>: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-Authoriza
User-Agent: curl/7.22.0 (x86_64-
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://
Status changed to 'Confirmed' because the bug affects multiple users.