Configure apt-get with proxy server

Configure apt-get with proxy server

vim  ~/.bashrc

Code:

export http_proxy=http://username:password@my.proxy.server:port/
export ftp_proxy=http://username:password@my.proxy.server:port/

OR

$sudo vim /etc/apt/apt.conf

Code:

Acquire::http::Proxy "http://username:password@my.proxy.server:port";
Acquire::ftp::Proxy "ftp://username:password@my.proxy.server:port";
Advertisement

About sanhom
Free Your Mind..

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.