Brew 升級更新錯誤"Failed to install vendor Ruby."

我是你的葫蘆娃發表於2019-11-01
JK:SMail aici$ brew update 
fatal: unable to access 'https://github.com/Homebrew/homebrew-core/': LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54 
fatal: unable to access 'https://github.com/Homebrew/homebrew-cask/':LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54 
Error: Fetching/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core failed! Fetching
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask failed! ==> Downloading
https://homebrew.bintray.com/bottles-portable-ruby/portable-ruby--2.6.3.mavericks.bottle.tar.gz 
Already downloaded: /Users/aici/Library/Caches/Homebrew/portable-ruby--2.6.3.mavericks.bottle.tar.gz 
Error: Checksum mismatch. Expected: ab81211a2052ccaa6d050741c433b728d0641523d8742eef23a5b450811e5104 Actual:f6e315e67716e0bd3e1f35157bb6b362c2bed7eaf417616e8662ae3db32440bf Archive:/Users/aici/Library/Caches/Homebrew/portable-ruby--2.6.3.mavericks.bottle.tar.gz To retry an incomplete
download, remove the file above. Error: Failed to install vendor Ruby.
複製程式碼

背景

最近更新軟體庫的時候發現使用 `brew update` 命令報了上面的錯誤,具體導致原因猜測是因為牆的因素導致ruby的安裝包下載不完全然後系統沒有刪除機制所以一直卡在那兒並報錯。
複製程式碼

解決方案

刪除`Archive:`後面路徑下的檔案
rm -rf /Users/aici/Library/Caches/Homebrew/portable-ruby--2.6.3.mavericks.bottle.tar.gz
然後再重新使用 brew update 命令
如果還是不行考慮下搭一個全域性梯子複製程式碼

相關文章