[TriLUG] /etc/enviornment and proxy servers

Neil Roeth neil at occamsrazor.net
Sun May 22 22:51:16 EDT 2005


On May 20, Greg Brown (gwbrown1 at gmail.com) 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

I just saw this message; I see you got some responses but I did not see any
that said you had solved it yet.  I used to do the following, not in
/etc/environment, but from the command line before executing any apt-get
command:

export http_proxy='http://<username>:<password>@proxy.company.com:8080'

and it worked.  I'm not sure why you have the trailing "/proxy/" at the end of
your definition, it wasn't necessary for mine.  Also, a trailing slash was NOT
necessary.  I'd also double check that you have the correct proxy machine name
and port number.

HTH

-- 
Neil Roeth



More information about the TriLUG mailing list