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
相關文章
- homebrew update 出現Failure while executing: git pull --quiet origin refs/heads/master:refs/remotes/origin/master解決方案AIWhileGitUIASTREM
- Git branching: master vs. origin/master vs. remotes/origin/masterGitASTREM
- 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 - git push origin master 報錯GitAST
- git關於origin和masterGitAST
- Git 的origin和master分析GitAST
- 在Git中,origin / master與origin master之間有什麼區別?GitAST
- git學習:關於origin和masterGitAST
- 對 Git 分支 master 和 origin/master 的一些認識GitAST
- git push origin master 時出現報錯 error: src refspec master does not match any error: failed to push someGitASTErrorAI
- git 上傳專案 報錯 git pull --rebase origin masterGitAST
- 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
- rake deploy ! [rejected] master -> master (non-fast-forward) error: failed to push some refs to解決方法ASTForwardErrorAI
- Git 拉取 origin 分支Git
- git rebase masterGitAST
- origin安裝進度條不動怎麼辦 origin安裝速度慢怎麼解決
- git push --set-upstream originGit
- No known master node問題AST
- git push 失敗 failed to push some refs to gitGitAI
- react-解決 fetch 跨域問題:Access to fetch at XXX from origin YYY has been blocked by CORS policyReact跨域BloCCORS
- Jenkins : 安裝 master 和 slaveJenkinsAST
- MySQL Master/Slave Master/MasterMySqlAST
- centos5安裝salt-masterCentOSAST
- Failed to start Master instance in admin modeAIAST
- git 從master建立新的分支GitAST
- 解決 Jenkins 上 git 出現的 “ERROR: Error fetching remote repo 'origin'” 問題JenkinsGitErrorREM
- git remotesGitREM
- 跨域問題(CORS / Access-Control-Allow-Origin)跨域CORS
- Gitea CORS Access-Control-Allow-Origin 的問題GitCORS
- Spark Standalone模式 Master程式掛掉問題Spark模式AST
- git使用報錯fatal: remote origin already exists.GitREM
- git push報錯error: failed to push some refs to 'git@github.com:ErrorAIGithub
- 【SaltStack】通過Master給Minion安裝MySQLASTMySql