(7)raw.githubusercontent.comポート443への接続に失敗しました:操作Macが自作のエラーカールをインストール

自作のインストールは、一般的に直接ターミナルでコマンドを直接入力する場合:

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


しかし、そのようなこのエラーのタイトルとして、ネットワークの問題が報告され、この方法は。
この時間は、ルビーbrew_install.rbを実行するために、コンソールコマンドで、ファイルを直接ダウンロードしbrew_install.rb。このファイルをダウンロードします。
リンクします。https://pan.baidu.com/s/1rVh8bY73NLc77cQYN_2HoQパスワード:n3si

 

ここに画像を挿入説明----------------

自作変更ソース

  1. 1. 替换brew.git:

  2. $ cd "$(brew --repo)"

  3. 中科大:

  4. $ git remote set-url origin https://mirrors.ustc.edu.cn/brew.git

  5. 清华:

  6. $ git remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git

  7. 2. 替换homebrew-core.git:

  8. $ cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"

  9. 中科大:

  10. $ git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-core.git

  11. 清华:

  12. $ git remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git

  13. 3. 替换homebrew-bottles:

  14. 中科大:

  15. $ echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles' >> ~/.bash_profile

  16. $ source ~/.bash_profile

  17. 清华:

  18. $ echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles' >> ~/.bash_profile

  19. $ source ~/.bash_profile

  20. 4. 应用:

  21. $ brew update

公開された172元の記事 ウォン称賛45 ビュー40000 +

おすすめ

転載: blog.csdn.net/fish_study_csdn/article/details/104179105