ubuntu apt-get proxy 설정하기
출처 : 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.
'Linux > Linux 일반' 카테고리의 다른 글
Ubuntu + squid3 프록시 서버 구축하기 proxy server (0) | 2015.10.15 |
---|---|
How can I find out where a file is physically located on the disk (block numbers)? (0) | 2015.07.10 |
ubuntu 에서 nvidia cuda 설치하다가 nvidia-opencl-icd-346 설치 안될 때 (0) | 2015.06.18 |