Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have been using windows 7 and to update windows i configured netsh winhttp settings by using command: netsh winhttp set proxy That worked for windows update and many other softwares. Is there a way i can put proxy settings throughout the computer that would work for software center and other softwares?

share|improve this question
What Ubuntu release are you running? – Mitch Apr 30 '13 at 17:06

Yes , Go to Settings -> Network -> Network Proxy -> Manual -> Apply System Wide

share|improve this answer
+1 because it makes the Software Center / Updates work over proxy. It's a pity that "Apply System Wide" doesn't do exactly what it says on the tin. I still can't ping from my terminal, for example. – TenLeftFingers Mar 10 '14 at 12:21
@TenLeftFingers: You can't ping when you are behind a proxy: – i08in Mar 10 '14 at 13:32

As Mahyar Pasarzangene said, you can set the proxy using System settings -> Network -> Network Proxy and then choosing "Manual" proxy and setting your host and port no. and then applying the settings system-wide.

However, if you are using authenticated proxy, i.e. you have a username and password for your proxy, you need to set it as follows:

Open a terminal(Ctrl+Alt+t) and then type the following:

sudo nano /etc/apt/apt.conf

and set your username and password as follows:

Acquire::http::proxy "http://username:password@host:port_no/";
Acquire::https::proxy "https://username:password@host:port_no/";
Acquire::ftp::proxy "ftp://username:password@host:port_no/";
Acquire::socks::proxy "socks://username:password@host:port_no/";

You will not have username@password when you open this document, but you should put your username and password as shown above, separated by a : and then separated by @ with the host.

If you have any special characters in your password, replace it with its HTML code.

share|improve this answer

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.