curl: (5) Couldn't resolve proxy hproxy~~~ 해결법

2019. 8. 1. 15:41꿀팁 분석 환경 설정/Linux 관련 팁

728x90

Flask를 이용해서 RestAPI를 해보려고 하는데, 이런 에러가 떴다.

 

실제로 검색해보니 ~~~~  이 부분과 매칭 되는 놈이 걸렸다.

env | grep -i proxy

 

그래서 proxy를 잘 모르지만, 저 놈이 먼가 맵핑이 되어있어서 문제였던 것 같다.

 

그래서 아래 글에서 제시한 방법으로 해결!

unset http_proxy
unset ftp_proxy
unset https_proxy

 

하지만 저렇게만 하면 다시 원래대로 돌아옵니다. 

그래서 직접 들어가서 설정을 해줘야 합니다.

저는 이렇게 설정을 해주니 그다음부터는 안 해줘도 되더라고요!

vi /etc/environment

http_proxy = ""

 

 

https://askubuntu.com/questions/347384/curl-5-couldnt-resolve-proxy-hproxy-iitm-ac-in

 

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

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 https://get.rvm.io | bash -s stable --ruby --autolibs=enable --auto-dotfi...

askubuntu.com

 

728x90