I noticed that this problem can be fixed for me if the
GPG_DEFAULT_OPTIONS variable on line 171 of ppa.py is changed. If I add
these two properties to the list, then the problem goes away completely:

"--keyserver-options", "http-proxy=" + os.environ['http_proxy']

Obviously, you would want to check for the existence of this variable
before you just went using it, but it looks like this is the problem.
The PPA library does not forward the HTTP proxy settings along to GPG,
so GPG tries and fails to make a direct connection to the keyserver. Am
I missing something about the way this works, or can we make a similar
change and resolve these proxy issues?

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

Title:
  juju bootstrap fail behind a proxy when a gpg key must be imported

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to