I have been using the proxy hproxy.iitm.ac.in. I've moved out now and want to change config to no proxy. On using:
curl -L | bash -s stable --ruby --autolibs=enable --auto-dotfilesI'm prompted with:
curl: (5) Couldn't resolve proxy 'hproxy.iitm.ac.in'I'm not very proficient with Ubuntu (using 12.10). Please, could someone tell me what configurations I need to change to be able to use curl?
EDIT : I'm able to browse internet. I have also changed my ~/.bashrc to show:
export http_proxy="";
export https_proxy="";
export ftp_proxy="";But it didnt help
Thanks.
43 Answers
From the comments and your output of env, you still have some proxy variables set. Execute the following commands to unset them:
unset http_proxy
unset ftp_proxy
unset https_proxyDouble check that they've been removed by:
env | grep -i proxyNow try your curl command.
You can temporarily bypass the proxy by using the --noproxy option, e.g.
curl -L --noproxy | bash -s stable --ruby --autolibs=enable --auto-dotfilesYou may need to remove proxy settings in ~/.bashrc or ~/.profile or system wide(/etc/profile, /etc/bash.bashrc etc...). Also take a look at ~/.curlrc.
3NOTE: if you are using GNOME Desktop Environment, you also need to unset the proxy in System Settings - Network.
Open ~/.bashrc add these lines to unset variables.
export http_proxy="";
export https_proxy="";
export ftp_proxy="";Then either logout and login from terminal or source .bashrc.