homebrew 安裝踩坑解決過程

一、坑一:mac 安裝brew報錯 Failed to connect to raw.githubusercontent.com port 443: Connection refused解決辦法git

安裝brew執行:github

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

報錯以下:curl

Failed to connect to raw.githubusercontent.com port 443: Connection refusedide

主要仍是牆的問題,解決方案:
在hosts中加入代理hostsurl

200.199.232.28.133 raw.githubusercontent.com代理

二、坑二
安裝中繼續報錯code

fatal: early EOF
fatal: index-pack failed
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.
Error: Failure while executing; /usr/local/bin/brew tap homebrew/core exited with 1.
Failed during: /usr/local/bin/brew update --forcehomebrew

這個時候咱們換個源,執行:get

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

沒有裝載的部分會安裝好

相關文章
相關標籤/搜索