Ask HN: How to install homebrew on 14 inch Mac 2021

1 points by mpai ↗ HN
I am getting the error

url: (28) Failed to connect to raw.githubusercontent.com port 443 after 75235 ms: Operation timed out

I got a new 14 inch 2021 macpro and I just updated the os to latest, installed the xcode command line tools and then ran the following command to install homebrew

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

7 comments

[ 4.5 ms ] story [ 39.7 ms ] thread
Can you access the URL from your browser? If not, you have network-related problem. Behind VPN? Proxy? Bad DNS?
I cannot access the URL either via browser. But I am not behind any VPN and not set any proxy. This is a brand new laptop and after setting up the account, this is the first step I was trying to do. Since it is a personal laptop, I dont have any company related setups too.
Make sure that macOS is 100% updated, and post the verbose output from the curl command.
OS is updated. Here is the verbose output.

/bin/bash -c "$(curl https://raw.githubusercontent.com/Homebrew/install/HEAD/inst...)"

/bin/bash -c "$(curl https://raw.githubusercontent.com/Homebrew/install/HEAD/inst...)"

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:--  0:01:15 --:--:--     0
curl: (28) Failed to connect to raw.githubusercontent.com port 443 after 75406 ms: Operation timed out

I also tried to access the site raw.githubusercontent.com from my windows machine and I am not able to access the same. So it may be related to Proxy or DNS. But I have not set any proxy on my router. So not sure where to look for the way out.

Please post the _verbose_ output, i.e. when using -vvv as curl argument;

    curl -vvvfsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh
I am able to solve the issue by fixing my DNS. I was using the default dns provided by my ISP and that was creating the issue. Changed the same to 8.8.8.8 and the issue is resolved. Thank you for taking time and responding back.
(comment deleted)