Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I want to use the Ubuntu Software Center to install software, but I can not download them.

How can I give my proxy settings in Ubuntu terminal (just like we use cmd in Windows to choose IE proxy settings)?

share|improve this question
add comment

1 Answer

proxy setting from terminal in ubuntu:
Open the terminal and run the following commands:
For a HTTP proxy, simply run the following command in a terminal

" export http_proxy='http://proxy_username:password@proxy_ip:port " 

For a HTTPs and FTP

" export https_proxy='https://proxy_username:password@proxy_ip:port "
" export ftp_proxy='ftp://proxy_username:password@proxy_ip:port "  

If there is no username and password required for your proxy then simply remove the username and password section.

" export https_proxy='https://proxy_ip:port "

These settings are saved into /etc/apt/apt.conf file .So you can directly add these variables using text editor .First open the apt.conf file

" sudo gedit /etc/apt/apt.conf "

then enter the username,password,proxy_ip and port in given format

" 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 ";
share|improve this answer
Thanks For the answer –  user2200091 Sep 8 '13 at 12:45
add comment

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.