Network Proxy Settings Configurations Error

Asked by Indrani

No particular error message..
I have re-installed Lucid at least two three times for various reasons, and I noticed that when I change the proxy settings in the "Network Proxy" in System->Preferences then neither am I able to download updates nor the terminal is able to apt-get.
And neither the software center is able to install nor synaptic is able to install anything. Is this a bug or is there something that I need to configure?
When it is freshly installed then everything works fine. But once I change the network settings, it doesn't work anymore. Even if I keep the "Default" and add "New Locations" and switch back to "Default" it does not work anymore
Can anybody help me please.
Thank you in advance,
Indrani

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu apt Edit question
Assignee:
No assignee Edit question
Solved by:
marcobra (Marco Braida)
Solved:
Last query:
Last reply:
Revision history for this message
Best marcobra (Marco Braida) (marcobra) said :
#1

Please add an apt wide proxy set... and retry from terminal type:

gksudo gedit /etc/apt/apt.conf.d/proxy

and put in this file a row like this substitute the ip and the port with your settings:

Acquire::http::proxy "http://192.168.1.40:3128/";

or if your proxy need a ser and password put this row:

Acquire::http::proxy "http://user:password@proxy_ip:proxy_port/";

Hth

Revision history for this message
Indrani (dawn-indrani) said :
#2

wow..!
Thank you so much.The proxy without the username&password worked.
Just out of curiosity, if my username includes some special characters like "\" or (u\1) then would that create a problem

Revision history for this message
Indrani (dawn-indrani) said :
#3

Thanks marcobra (Marco Braida), that solved my question.