【发布时间】:2020-08-14 16:24:07
【问题描述】:
Homebrew 突然停止工作,当我运行任何 brew 命令时,我得到以下输出:
==> Downloading https://homebrew.bintray.com/bottles-portable-ruby/portable-ruby-2.6.3_2.yosemite.bottle.tar.gz
Already downloaded: /Users/<user>/Library/Caches/Homebrew/portable-ruby-2.6.3_2.yosemite.bottle.tar.gz
/usr/local/Homebrew/Library/Homebrew/cmd/vendor-install.sh: line 123: /usr/bin/cut: cannot execute binary file
Error: Checksum mismatch.
Expected: b065e5e3783954f3e65d8d3a6377ca51649bfcfa21b356b0dd70490f74c6bd86
Actual:
Archive: /Users/<user>/Library/Caches/Homebrew/portable-ruby-2.6.3_2.yosemite.bottle.tar.gz
To retry an incomplete download, remove the file above.
Error: Failed to upgrade Homebrew Portable Ruby!
我已经尝试删除文件portable-ruby-2.6.3_2.yosemite.bottle.tar.gz 但它不起作用,我在Google 上找不到任何有关此错误的有用信息。
感谢任何帮助。
【问题讨论】:
-
错误信息说文件
/usr/bin/cut不能被执行。因此,如果我的计算机告诉我无法执行某个文件,我会尝试的第一件事就是执行该文件。 -
您还可以附加您的
brew doctor和brew config输出吗?谢谢! -
任何 brew 命令都会输出上述内容,感谢您的帮助!