When we use different internet connection in one laptop, and if one of those connections is proxy server network connection, then we may have a problem with accessing internet in Ubuntu Software Center and in Terminal. I don’t know it is a bug or just settings reset, but problem exists. I am describing a problem:

In direct connection we haven’t any problem with internet access. But when we switch to proxy connection, at first everything is ok, internet works in Gnome.(and all applications can take access from GNOME). But Terminal and Software Center gives connection error. I investigated this problem in internet. And at last i have found solution. We can do this simple action in Terminal.

cd etc/apt sudo gedit apt.conf

Then we see this document empty. So we write in it:

Acquire::http::Proxy “http://proxy_url:proxy_port/”; Acquire::ftp::Proxy “http://proxy_url:proxy_port/”;

We save it and close. That’s all, internet access has been restored in Terminal and in Ubuntu Software Center.

First posted in e-haci.net