I would like to use my LAN's proxy server in Ubuntu Desktop 12.04, but all my attempts have failed.

Here is what I did:

1) I went to System Settings Menu > Network, selected Network Proxy, Manual and entered the proxy address and port for http and https, and clicked Apply system wide. In this dialog box there's no way to enter authentication information (in previous versions of Ubuntu there was a Details button).

2) When I start Firefox a dialog box appears asking for authentication information. I enter "sc\ws662sc" for the user name and "mypass81" for password (and click remember password) and the browser is connected to the internet.

3) After that I go to the Terminal and try:

sudo apt-get update

but always get the error "407 Proxy Authentication Required".

5) I edited the config file with:

sudo gedit /etc/apt/apt.conf

to include the user and password info, as follows:

Acquire::http::proxy "http://gcDomain\w66gc:[email protected]:3128/";
Acquire::https::proxy "https://gcDomain\w66gc:[email protected]:3128/";

Even after I do this Firefox keeps asking for authentication info, and still get the 407 error in apt-get!

Also tried to put the proxy config file inside apt.conf.d (as some suggest for the same problem), but didn't work either. Don't know what else to do...

Thank you for any help.

1 Answer 1


I eventually solved this issue by using cntlm, according to the instructions in:

How to solve "407 Proxy Authentication Required" error in Ubuntu ?

Install cntlm (for example do sudo apt-get install cntlm) then edit the /etc/cntlm.conf file to contain:

Listen     SOME_PORT

For example:

Username   rafa
Domain     awesomeplace
Password   Xtra$trongp4ssw3rD
NoProxy    localhost, 127.0.0.*, 10.*
Listen     8080

Still would like to know how it could be done without cntlm...

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .