Unset http_proxy environment variable

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
1
down vote

favorite













Updated 11/03: After doing some test with your suggestions, I only can
be sure about one thing: there is something related to the graphical
environment, because if I login through ssh or using a virtual
terminal, the variable is not defined. Any new idea?




I have defined in some persistent way the http_proxy variable. Always I open a terminal, I have the http_proxy already defined.



This is not my desired behaviour, so I'm looking where I defined the http_proxy environment variable.



I'm pretty sure that is something user related, because with other users in the same computer I don't have the problem.



I have checked the .bashrc and other bash-related configuration files, but none of them include the http_proxy variable definition.



Obviously, I can unset the variable without any problem, but I want to know where the hell is the variable defined.










share|improve this question























  • Have you looked under /etc/profile.d/?
    – jasonwryan
    Nov 2 '13 at 18:01










  • @jasonwryan I just looked under it, and no http_proxy definition is there
    – JoseLSegura
    Nov 2 '13 at 23:48






  • 2




    Which desktop environment do you use? If you've set up a proxy in your desktop environment, it might set this variable as well.
    – Gilles
    Nov 2 '13 at 23:50










  • @Gilles I'm using Gnome 3, in Debian Unstable. I have checked in the network configuration dialogs and the proxy is not configured. Maybe a value in gsettings/dconf can assign a environment variable?
    – JoseLSegura
    Nov 3 '13 at 0:04










  • Mmmm nice idea, @Gilles. I tried to print the http_proxy value in VT1 (Control+Alt+F1) and the environment variable is not defined!
    – JoseLSegura
    Nov 3 '13 at 0:05














up vote
1
down vote

favorite













Updated 11/03: After doing some test with your suggestions, I only can
be sure about one thing: there is something related to the graphical
environment, because if I login through ssh or using a virtual
terminal, the variable is not defined. Any new idea?




I have defined in some persistent way the http_proxy variable. Always I open a terminal, I have the http_proxy already defined.



This is not my desired behaviour, so I'm looking where I defined the http_proxy environment variable.



I'm pretty sure that is something user related, because with other users in the same computer I don't have the problem.



I have checked the .bashrc and other bash-related configuration files, but none of them include the http_proxy variable definition.



Obviously, I can unset the variable without any problem, but I want to know where the hell is the variable defined.










share|improve this question























  • Have you looked under /etc/profile.d/?
    – jasonwryan
    Nov 2 '13 at 18:01










  • @jasonwryan I just looked under it, and no http_proxy definition is there
    – JoseLSegura
    Nov 2 '13 at 23:48






  • 2




    Which desktop environment do you use? If you've set up a proxy in your desktop environment, it might set this variable as well.
    – Gilles
    Nov 2 '13 at 23:50










  • @Gilles I'm using Gnome 3, in Debian Unstable. I have checked in the network configuration dialogs and the proxy is not configured. Maybe a value in gsettings/dconf can assign a environment variable?
    – JoseLSegura
    Nov 3 '13 at 0:04










  • Mmmm nice idea, @Gilles. I tried to print the http_proxy value in VT1 (Control+Alt+F1) and the environment variable is not defined!
    – JoseLSegura
    Nov 3 '13 at 0:05












up vote
1
down vote

favorite









up vote
1
down vote

favorite












Updated 11/03: After doing some test with your suggestions, I only can
be sure about one thing: there is something related to the graphical
environment, because if I login through ssh or using a virtual
terminal, the variable is not defined. Any new idea?




I have defined in some persistent way the http_proxy variable. Always I open a terminal, I have the http_proxy already defined.



This is not my desired behaviour, so I'm looking where I defined the http_proxy environment variable.



I'm pretty sure that is something user related, because with other users in the same computer I don't have the problem.



I have checked the .bashrc and other bash-related configuration files, but none of them include the http_proxy variable definition.



Obviously, I can unset the variable without any problem, but I want to know where the hell is the variable defined.










