Monday, January 2, 2012

How to run apt-get Through http proxy

add the  following sentences to /etc/apt/apt.conf  file, if the file is not existed, you have to create it.

Acquire::http::Proxy "";   #the proxy has no authentication
Acquire::http::Proxy "http://arad:arad@";       #proxy with authentication

choose one among the sentences above that meet your environment


No comments:

Post a Comment