반응형

출처 : http://askubuntu.com/questions/89437/how-to-install-packages-with-apt-get-on-a-system-connected-via-proxy

 

$ sudo vi /etc/apt/apt.conf.d/80proxy

 

Acquire::http::proxy "http://<proxy>:<port>/";

Acquire::ftp::proxy "ftp://<proxy>:<port>/";

Acquire::https::proxy "https://<proxy>:<port>/";

This was the reason why you could reach proxy but couldn't get past it, since there is no username password information. So just put that info into it..

 

Acquire::http::proxy "http://<username>:<password>@<proxy>:<port>/";

Acquire::ftp::proxy "ftp://<username>:<password>@<proxy>:<port>/";

Acquire::https::proxy "https://<username>:<password>@<proxy>:<port>/";

save the file and you are done...

 

 

나같은 경우 

$ sudo vi /etc/apt/apt.conf.d/80proxy

Acquire::http::proxy "http://192.168.0.2:3128/";

Acquire::ftp::proxy "ftp://192.168.0.2:3128/";

Acquire::https::proxy "https://192.168.0.2:3128/";

 

 

 

To configure a proxy temporary, set the http_proxy environment variable. If the proxy is proxy.example.com on port 8080 and you need to authenticate with username user and password pass, run:

sudo http_proxy='http://user:pass@proxy.example.com:8080/' apt-get install package-name 

To set such a proxy permanently, create /etc/apt/apt.conf.d/30proxy containing:

Acquire::http::Proxy "http://user:pass@proxy.example.com:8080/"; 

The changes are immediately visible the next time you run apt.

반응형
Posted by Real_G