share|improve this question
















Updated 11/03: After doing some test with your suggestions, I only can
be sure about one thing: there is something related to the graphical
environment, because if I login through ssh or using a virtual
terminal, the variable is not defined. Any new idea?




I have defined in some persistent way the http_proxy variable. Always I open a terminal, I have the http_proxy already defined.



This is not my desired behaviour, so I'm looking where I defined the http_proxy environment variable.



I'm pretty sure that is something user related, because with other users in the same computer I don't have the problem.



I have checked the .bashrc and other bash-related configuration files, but none of them include the http_proxy variable definition.



Obviously, I can unset the variable without any problem, but I want to know where the hell is the variable defined.







bash environment-variables proxy






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Sep 13 at 0:10









Jeff Schaller

33.1k849111




33.1k849111










asked Nov 2 '13 at 14:59









JoseLSegura

2171413




2171413











  • Have you looked under /etc/profile.d/?
    – jasonwryan
    Nov 2 '13 at 18:01










  • @jasonwryan I just looked under it, and no http_proxy definition is there
    – JoseLSegura
    Nov 2 '13 at 23:48






  • 2




    Which desktop environment do you use? If you've set up a proxy in your desktop environment, it might set this variable as well.
    – Gilles
    Nov 2 '13 at 23:50










  • @Gilles I'm using Gnome 3, in Debian Unstable. I have checked in the network configuration dialogs and the proxy is not configured. Maybe a value in gsettings/dconf can assign a environment variable?
    – JoseLSegura
    Nov 3 '13 at 0:04










  • Mmmm nice idea, @Gilles. I tried to print the http_proxy value in VT1 (Control+Alt+F1) and the environment variable is not defined!
    – JoseLSegura
    Nov 3 '13 at 0:05
















  • Have you looked under /etc/profile.d/?
    – jasonwryan
    Nov 2 '13 at 18:01










  • @jasonwryan I just looked under it, and no http_proxy definition is there
    – JoseLSegura
    Nov 2 '13 at 23:48






  • 2




    Which desktop environment do you use? If you've set up a proxy in your desktop environment, it might set this variable as well.
    – Gilles
    Nov 2 '13 at 23:50










  • @Gilles I'm using Gnome 3, in Debian Unstable. I have checked in the network configuration dialogs and the proxy is not configured. Maybe a value in gsettings/dconf can assign a environment variable?
    – JoseLSegura
    Nov 3 '13 at 0:04










  • Mmmm nice idea, @Gilles. I tried to print the http_proxy value in VT1 (Control+Alt+F1) and the environment variable is not defined!
    – JoseLSegura
    Nov 3 '13 at 0:05















Have you looked under /etc/profile.d/?
– jasonwryan
Nov 2 '13 at 18:01




Have you looked under /etc/profile.d/?
– jasonwryan
Nov 2 '13 at 18:01












@jasonwryan I just looked under it, and no http_proxy definition is there
– JoseLSegura
Nov 2 '13 at 23:48




@jasonwryan I just looked under it, and no http_proxy definition is there
– JoseLSegura
Nov 2 '13 at 23:48




2




2




Which desktop environment do you use? If you've set up a proxy in your desktop environment, it might set this variable as well.
– Gilles
Nov 2 '13 at 23:50




Which desktop environment do you use? If you've set up a proxy in your desktop environment, it might set this variable as well.
– Gilles
Nov 2 '13 at 23:50












@Gilles I'm using Gnome 3, in Debian Unstable. I have checked in the network configuration dialogs and the proxy is not configured. Maybe a value in gsettings/dconf can assign a environment variable?
– JoseLSegura
Nov 3 '13 at 0:04




@Gilles I'm using Gnome 3, in Debian Unstable. I have checked in the network configuration dialogs and the proxy is not configured. Maybe a value in gsettings/dconf can assign a environment variable?
– JoseLSegura
Nov 3 '13 at 0:04












