Changing the http_proxy variable in Karmic (9.10)

After a lot of searching, I finally found the place to reset the http_proxy variable in Ubuntu 9.10. I checked in synaptic preferences, the proxy settings in system->admin->proxy, ~/.bashrc, /home/root/.bashrc, /etc/wgetrc but couldn’t find it set anywhere.
I finally found it in /etc/environment. Commenting it out and rebooting it finally stopped setting the http_proxy variable.