setting proxy for apt-get
janne.jokitalo at dnainternet.net
janne.jokitalo at dnainternet.net
Thu Sep 8 07:49:03 UTC 2005
Quoting "Asep Andria I.W.":
> Hello All,
Hi there!
> I've just install Ubuntu 5.04 on my PC. I have a problem with apt-get.
> How do I set the authentication for apt-get for proxy user and proxy
> password?
>
> I try this way :
> export http_proxy=http://172.16.1.71:8080/
>
> where to input the user and password for my proxy ?
This is from 'man apt.conf':
"HTTP URIs; http::Proxy is the default http proxy to use. It is in the standard
form of http://[[user][:pass]@]host[:port]/."
So in your situation you would use a line:
export http_proxy=http://yourusername:passwd@172.16.1.71:8080/
Just to be specific, this states how you use it in a configuration file
/etc/apt/apt.conf. So I haven't tried it and thus cannot ensure the
functionality in an environment variable.
Cannot figure out why it wouldn't work, though. Test it, and report back. :)
--
Jaska
More information about the ubuntu-users
mailing list