Mmmm nice idea, @Gilles. I tried to print the http_proxy value in VT1 (Control+Alt+F1) and the environment variable is not defined!
– JoseLSegura
Nov 3 '13 at 0:05




Mmmm nice idea, @Gilles. I tried to print the http_proxy value in VT1 (Control+Alt+F1) and the environment variable is not defined!
– JoseLSegura
Nov 3 '13 at 0:05










4 Answers
4






active

oldest

votes

















up vote
1
down vote













Yuo could try a grep in your home directory or in etc. Something like:



 $ cd ~ 
~$ grep -Ri http_proxy *





share|improve this answer


















  • 2




    Please no signatures on posts.
    – goldilocks
    Nov 2 '13 at 15:27











  • I tried something very similar: find $HOME -type f | xargs grep -i http_proxy, and it doesn't return anything
    – JoseLSegura
    Nov 2 '13 at 17:08











  • @JoseLSegura Do the same thing with /etc in addition to $HOME.
    – Gilles
    Nov 2 '13 at 23:49










  • @Gilles I have tried with both $HOME and /etc, and looking for http_proxy (with -i grep option, to ignore case) and for the defined value for the variable. Returns nothing in the 4 scenarios. This is the reason because I'm here asking this :-D Estrange thing...
    – JoseLSegura
    Nov 3 '13 at 0:03

















up vote
0
down vote













The environment variables are saved in /etc/environment



cat /etc/environment | grep "http_proxy"


And proxy for aptitude are save in /etc/apt/apt.conf



cat /etc/apt/apt.conf | grep "http::proxy"





share|improve this answer




















  • The http_proxy is defined for all the environment, not only for APT (for example, with wget it tried to use the defined proxy). My /etc/environment file is empty. Nice try
    – JoseLSegura
    Nov 2 '13 at 16:43











  • How you defined the http_proxy?
    – andr3w
    Nov 2 '13 at 17:13










  • I don't remember, that's the problem :-D
    – JoseLSegura
    Nov 2 '13 at 17:15

















up vote
0
down vote













I don't know if this question already has an answer, but this is my /etc/environment:



PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"
http_proxy="http://192.168.0.1:8080"
ftp_proxy="ftp://192.168.0.1:8080"
https_proxy="https://192.168.0.1:8080"
export http_proxy ftp_proxy https_proxy





