homebrew安裝問題(Failed during: git fetch origin master:refs/remotes/origin/master --tags --force)
error: RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
Failed during: git fetch origin master:refs/remotes/origin/master --tags --force
可能是國內網路問題
參考 https://blog.csdn.net/qq_35624642/article/details/79682979
1、將brew的install檔案下載本地
終端輸入 cd
終端輸入 curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install >> brew_install
2、修改install檔案的映象源
終端輸入 vim brew_install
將下面兩行進行修改
#BREW_REPO = “https://github.com/Homebrew/brew”.freeze
#CORE_TAP_REPO = “https://github.com/Homebrew/homebrew-core”.freeze
替換成下面兩句
BREW_REPO = “https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git”.freeze
CORE_TAP_REPO = “https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git”.freeze
#就是“BREW_REPO”和“CORE_TAP_REPO”這兩項,將其修改為清華的映象
3、安裝
ruby ~/brew_install
相關文章
- git merge origin master git merge origin/master區別GitAST
- brew 報錯 error: Not a valid ref: refs/remotes/origin/master 的解決方法ErrorREMAST
- (轉載)git pull origin master與git pull --rebase origin master的區別GitAST
- git關於origin和masterGitAST
- git - git push origin master 報錯GitAST
- 在Git中,origin / master與origin master之間有什麼區別?GitAST
- git學習:關於origin和masterGitAST
- git push origin master 時出現報錯 error: src refspec master does not match any error: failed to push someGitASTErrorAI
- git中出現”the requested upstream branch ‘origin/master‘ does not exist“問題的解決GitAST
- 初次git提交程式碼報錯:Push to origin/master was rejectedGitAST
- ! [rejected] master -> master (fetch first)AST
- git pull如果提示merge衝突,先進行git reset --hard origin/master 後再git pullGitAST
- Git 拉取 origin 分支Git
- git rebase masterGitAST
- react-解決 fetch 跨域問題:Access to fetch at XXX from origin YYY has been blocked by CORS policyReact跨域BloCCORS
- git push --set-upstream originGit
- origin安裝進度條不動怎麼辦 origin安裝速度慢怎麼解決
- 解決 Jenkins 上 git 出現的 “ERROR: Error fetching remote repo 'origin'” 問題JenkinsGitErrorREM
- 跨域問題(CORS / Access-Control-Allow-Origin)跨域CORS
- Gitea CORS Access-Control-Allow-Origin 的問題GitCORS
- Kubernetes安裝之八:配置master之schedulerAST
- git 從master建立新的分支GitAST
- git使用報錯fatal: remote origin already exists.GitREM
- Git使用gh-pages分支切換到master分支錯誤pathspec master did not match any files known to gitGitAST
- Kubernetes安裝之六:配置master之api-serverASTAPIServer
- Kubernetes安裝之七:配置master之controller-managerASTController
- CSS background-originCSS
- URL origin 屬性
- CSS transform-originCSSORM
- git 強制拉取master分支程式碼GitAST
- git push報錯error: failed to push some refs to 'git@github.com:ErrorAIGithub
- NodeJS+Express解決跨域問題:Access-Control-Allow-OriginNodeJSExpress跨域
- Apache解決Access-Control-Allow-Origin多域名跨域問題Apache跨域
- No 'Access-Control-Allow-Origin' header: 跨域問題踩坑記錄Header跨域
- Git 問題,一個 master,多個新功能分支,怎樣有序地合併和提交GitAST
- GIT使用過程出現(master|REBASE 1/10)GitAST
- git rebase master 分支出現一堆 ^MGitAST
- Mac OSX系統homebrew update Fetching failed問題解決方案MacAI