I am trying to install Homebrew on my personal MacBook Air connected to my personal Wi-Fi but I am getting the following error :

enter image description here

I have already tried switching to different networks and resetting my laptop but I can't solve this issue.

(P.S. I can't access https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh through my browser either). Please help me with this

  • Turn off firewalls, Little Snitch, Lulu, etc. Dec 4, 2022 at 15:53
  • Might be overboard, make sure you're not using any strange DNS settings, like Cloudflare, etc...
    – ErniePC12
    Dec 4, 2022 at 16:38
  • I am not using any strange DNS settings and my firewall is off. This is a brand-new laptop,should I try resetting it and logging in with another apple ID instead?
    – knwn_gzl
    Dec 7, 2022 at 7:50

2 Answers 2


It was a problem with the Indian ISP "Jio". For some reason , devices connected to a Jio Network can't connect to raw.githubusercontent.com. I found a work around for this problem by adding the address to the DNS settings of my WiFi. I would also recommend adding for redundancy.


Go to "System Settings" --> "network" and set DNS in network will resolve this.

  • 2
    The error is “operation timed out” not “could not find host.” The server didn’t respond; not that the server wasn’t found. Why would changing the server that handles name resolution fix this?
    – Allan
    Feb 1 at 20:16
  • @allan if you look at the other answer, this actually might help.
    – nohillside
    Feb 1 at 23:11

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .