当前位置:   article > 正文

fatal: unable to access 'https://github.com/Homebrew/homebrew-core/': LibreSSL SSL_read - Homebrew_fatal: unable to access '/homebrew-ethereum/': fa

fatal: unable to access '/homebrew-ethereum/': fa

安装 Homebrew 执行完安装语句

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

抛出如下异常

  1. fatal: unable to access 'https://github.com/Homebrew/homebrew-core/': LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54
  2. Error: Failure while executing; `git clone https://github.com/Homebrew/homebrew-core /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core --depth=1` exited with 128.
  3. Error: Failure while executing; `/usr/local/bin/brew tap homebrew/core` exited with 1.
  4. Failed during: /usr/local/bin/brew update --force

解决办法

  1. survivors@sdeMacBook-Pro ~ % git clone git://mirrors.ustc.edu.cn/homebrew-core.git/ /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core --depth=1
  2. Cloning into '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core'...
  3. remote: Counting objects: 5105, done.
  4. remote: Compressing objects: 100% (4904/4904), done.
  5. remote: Total 5105 (delta 44), reused 886 (delta 5)
  6. Receiving objects: 100% (5105/5105), 4.14 MiB | 1.17 MiB/s, done.
  7. Resolving deltas: 100% (44/44), done.
  8. survivors@sdeMacBook-Pro ~ % cd "$(brew --repo)"
  9. survivors@sdeMacBook-Pro Homebrew % git remote set-url origin https://mirrors.ustc.edu.cn/brew.git
  10. survivors@sdeMacBook-Pro Homebrew % cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
  11. survivors@sdeMacBook-Pro homebrew-core % git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-core.git
  12. survivors@sdeMacBook-Pro homebrew-core % brew update
  13. Already up-to-date.

如上终端中 code 所示,执行如下语句


首先,更换有效的镜像地址;

git clone git://mirrors.ustc.edu.cn/homebrew-core.git/ /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core --depth=1

其次,前往至 homebrew-core 将其当前的镜像地址也更为有效的地址;

  1. cd "$(brew --repo)"
  2. git remote set-url origin https://mirrors.ustc.edu.cn/brew.git
  3. cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
  4. git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-core.git

再其次,将如上配置文件内容更替后,重新执行更新;

brew update

最后,执行完如上操作后,终端显示如下字样内容即可。

Already up-to-date.

异常全过程处理


以上便是此次分享的全部内容,希望能对大家有所帮助!

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/weixin_40725706/article/detail/497803
推荐阅读
相关标签
  

闽ICP备14008679号