Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Failed to install Homebrew Portable Ruby (and your system version is too old)

Tags:

homebrew

ruby

I'm trying to install Homebrew on macOS. Once the installation finished, when I typed help I got:

Already downloaded: /.../Library/Caches/Homebrew/portable-ruby-2.6.3.mavericks.bottle.tar.gz
Error: Checksum mismatch.
Expected: ab81211a2052ccaa6d050741c433b728d0641523d8742eef23a5b450811e5104
  Actual: f80fd4cc877a64b0ac1c105fdc212ca6be08bb034118900f2c2f58edcfe0dafd
 Archive: /.../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 Homebrew Portable Ruby (and your system version is too old)!
like image 635
Erna Piantari Avatar asked May 28 '20 09:05

Erna Piantari


4 Answers

I had the same question, and the solution is simple: remove the portable-ruby-2.6.3.mavericks.bottle.tar.gz you downloaded before.

rm /.../Library/Caches/Homebrew/portable-ruby-2.6.3.mavericks.bottle.tar.gz
like image 156
Onns Avatar answered Oct 05 '22 04:10

Onns


Try running brew update-reset in your terminal and then run brew upgrade in the same terminal.

like image 22
Usman Avatar answered Oct 05 '22 04:10

Usman


"Homebrew install fails with Error: Failed to install Homebrew Portable Ruby" helped me tremendously.

It would fail to install, because our company firewall was blocking certain downloads, like bottle, during the Homebrew update/install, but it was difficult to determine this because I would get the error above.

After removing the file, try

brew upgrade
brew update

on your personal Wifi or your phone's hotspot.

like image 29
Travis M. Avatar answered Oct 01 '22 04:10

Travis M.


I fixed it.

First, I deleted the brew file that stores in the Library folder when using macOS.

The failure before was due to the connection. When I make sure the connection worked, it worked.

like image 21
Erna Piantari Avatar answered Oct 05 '22 04:10

Erna Piantari