One - One Code All

Blog Content

brew update更新的时候报错,LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54

Linux-Mac   2021-03-21 16:42:03

brew update更新的时候报错,LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54


fatal: 无法访问 'https://github.com/Homebrew/homebrew-cask/':LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54


git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask fetch --unshallow

fatal: 无法访问 'https://github.com/Homebrew/homebrew-cask/':Failed to connect to github.com port 443: Operation timed out

// 执行下面这句命令,更换为中科院的镜像:
git clone git://mirrors.ustc.edu.cn/homebrew-cask.git/ /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask --depth=1

// 把homebrew-core的镜像地址也设为中科院的国内镜像

cd "$(brew --repo)" 

git remote set-url origin https://mirrors.ustc.edu.cn/brew.git

cd "$(brew --repo)/Library/Taps/homebrew/homebrew-cask" 

git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-cask.git

// 更新
brew update

// 使用
brew install node



上一篇:Mac 最近GitHub无法访问
下一篇:RHSA-2020:5350: net-snmp 安全更新

The minute you think of giving up, think of the reason why you held on so long.