Removing proxy settings on ubuntu 12.04

16,540

In your current session, you can unset those environment variables:
(man unset)

unset http_proxy
unset https_proxy

Check also in your ~/.profile or ~/.bashrc if you are not setting those variables at login.

Those variables could be also define system-wide: check /etc/environment or the /etc/profile.d folder content.

Share:
16,540
pale_rider
Author by

pale_rider

Self-taught programmer and web designer/developer. UFC Fan.

Updated on July 12, 2022

Comments

  • pale_rider
    pale_rider almost 2 years

    I had proxy set when I was using my college WiFi. Later I disabled it through the System Settings GUI. However when I tried to clone a github repo on the terminal it was failing due to connection timeout. Although the proxy is disabled when i ran this code in the terminal,

    env | grep -i proxy
    

    It showed this,

    http_proxy=http://172.16.0.16:8080/
    UBUNTU_MENUPROXY=libappmenu.so
    https_proxy=https://172.16.0.16:8080/
    

    I'm guessing this means the proxy settings are still active. Please tell me how to get rid of this as my current internet connection does not have proxy and because of this I'm not able to use github through the terminal.