Updating Homebrew…Homebrewを更新できません


Updating Homebrew...引っかかりました
  • は前の
  • に書いてあります
  • 解決方法
  • 一、自動検査禁止更新
  • 二、置換ミラーソース
  • リセットする場合は、


  • 前に書く
    今日homebrewでパッケージをインストールするときは、まず更新をチェックし、新しい更新があるときは、先に更新します.そしてずっと止まって
    Updating Homebrew...
    

    解決策
    一、自動検査更新禁止
    todolist
    二、ミラーソースの置換
    brew.gitの置換
    cd "$(brew --repo)"
    git remote set-url origin https://mirrors.ustc.edu.cn/brew.git
    

    置換homebrew-core.git{{ちかん:homebrew-core.git}}
    cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
    git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-core.git
    

    代替homebrew-cask.git
    cd "$(brew --repo)/Library/Taps/homebrew/homebrew-cask"
    git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-cask.git
    

    ps:上は中科大源ですが、清華源に変えたい場合は:
    https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git
    https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git
    https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-cask.git
    

    アリソースに変更:
    https://mirrors.aliyun.com/homebrew/brew.git
    https://mirrors.aliyun.com/homebrew/homebrew-core.git
    https://mirrors.aliyun.com/homebrew/homebrew-cask.git
    

    リセットする場合は、次のようになります.
    brew.gitのリセット
    cd "$(brew --repo)"
    git remote set-url origin https://github.com/Homebrew/brew.git
    

    homebrew-core.gitをリセット
    cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
    git remote set-url origin https://github.com/Homebrew/homebrew-core.git
    

    homebrew-cask.gitをリセット
    cd "$(brew --repo)/Library/Taps/homebrew/homebrew-cask"
    git remote set-url origin https://github.com/Homebrew/homebrew-cask.git