M BUZZ CRAZE NEWS
// general

curl: (5) Couldn't resolve proxy 'hproxy.iitm.ac.in'

By Emma Martinez

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-dotfiles

I'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.

4

3 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_proxy

Double check that they've been removed by:

env | grep -i proxy

Now try your curl command.

0

You can temporarily bypass the proxy by using the --noproxy option, e.g.

curl -L --noproxy | bash -s stable --ruby --autolibs=enable --auto-dotfiles

You 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.

NOTE: if you are using GNOME Desktop Environment, you also need to unset the proxy in System Settings - Network.

3

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.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy