[lxc-users] lxc not working behind proxy!

Stéphane Graber stgraber at ubuntu.com
Tue Aug 11 18:29:48 UTC 2015


On Tue, Aug 11, 2015 at 11:46:40PM +0530, gagan chhabra wrote:
> Using lxc on Ubuntu Server Trusty and I encountered following error:
> 
> $ sudo lxc-create -t download -n u1 -- --dist ubuntu --release trusty
> --arch amd64
> Setting up the GPG keyring
> ERROR: Unable to fetch GPG key from keyserver.
> lxc_container: container creation template for u1 failed
> lxc_container: Error creating container u1
> 
> prints *Setting up the GPG keyring, *then after a while it fails and prints
> error.
> 
> Also, I have exported my authentication proxy http_proxy in .bashrc.
> 
> Gagandeep S. Chhabra
> Mob: +91 97049 28427

LXC works fine with proxies but sudo strips the environment so in your
example, http_proxy isn't actually set.


-- 
Stéphane Graber
Ubuntu developer
http://www.ubuntu.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20150811/3fc7815e/attachment.sig>


More information about the lxc-users mailing list