Unset http_proxy environment variable

Clash 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 throughsshor 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
 |Â
show 3 more comments
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 throughsshor 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
Have you looked under/etc/profile.d/?
â jasonwryan
Nov 2 '13 at 18:01
@jasonwryan I just looked under it, and nohttp_proxydefinition 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 thehttp_proxyvalue in VT1 (Control+Alt+F1) and the environment variable is not defined!
â JoseLSegura
Nov 3 '13 at 0:05
 |Â
show 3 more comments
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 throughsshor 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
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 throughsshor 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
bash environment-variables proxy
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 nohttp_proxydefinition 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 thehttp_proxyvalue in VT1 (Control+Alt+F1) and the environment variable is not defined!
â JoseLSegura
Nov 3 '13 at 0:05
 |Â
show 3 more comments
Have you looked under/etc/profile.d/?
â jasonwryan
Nov 2 '13 at 18:01
@jasonwryan I just looked under it, and nohttp_proxydefinition 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 thehttp_proxyvalue 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
 |Â
show 3 more comments
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 *
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/etcin addition to$HOME.
â Gilles
Nov 2 '13 at 23:49
@Gilles I have tried with both$HOMEand/etc, and looking forhttp_proxy(with-igrep 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
add a comment |Â
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"
Thehttp_proxyis defined for all the environment, not only for APT (for example, with wget it tried to use the defined proxy). My/etc/environmentfile 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
add a comment |Â
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
add a comment |Â
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.
add a comment |Â
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 *
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/etcin addition to$HOME.
â Gilles
Nov 2 '13 at 23:49
@Gilles I have tried with both$HOMEand/etc, and looking forhttp_proxy(with-igrep 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
add a comment |Â
up vote
1
down vote
Yuo could try a grep in your home directory or in etc. Something like:
$ cd ~
~$ grep -Ri http_proxy *
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/etcin addition to$HOME.
â Gilles
Nov 2 '13 at 23:49
@Gilles I have tried with both$HOMEand/etc, and looking forhttp_proxy(with-igrep 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
add a comment |Â
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 *
Yuo could try a grep in your home directory or in etc. Something like:
$ cd ~
~$ grep -Ri http_proxy *
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/etcin addition to$HOME.
â Gilles
Nov 2 '13 at 23:49
@Gilles I have tried with both$HOMEand/etc, and looking forhttp_proxy(with-igrep 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
add a comment |Â
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/etcin addition to$HOME.
â Gilles
Nov 2 '13 at 23:49
@Gilles I have tried with both$HOMEand/etc, and looking forhttp_proxy(with-igrep 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
add a comment |Â
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"
Thehttp_proxyis defined for all the environment, not only for APT (for example, with wget it tried to use the defined proxy). My/etc/environmentfile 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
add a comment |Â
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"
Thehttp_proxyis defined for all the environment, not only for APT (for example, with wget it tried to use the defined proxy). My/etc/environmentfile 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
add a comment |Â
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"
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"
answered Nov 2 '13 at 16:12
andr3w
862
862
Thehttp_proxyis defined for all the environment, not only for APT (for example, with wget it tried to use the defined proxy). My/etc/environmentfile 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
add a comment |Â
Thehttp_proxyis defined for all the environment, not only for APT (for example, with wget it tried to use the defined proxy). My/etc/environmentfile 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
add a comment |Â
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
add a comment |Â
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
add a comment |Â
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
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
edited Dec 27 '13 at 19:52
Risto Salminen
1,64511021
1,64511021
answered Dec 27 '13 at 19:25
n3rio
1
1
add a comment |Â
add a comment |Â
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.
add a comment |Â
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.
add a comment |Â
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.
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.
answered May 16 '14 at 14:02
lechup
1011
1011
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Have you looked under
/etc/profile.d/?â jasonwryan
Nov 2 '13 at 18:01
@jasonwryan I just looked under it, and no
http_proxydefinition 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_proxyvalue in VT1 (Control+Alt+F1) and the environment variable is not defined!â JoseLSegura
Nov 3 '13 at 0:05