| Author |
Message |
|
|
Post subject: How do I configure apt to use a proxy?
Posted: May 15, 2008 - 09:34 AM
|
|
Joined: May 15, 2008
Posts: 16
Status: Offline
|
|
Hello everybody,
I connect to the internet from my office LAN via a proxy server; so far I've been unable to use apt to download/inst all programs because apparently it thinks I have a direct connection to the internet.
There must be a configuration file I can adjust; what's the name of the file and how do I modify it?
(Using the 'export' command on the command line - as suggested in another thread - doesn't work for me).
Thank you |
|
|
| |
|
|
|
 |
|
|
Post subject: How do I configure apt to use a proxy?
Posted: May 15, 2008 - 09:44 AM
|
|
Joined: Dec 11, 2006
Posts: 114
Status: Offline
|
|
simply append this line to your /etc/apt/apt.conf:
Acquire::http::Proxy "http://YourProxyAddress:YourProxyPort/";
or
Acquire::ftp::Proxy "http://YourProxyAddress:YourProxyPort/";
and then apt-get update works fine. |
_________________ You've yet to have your finest hour ...
Beste Grüße, rh
|
| |
|
|
|
 |
|
|
Post subject:
Posted: May 15, 2008 - 10:23 AM
|
|
Joined: May 15, 2008
Posts: 16
Status: Offline
|
|
Thanks rh.
It's all good now. |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: May 21, 2008 - 02:29 AM
|
|

Joined: Nov 27, 2006
Posts: 524
Location: Griffith NSW Australia
Status: Offline
|
|
a more generic method is to use the http_proxy env variable:
export http_proxy=http://<username>:<password>@<server>:<port>
other cli apps will reference this also (wget for example) |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Sep 05, 2008 - 03:31 PM
|
|

Joined: Aug 07, 2008
Posts: 4
Status: Offline
|
|
| or to save it write: export http_proxy=http://<username>:<password>@<server>:<port> into /etc/bash.bashrc |
|
|
| |
|
|
|
 |
|
|
|
|