Ubuntu – How to set a system wide proxy with a username and password

PROXY

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:

http://username:password@proxy.thing.com:8080/

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.

Best Answer

Try escaping the backslash like this:

http://user%5Cname:password@proxy.thing.com:8080/

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

Related Question