share|improve this answer





























    up vote
    0
    down vote













    I was facing similar problem (after using Fiddler proxy to debug some stuff - I guess that was the source of problems).



    Clearing out gconf dir:



    rm ~/gconf/system/proxy -R
    rm ~/gconf/system/http_proxy -R


    And relogging did the trick.






    share|improve this answer




















      Your Answer







      StackExchange.ready(function()
      var channelOptions =
      tags: "".split(" "),
      id: "106"
      ;
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function()
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled)
      StackExchange.using("snippets", function()
      createEditor();
      );

      else
      createEditor();

      );

      function createEditor()
      StackExchange.prepareEditor(
      heartbeatType: 'answer',
      convertImagesToLinks: false,
      noModals: false,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: null,
      bindNavPrevention: true,
      postfix: "",
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      );



      );













       

      draft saved


      draft discarded


















      StackExchange.ready(
      function ()
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f98565%2funset-http-proxy-environment-variable%23new-answer', 'question_page');

      );

      Post as a guest






























      4 Answers
      4






      active

      oldest

      votes








      4 Answers
      4






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes








      up vote
      1
      down vote













      Yuo could try a grep in your home directory or in etc. Something like:



       $ cd ~ 
      ~$ grep -Ri http_proxy *





      share|improve this answer


















      • 2




        Please no signatures on posts.
        – goldilocks
        Nov 2 '13 at 15:27











      • I tried something very similar: find $HOME -type f | xargs grep -i http_proxy, and it doesn't return anything
        – JoseLSegura
        Nov 2 '13 at 17:08











      • @JoseLSegura Do the same thing with /etc in addition to $HOME.
        – Gilles
        Nov 2 '13 at 23:49










      • @Gilles I have tried with both $HOME and /etc, and looking for http_proxy (with -i grep option, to ignore case) and for the defined value for the variable. Returns nothing in the 4 scenarios. This is the reason because I'm here asking this :-D Estrange thing...
        – JoseLSegura
        Nov 3 '13 at 0:03














      up vote
      1
      down vote













      Yuo could try a grep in your home directory or in etc. Something like:



       $ cd ~ 
      ~$ grep -Ri http_proxy *





      share|improve this answer


















      • 2




        Please no signatures on posts.
        – goldilocks
        Nov 2 '13 at 15:27











      • I tried something very similar: find $HOME -type f | xargs grep -i http_proxy, and it doesn't return anything
        – JoseLSegura
        Nov 2 '13 at 17:08











      • @JoseLSegura Do the same thing with /etc in addition to $HOME.
        – Gilles
        Nov 2 '13 at 23:49










      • @Gilles I have tried with both $HOME and /etc, and looking for http_proxy (with -i grep option, to ignore case) and for the defined value for the variable. Returns nothing in the 4 scenarios. This is the reason because I'm here asking this :-D Estrange thing...
        – JoseLSegura
        Nov 3 '13 at 0:03












      up vote
      1
      down vote










      up vote
      1
      down vote









      Yuo could try a grep in your home directory or in etc. Something like:



       $ cd ~ 
      ~$ grep -Ri http_proxy *





      share|improve this answer














      Yuo could try a grep in your home directory or in etc. Something like:



       $ cd ~ 
      ~$ grep -Ri http_proxy *






      share|improve this answer














      share|improve this answer



      share|improve this answer








      edited Nov 2 '13 at 15:27









      goldilocks

      60.1k13140196




      60.1k13140196










      answered Nov 2 '13 at 15:21









      Nicola Sarobba

      17019




      17019







      • 2




        Please no signatures on posts.
        – goldilocks
        Nov 2 '13 at 15:27











      • I tried something very similar: find $HOME -type f | xargs grep -i http_proxy, and it doesn't return anything
        – JoseLSegura
        Nov 2 '13 at 17:08











      • @JoseLSegura Do the same thing with /etc in addition to $HOME.
        – Gilles
        Nov 2 '13 at 23:49










      • @Gilles I have tried with both $HOME and /etc, and looking for http_proxy (with -i grep option, to ignore case) and for the defined value for the variable. Returns nothing in the 4 scenarios. This is the reason because I'm here asking this :-D Estrange thing...
        – JoseLSegura
        Nov 3 '13 at 0:03












      • 2




        Please no signatures on posts.
        – goldilocks
        Nov 2 '13 at 15:27











      • I tried something very similar: find $HOME -type f | xargs grep -i http_proxy, and it doesn't return anything
        – JoseLSegura
        Nov 2 '13 at 17:08











      • @JoseLSegura Do the same thing with /etc in addition to $HOME.
        – Gilles
        Nov 2 '13 at 23:49










      • @Gilles I have tried with both $HOME and /etc, and looking for http_proxy (with -i grep option, to ignore case) and for the defined value for the variable. Returns nothing in the 4 scenarios. This is the reason because I'm here asking this :-D Estrange thing...
        – JoseLSegura
        Nov 3 '13 at 0:03







      2




      2




      Please no signatures on posts.
      – goldilocks
      Nov 2 '13 at 15:27





      Please no signatures on posts.
      – goldilocks
      Nov 2 '13 at 15:27













      I tried something very similar: find $HOME -type f | xargs grep -i http_proxy, and it doesn't return anything
      – JoseLSegura
      Nov 2 '13 at 17:08





      I tried something very similar: find $HOME -type f | xargs grep -i http_proxy, and it doesn't return anything
      – JoseLSegura
      Nov 2 '13 at 17:08













      @JoseLSegura Do the same thing with /etc in addition to $HOME.
      – Gilles
      Nov 2 '13 at 23:49




      @JoseLSegura Do the same thing with /etc in addition to $HOME.
      – Gilles
      Nov 2 '13 at 23:49












      @Gilles I have tried with both $HOME and /etc, and looking for http_proxy (with -i grep option, to ignore case) and for the defined value for the variable. Returns nothing in the 4 scenarios. This is the reason because I'm here asking this :-D Estrange thing...
      – JoseLSegura
      Nov 3 '13 at 0:03




      @Gilles I have tried with both $HOME and /etc, and looking for http_proxy (with -i grep option, to ignore case) and for the defined value for the variable. Returns nothing in the 4 scenarios. This is the reason because I'm here asking this :-D Estrange thing...
      – JoseLSegura
      Nov 3 '13 at 0:03












      up vote
      0
      down vote













      The environment variables are saved in /etc/environment



      cat /etc/environment | grep "http_proxy"


      And proxy for aptitude are save in /etc/apt/apt.conf



      cat /etc/apt/apt.conf | grep "http::proxy"





      share|improve this answer




















      • The http_proxy is defined for all the environment, not only for APT (for example, with wget it tried to use the defined proxy). My /etc/environment file is empty. Nice try
        – JoseLSegura
        Nov 2 '13 at 16:43











      • How you defined the http_proxy?
        – andr3w
        Nov 2 '13 at 17:13










      • I don't remember, that's the problem :-D
        – JoseLSegura
        Nov 2 '13 at 17:15














      up vote
      0
      down vote













      The environment variables are saved in /etc/environment



      cat /etc/environment | grep "http_proxy"


      And proxy for aptitude are save in /etc/apt/apt.conf



      cat /etc/apt/apt.conf | grep "http::proxy"





      share|improve this answer




















      • The http_proxy is defined for all the environment, not only for APT (for example, with wget it tried to use the defined proxy). My /etc/environment file is empty. Nice try
        – JoseLSegura
        Nov 2 '13 at 16:43











      • How you defined the http_proxy?
        – andr3w
        Nov 2 '13 at 17:13










      • I don't remember, that's the problem :-D
        – JoseLSegura
        Nov 2 '13 at 17:15












      up vote
      0
      down vote










      up vote
      0
      down vote









      The environment variables are saved in /etc/environment



      cat /etc/environment | grep "http_proxy"


      And proxy for aptitude are save in /etc/apt/apt.conf



      cat /etc/apt/apt.conf | grep "http::proxy"





      share|improve this answer












      The environment variables are saved in /etc/environment



      cat /etc/environment | grep "http_proxy"


      And proxy for aptitude are save in /etc/apt/apt.conf



      cat /etc/apt/apt.conf | grep "http::proxy"






      share|improve this answer












      share|improve this answer



      share|improve this answer










      answered Nov 2 '13 at 16:12









      andr3w

      862




      862











      • The http_proxy is defined for all the environment, not only for APT (for example, with wget it tried to use the defined proxy). My /etc/environment file is empty. Nice try
        – JoseLSegura
        Nov 2 '13 at 16:43











      • How you defined the http_proxy?
        – andr3w
        Nov 2 '13 at 17:13










      • I don't remember, that's the problem :-D
        – JoseLSegura
        Nov 2 '13 at 17:15
















      • The http_proxy is defined for all the environment, not only for APT (for example, with wget it tried to use the defined proxy). My /etc/environment file is empty. Nice try
        – JoseLSegura
        Nov 2 '13 at 16:43











      • How you defined the http_proxy?
        – andr3w
        Nov 2 '13 at 17:13










      • I don't remember, that's the problem :-D
        – JoseLSegura
        Nov 2 '13 at 17:15















      The http_proxy is defined for all the environment, not only for APT (for example, with wget it tried to use the defined proxy). My /etc/environment file is empty. Nice try
      – JoseLSegura
      Nov 2 '13 at 16:43





      The http_proxy is defined for all the environment, not only for APT (for example, with wget it tried to use the defined proxy). My /etc/environment file is empty. Nice try
      – JoseLSegura
      Nov 2 '13 at 16:43













      How you defined the http_proxy?
      – andr3w
      Nov 2 '13 at 17:13




      How you defined the http_proxy?
      – andr3w
      Nov 2 '13 at 17:13












      I don't remember, that's the problem :-D
      – JoseLSegura
      Nov 2 '13 at 17:15




      I don't remember, that's the problem :-D
      – JoseLSegura
      Nov 2 '13 at 17:15










      up vote
      0
      down vote













      I don't know if this question already has an answer, but this is my /etc/environment:



      PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"
      http_proxy="http://192.168.0.1:8080"
      ftp_proxy="ftp://192.168.0.1:8080"
      https_proxy="https://192.168.0.1:8080"
      export http_proxy ftp_proxy https_proxy





      share|improve this answer


























        up vote
        0
        down vote













        I don't know if this question already has an answer, but this is my /etc/environment:



        PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"
        http_proxy="http://192.168.0.1:8080"
        ftp_proxy="ftp://192.168.0.1:8080"
        https_proxy="https://192.168.0.1:8080"
        export http_proxy ftp_proxy https_proxy





        share|improve this answer
























          up vote
          0
          down vote










          up vote
          0
          down vote









          I don't know if this question already has an answer, but this is my /etc/environment:



          PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"
          http_proxy="http://192.168.0.1:8080"
          ftp_proxy="ftp://192.168.0.1:8080"
          https_proxy="https://192.168.0.1:8080"
          export http_proxy ftp_proxy https_proxy





          share|improve this answer














          I don't know if this question already has an answer, but this is my /etc/environment:



          PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"
          http_proxy="http://192.168.0.1:8080"
          ftp_proxy="ftp://192.168.0.1:8080"
          https_proxy="https://192.168.0.1:8080"
          export http_proxy ftp_proxy https_proxy






          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Dec 27 '13 at 19:52









          Risto Salminen

          1,64511021




          1,64511021










          answered Dec 27 '13 at 19:25









          n3rio

          1




          1




















              up vote
              0
              down vote













              I was facing similar problem (after using Fiddler proxy to debug some stuff - I guess that was the source of problems).



              Clearing out gconf dir:



              rm ~/gconf/system/proxy -R
              rm ~/gconf/system/http_proxy -R


              And relogging did the trick.






              share|improve this answer
























                up vote
                0
                down vote













                I was facing similar problem (after using Fiddler proxy to debug some stuff - I guess that was the source of problems).



                Clearing out gconf dir:



                rm ~/gconf/system/proxy -R
                rm ~/gconf/system/http_proxy -R


                And relogging did the trick.






                share|improve this answer






















                  up vote
                  0
                  down vote










                  up vote
                  0
                  down vote









                  I was facing similar problem (after using Fiddler proxy to debug some stuff - I guess that was the source of problems).



                  Clearing out gconf dir:



                  rm ~/gconf/system/proxy -R
                  rm ~/gconf/system/http_proxy -R


                  And relogging did the trick.






                  share|improve this answer












                  I was facing similar problem (after using Fiddler proxy to debug some stuff - I guess that was the source of problems).



                  Clearing out gconf dir:



                  rm ~/gconf/system/proxy -R
                  rm ~/gconf/system/http_proxy -R


                  And relogging did the trick.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered May 16 '14 at 14:02









                  lechup

                  1011




                  1011



























                       

                      draft saved


                      draft discarded















































                       


                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function ()
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f98565%2funset-http-proxy-environment-variable%23new-answer', 'question_page');

                      );

                      Post as a guest













































































                      Popular posts from this blog

                      Peggy Mitchell

                      Palaiologos

                      The Forum (Inglewood, California)