0

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

3
  • Turn off firewalls, Little Snitch, Lulu, etc. Commented Dec 4, 2022 at 15:53
  • Might be overboard, make sure you're not using any strange DNS settings, like Cloudflare, etc...
    – ErniePC12
    Commented 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
    Commented Dec 7, 2022 at 7:50

2 Answers 2

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 1.1.1.1 to the DNS settings of my WiFi. I would also recommend adding 1.0.0.1 for redundancy.

0
0

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

2
  • 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
    Commented Feb 1, 2023 at 20:16
  • @allan if you look at the other answer, this actually might help.
    – nohillside
    Commented Feb 1, 2023 at 23:11

You must log in to answer this question.

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