博客說明git
文章所涉及的資料來自互聯網整理和我的總結,意在於我的學習和經驗彙總,若有什麼地方侵權,請聯繫本人刪除,謝謝!學習
由於我以前換過源,換成了是阿里的源,而後阿里的源沒有cask,因此出錯在這裏url
換成中科大的源code
// 替換brew.git: cd "$(brew --repo)" git remote set-url origin https://mirrors.ustc.edu.cn/brew.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
更新源blog
brew update
以後再次安裝就解決了問題homebrew
感謝rem
百度百科博客
以及勤勞的本身it
關注公衆號: 歸子莫,獲取更多的資料,還有更長的學習計劃zsh