解决Homebrew报错Error: Failure while executing; git clone https://github.com/Homebrew/homebrew-core....

1.错误代码 

mac上安装包管理工具homebrew失败!【Failure while executing; `git clone https://github.com/Homebrew/homebrew-cor】

Cloning into '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core'...
fatal: unable to access 'https://github.com/Homebrew/homebrew-core/': LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54
Error: Failure while executing; `git clone https://github.com/Homebrew/homebrew-core /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core` exited with 128.
Error: Failure while executing; `/usr/local/bin/brew tap homebrew/core` exited with 1.

2.具体操作方法,在命令行里执行:

cd "$(brew --repo)/Library/Taps/"
rm -rf homebrew
mkdir homebrew
cd homebrew
git clone git://mirrors.ustc.edu.cn/homebrew-core.git
git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-core.git

执行命令后,完美解决,安装完毕!!!

posted @ 2022-05-29 21:48  学富五车  阅读(4842)  评论(0编辑  收藏  举报