In frustration I tried several distros: Simply Mepis, Ubuntu and OpenSuSE 12.1. etc. I hate Gnome and now you can imagine the situation with Unity. Simply Mepis worked fine in resolving my proxy issues using the given Mepis control centre, but for some reason it stopped working after a while and it also did not allow reverting back to Kdenetwork manager. Opensuse, though I have I a high regard for that distro, did not work. Even in a proxyless environment in my home, its clunky YAST2 could not fetch the update repos. I couldn't figure out why? I have to say Opensuse's software repo refreshing (everytime which is default) is slow and patience testing. Debian beats OpenSuse infinite times in this issue. Its easier to setup the repos and the package info fetching is fast. Finally I returned to my good old friend Kubuntu. But I didn't know how to setup proxy for the console.
did not work:
Finally (Hurray) with the help of our uni's sysadmin, I figured out where the proxy environment is set in Ubuntu- /etc/environment (we grep -ed /etc * for "http_proxy" and found out where it is located.)
So to setup proxy in Kubuntu in CLI, as a superuser (sudo), edit /etc/environment file
append the following lines at the end*:
*replace "proxy.xxx.xx" with your work/uni's proxy server name,replace "80XX" with your work/uni's proxy port number.
Save it and reboot your system. You can get internet in your konsole and you can ssh, ping or wget to any computer in the web.
Now I am back at work with my favourite KDE :)
Additional how-t0 :
To setup apt-get to your proxy environment, create a apt.conf file in your /etc/apt/ folder and specify the proxy like this. As a su or sudoer edit apt.conf file (create one if there isn't)