It’s been a long time. It’s time to execute
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Failed to connect to raw.githubusercontent.com port 443: Connection refused error: Error: 7,
I tried to change the agent of GIT config, but it didn’t work,
It’s no use changing the source of China University of science and technology
The final solution is as follows:
sudo vi /etc/hosts
Add the following in host
199.232.28.133 raw.githubusercontent.com
Then execute again
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
Method 2
Re install command line tools, and then execute the installation instruction. Homebrew is installed successfully.
- removing the old tools
rm -rf /Library/Developer/CommandLineTools
install xcode command line tools again
xcode-select --install
implement
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Similar Posts:
- chown: /usr/local: Operation not permitted [Solved]
- curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused
- [Solved] Mac Install brew Error: “Warning: /opt/homebrew/bin is not in your PATH.”
- MAC Install hombrew error: RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54
- Homebrew | curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused
- Solve xcrun error after upgrading MacOS Catalina
- [Solved] Homebrew curl: (60) SSL certificate problem: certificate has expired
- Mac Upgrade Catalina(10.15.6) Error: svnThe subversion command line tools are no longer provided by Xcode.
- [Solved] brew update Error: “fatal: Could not resolve HEAD to a revision”
- How to Solve Error: parent directory is world writable but not sticky