<div dir="ltr">Hi,<div><br></div><div>There was no problem with apt but, I had issue using debootstrap. Had to set up the proxy settings in /etc/wgetrc. All fine now.</div><div><br></div><div>Thanks for the help. :)</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 9, 2014 at 8:54 PM, Michael H. Warfield <span dir="ltr"><<a href="mailto:mhw@wittsend.com" target="_blank">mhw@wittsend.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hey Tamas!<br>
<span class=""><br>
On Thu, 2014-10-09 at 16:59 +0200, Tamas Papp wrote:<br>
> Try this one:<br>
> Export http_proxy="http://proxy:port/"<br>
> If debootstrap uses it, then it should work.<br>
<br>
> Also don't forget to apply apt settings in container.<br>
<br>
</span>Not having tried this myself, that comment just suddenly raised a<br>
question in my mind. Does this create an chicken and egg situation? I<br>
know debootstrap will use it to try and build the container but does the<br>
template then make any attempts to use the apt settings in the container<br>
during the creation process before they can be tweaked? Seems like that<br>
could create a problem where we're chrooting into a container rootfs.<br>
I'm now wondering if the Fedora and CentOS templates I maintain could<br>
have a problem there. I may have to set up a proxy to test against,<br>
myself, for yum.<br>
<br>
Regards,<br>
Mike<br>
<div class="HOEnZb"><div class="h5"><br>
> On October 9, 2014 4:47:34 PM sriram patil <<a href="mailto:spsrirampatil@gmail.com">spsrirampatil@gmail.com</a>><br>
> wrote:<br>
><br>
> > Hi,<br>
> ><br>
> ><br>
> > I am using lxc-create on the latest version of Linux Mint. Following<br>
> > is the error message<br>
> ><br>
> ><br>
> ><br>
> > > sudo lxc-create -n ubuntu01 -t ubuntu<br>
> > Checking cache download in /var/cache/lxc/precise/rootfs-amd64 ...<br>
> > Installing packages in template: ssh,vim,language-pack-en<br>
> > Downloading ubuntu precise minimal ...<br>
> > I: Retrieving Release<br>
> > E: Failed getting release file<br>
> > <a href="http://archive.ubuntu.com/ubuntu/dists/precise/Release" target="_blank">http://archive.ubuntu.com/ubuntu/dists/precise/Release</a><br>
> > lxc_container: container creation template for ubuntu01 failed<br>
> > lxc_container: Error creating container ubuntu01<br>
> ><br>
> ><br>
> ><br>
> ><br>
> > I am working behind a proxy server. All my proxy settings are fine.<br>
> > I have aslo added the proxy details in `/etc/apt/apt.conf` using<br>
> > `Acquire::http:Proxy="<proxy and port>";` (+https and ftp). But, it<br>
> > did not work.<br>
> ><br>
> ><br>
> > I tried changing mirror in `/etc/default/lxc` file as well. Changing<br>
> > the MIRROR field to `<a href="http://host-ip:3142/...`" target="_blank">http://host-ip:3142/...`</a>. But no success.<br>
> ><br>
> ><br>
> > Where does lxc-create read the proxy settings from? Where should I<br>
> > do the configuration? Am I missing something here? Port number 22 is<br>
> > blocked by my proxy server. Does not affect?<br>
> ><br>
> ><br>
> > Thanks,<br>
> > Sriram<br>
> > _______________________________________________<br>
> > lxc-users mailing list<br>
> > <a href="mailto:lxc-users@lists.linuxcontainers.org">lxc-users@lists.linuxcontainers.org</a><br>
> > <a href="http://lists.linuxcontainers.org/listinfo/lxc-users" target="_blank">http://lists.linuxcontainers.org/listinfo/lxc-users</a><br>
> _______________________________________________<br>
> lxc-users mailing list<br>
> <a href="mailto:lxc-users@lists.linuxcontainers.org">lxc-users@lists.linuxcontainers.org</a><br>
> <a href="http://lists.linuxcontainers.org/listinfo/lxc-users" target="_blank">http://lists.linuxcontainers.org/listinfo/lxc-users</a><br>
<br>
</div></div><span class="HOEnZb"><font color="#888888">--<br>
Michael H. Warfield (AI4NB) | (770) 978-7061 | mhw@WittsEnd.com<br>
/\/\|=mhw=|\/\/ | (678) 463-0932 | <a href="http://www.wittsend.com/mhw/" target="_blank">http://www.wittsend.com/mhw/</a><br>
NIC whois: MHW9 | An optimist believes we live in the best of all<br>
PGP Key: 0x674627FF | possible worlds. A pessimist is sure of it!<br>
<br>
</font></span></blockquote></div><br></div>