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'm trying to set a system wide proxy, and I'm specifically having difficulties with apt-get for installing applications on my Ubuntu. I'm in a university using a proxy server with username/password. I'm aware of setting a proxy with username and password in the following manner:

But it fails, as a critical example with apt-get. Username contains backslash( \ ) in it and I'm wondering whether that could be a problem for failing. I'd be grateful with any input on this.

share|improve this question
up vote 9 down vote accepted

Try escaping the backslash like this:

where '%5C' is the URL-encoded value for the backslash character. See this background.

share|improve this answer
Thanks. That worked! – armando Armandiano Nov 27 '11 at 11:49

Historically, you could set up a proxy using environment variables like http_proxy=http://USERNAME:PASSWORD@PROXYIP:PROXYPORT

So it might be possible to specify the username and password in the host field of the Network section like above, i.e.

share|improve this answer
  1. Open Network by pressing Alt+F2 and typing the same.
  2. You should clearly see the Network Proxy tab.
  3. After selecting the tab, select the Method to be manual and set all the proxies.
  4. Then, click Apply system wide, it will ask for your password, and you're done.
share|improve this answer

protected by Community Feb 1 at 17:45

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

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