当前位置:   article > 正文

关于下载homebrew的一波三折_to retry an incomplete download, remove the file a

to retry an incomplete download, remove the file above.

关于下载homebrew的一波三折

首先终端输入ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)”
之后便开始了慢慢报错之路~

第一个问题

Archive: /Users/apple/Library/Caches/Homebrew/portable-ruby-2.3.3.leopard_64.bottle.1.tar.gz To retry an incomplete download, remove the file above.

解决:把文件目录下的portable-ruby-2.3.3.leopard_64.bottle.1.tar.gz删除就好了
sudo rm -r -f

第二个问题

Failed to connect to raw.githubusercontent.com port 443: Connection refused error: Error: 7
解决办法:通过修改hosts解决此问题。

查询真实IP

在https://www.ipaddress.com/查询raw.githubusercontent.com的真实IP

修改hosts

sudo vim /etc/hosts

添加如下内容:

199.232.28.133 raw.githubusercontent.com

第三个问题

(35) LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to raw.githubusercontent.com:443

解决办法:使用国内源

/bin/zsh -c “$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)”

最后brew -v查看版本

本文内容由网友自发贡献,转载请注明出处:https://www.wpsshop.cn/w/菜鸟追梦旅行/article/detail/475367
推荐阅读
相关标签
  

闽ICP备14008679号