The /etc/environment is a valid place to put the proxy configuration since bash automatically runs it when it opens up. What you may have done is forget to put "export" at the beginning of the line where you set the proxy. Export tells bash to pass the variable to other programs, such as apt-get. Without it, the variable can only be used by the shell itself.
-Nathan On Fri, May 20, 2005 at 11:36:39AM -0400, Owen Berry wrote: > I'm not a Debian user, but according to > http://panuganty.tripod.com/debiantips/packaging.htm: > > How do I set up apt-get to use a proxy to connect? > > Enter these lines in your .profile or .bash_profile, > export http_proxy=http://proxy_host:port/ > export ftp_proxy=$http_proxy > > (The trailing slash is very important!) > > Also, unless you just mispelled it in your email, "enviornment" should > be "environment". > > -- Owen > > On Fri, May 20, 2005 at 09:58:21AM -0400, Greg Brown wrote: > > I'd like to get apt-get working from within $BIGCOMPANY. As it > > stands, there is a proxy. If memory serves, and google is correct, I > > should be able to put the following line into /etc/enviornment and > > have my apt-get be able to hop onto the Internet and grab files: > > > > http_proxy="http://<username>:<password>@proxy.company.com:8080/proxy/" > > > > However, this does not work. Does anyone have any ideas why not? > > > > Greg > -- > TriLUG mailing list : http://www.trilug.org/mailman/listinfo/trilug > TriLUG Organizational FAQ : http://trilug.org/faq/ > TriLUG Member Services FAQ : http://members.trilug.org/services_faq/ > TriLUG PGP Keyring : http://trilug.org/~chrish/trilug.asc -- TriLUG mailing list : http://www.trilug.org/mailman/listinfo/trilug TriLUG Organizational FAQ : http://trilug.org/faq/ TriLUG Member Services FAQ : http://members.trilug.org/services_faq/ TriLUG PGP Keyring : http://trilug.org/~chrish/trilug.asc
