add-apt-repository should look at apt.conf for proxy

Bug #888379 reported by joopbraak
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
software-properties (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

At the moment add-apt-repository doesn't work behind a proxy.

The workaround in bug #516032 should not be necessary and is not a fix.
add-apt-repository should just look at the proxy configuration in /etc/apt/apt.conf.
https is necessary for checking the ppa and http for adding the key.

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

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

Changed in software-properties (Ubuntu):
status: New → Confirmed
joopbraak (joopbraak)
tags: added: oneiric
Revision history for this message
Martin Pool (mbp) wrote :

joopbraak, please mark dupes onto the oldest or most complete report, not the newest one.

Revision history for this message
joopbraak (joopbraak) wrote :

OK, sorry, but I thought that bug was only about the gpg part of add-apt-repository (and I thought my description of the problem was clearer). In my situation add-apt-repository already halts before that, not being able to contact the ppa through https because it ignores the proxy settings.

Revision history for this message
joopbraak (joopbraak) wrote :

Also if it takes the proxy settings from apt.conf it's not dependent of environmental settings of the root account, it can use these proxy settings to contact the ppa and use gpg with "--keyserver-options http-proxy=value".

Revision history for this message
joopbraak (joopbraak) wrote :

The gpg option "--keyserver-options honor-http-proxy" doesn't seem to exist anymore.

Revision history for this message
joopbraak (joopbraak) wrote :

Just tell me what kind of diagnostic information you need from me to solve this.
What I noticed so far is that when I only open port 443 on my firewall it would get through the first part but get stuck at gpg, when only opening port 80 it would get stuck immediately (not being able to contact the ppa through https to get the necessary data).
Only when opening port 80 and 443 there were no errors.

So both http and https proxy settings are needed for it to work (when port 80 and 443 are closed).

I don't know yet if https_proxy should be https://www.example.com:8000/ or http://www.example.com:8000/

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.