Next Spaceship

Driving into future...

How to Set Proxy for Apt-get

| Comments

Before running apt-get command, run the following command:

$export http_proxy=http://<username>:<password>@<host>:<port>

The and are username and password corresponding to you proxy account. The is the address of your proxy (either domain name or IP address). The is the port your proxy service, for example, 80 or 8080.

You may use this command if you don’t need a username and a password to access your proxy:

$export http_proxy=http://<host>:<port>

You can use apt-get now.