If you are under a proxy server, and want to access net using http or ftp through Terminal,you will need to export http_proxy/ftp_proxy variables.
For a HTTP proxy, simply run the following command in a terminal
- export http_proxy='http://proxy_username:password@proxy_ip:port "
- export https_proxy=https://proxy_username:password@proxy_ip:port
- export ftp_proxy=ftp://proxy_username:password@proxy_ip:port
- " export https_proxy=https://proxy_ip:port "
- " sudo gedit /etc/apt/apt.conf "
- Acquire::http::proxy "http://proxy_username:password@proxy_ip:port ";
- Acquire::https::proxy "https://proxy_username:password@proxy_ip:port" ;
- Acquire::ftp::proxy "ftp://proxy_username:password@proxy_ip:port ";
Enjoy !!!!