apt-key and add-apt-repository don't honor Acquire::http::Proxy
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apt (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
software-properties (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
When setting the proxy server globally on the system for the APT package manager, add-apt-repository ignores the setting. This issue is present on all versions of Debian that I have tested.
# cat /etc/apt/
Acquire:
# apt-key adv --keyserver keyserver.
Executing: gpg --ignore-
gpg: requesting key F9CB8DB0 from hkp server keyserver.
gpg: keyserver timed out
gpg: keyserver receive failed: keyserver error
This has serious repercussions. Unattended installs such as juju, maas, etc are all affected for anyone who is working behind a proxy. This is the case for most enterprise environments where such maas and juju setups will be tested out, and as such has great repercussions for Canonical as a viable supplier of OpenStack environments: if your product fails to install, you're not going to get the business.
Considering that:
* The setting to use already exists in /etc/apt/apt.conf and that all other tools use this correctly
* The serious impact of this issue for downstream projects and Debian usage in the enterprise
* The long time this issue has been standing and has affected people
I suggest that this either
1) be fixed, or
2) the apt-key and add-apt-repository programs are renamed so that it is made clear they are not part of the APT suite of programs and therefor cannot be trusted to behave as if they were part of APT.
Related branches
- Ubuntu Core Development Team: Pending requested
-
Diff: 595 lines (+181/-170)10 files modifiedadd-apt-repository (+4/-4)
debian/changelog (+24/-0)
debian/control (+2/-2)
debian/tests/add-apt-repository (+11/-7)
debian/tests/control (+3/-3)
debian/tests/run-tests (+0/-9)
software-properties-gtk (+2/-3)
software-properties-kde (+1/-5)
softwareproperties/ppa.py (+71/-103)
tests/test_lp.py (+63/-34)
tags: | added: cloud-installer |
See also: https:/ /bugs.launchpad .net/maas/ +bug/1257082