Ubuntu

proxy settings doesn't seem to work with gui apps

Asked by Sven Kreienbrock on 2012-05-08

Hi,

I configured all proxy-settings I remembered in my 12.04 system. Still all the graphical apps which could install software don't work behind the proxy.

I configured apt with Aquire::http::proxy, Aquire::https::proxy and Aquire::ftp::proxy as well as http::proxy and so on.
I configured /etc/environment or manually exported the environment variables http_proxy and https_proxy
I configured the network-proxy settings of the system (apply system-wide)

And still Software like the Software-Center or the gnome-language-selector (or a part of it) can't install their packages.

I've to use the shell with "sudo -E" to get it work. But that does not fix my problem with those graphical tools.

Help appreciated.
Best regards,

From terminal create or modify the /etc/apt/apt.conf file , type:

gksudo gedit /etc/apt/apt.conf

and put a row like this:

http::proxy "http://192.168.1.75:3128/";

Save and exit then retry... you can do it from terminal, type:

sudo apt-get update
sudo apt-get sdist-upgrade

Sorry better...

From terminal create or modify the /etc/apt/apt.conf file , type:

gksudo gedit /etc/apt/apt.conf

and put a row like this:

http::proxy "http://192.168.1.75:3128/";

Save and exit then retry... you can do it from terminal, type:

sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade

Sven Kreienbrock (vinterkind) said : #3

Well I prefer vim, but thanks! :-)

Unfortunately I've already configured apt with http::proxy as written above. And If I weren't such a shell geek, I'd be much more pissed of at that. The strange thing is that I've no problems with apt in the shell. Everything seems fine. The only one thing I need to do is to use "sudo -E apt-*" to export my http_proxy variable (Why hasn't root the vars from /etc/environment?). But even the exported http_proxy var in .profile/.bashrc of /root/ doesn't change this.

Maybe I missed another configuration ?

cheers,

Can you help with this problem?

Provide an answer of your own, or ask Sven Kreienbrock for more information if necessary.

To post a message you must log in.