MAC Install hombrew error: RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54

Error: RPC failed when installing homebrew on Mac; curl 56 LibreSSL SSL_ read: SSL_ ERROR_ SYSCALL, errno 54

Problem description

In the MAC terminal, enter the installation instructions given by the homebrew website:

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Results an error occurred at the end of the installation:

fatal: unable to access 'https://github.com/Homebrew/brew/': Could not resolve host: github.com
Failed during: git fetch origin master:refs/remotes/origin/master --tags --force

As shown in the figure:

it is said that the Internet is blocked, but I also hang SS. It should not be this problem. Many solutions are to modify the link into a mirror image, but it doesn’t seem to work. Try to Ping the address of GitHub on the terminal:

ping github.com 

As a result, the following result appeared, and the network was really blocked

Solution

Modify the host configuration, input the following command in the terminal to open the edit file.

sudo vi /etc/hosts

Press s key to enter editing mode, add 13.229.188.59 github.com at the bottom
try to Ping github.com on the terminal again, and it is found that it has been successful.

common problem

In the installation process, the following error, but also the network is not

error: RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54
fatal: The remote end hung up unexpectedly

Sometimes if you do not do the above operation, occasionally try again, there will be a probability of success, I tried three times, inexplicably successful.

Similar Posts: