I was using Linuxbrew(which is a linux equivalent of homebrew) to install "ruby-build"
command used:- brew install ruby-build
and here is the error that i got,
Error: SHA1 mismatch
Expected: 2599afa039d2070bae9df6ce43da288b3a4adf97
Actual: 6d840506239fc0b47ad5c1b14bd5e3e0edbeaa60
Archive: /home/User1/.cache/Homebrew/makedepend-1.0.5.tar.bz2
To retry an incomplete download, remove the file above.
Later I tried deleting the makedepend-1.0.5.tar.bz2 file and run the above command again, still the error persists.
Related
I have installed Autodesk Fusion 360 using homebrew on mac OS 12.5.1. I would now like to uninstall the cask, and am using the following command:
brew uninstall autodesk-fusion360
However the following error is returned:
Error: Failure while executing; /opt/homebrew/Caskroom/autodesk-fusion360/latest/Install\ Autodesk\ Fusion\ 360.app/Contents/MacOS/streamer --process uninstall --appid 73e72ada57b7480280f7a6f4a289729f --stream production --quiet exited with 1.
What can I do to fix the error, and uninstall the cask?
~ % brew install curl
==> Downloading https://ghcr.io/v2/homebrew/core/brotli/manifests/1.0.9
Already downloaded: /Users/currentuser/Library/Caches/Homebrew/downloads/922ce7b351cec833f9bd2641f27d8ac011005f8b1f7e1119b8271cfb4c0d3cd7--brotli-1.0.9.bottle_manifest.json
Error: curl: Failed to download resource "brotli_bottle_manifest"
The downloaded GitHub Packages manifest was corrupted or modified (it is not valid JSON):
/Users/currentuser/Library/Caches/Homebrew/downloads/922ce7b351cec833f9bd2641f27d8ac011005f8b1f7e1119b8271cfb4c0d3cd7--brotli-1.0.9.bottle_manifest.json
My Homebrew is broken and is unable to install anything. A typical output is above
The problem was resolved after delete /Users/currentuser/Library/Caches/Homebrew/downloads/922ce7b351cec833f9bd2641f27d8ac011005f8b1f7e1119b8271cfb4c0d3cd7--brotli-1.0.9.bottle_manifest.json
and run brew install curl again
It might be using the installed curl instead of system curl.
From man brew
set HOMEBREW_FORCE_BREWED_CURL
I have also this problem with brew install php
the problem persists even after deleting all the files from
/Users/currentuser/Library/Caches/Homebrew/downloads/
and
brew install php again
i have also tried
HOMEBREW_FORCE_BREWED_CURL=1 brew install openssl
This command fixed the issue for me:
brew cleanup
I'm trying to install Dart 2.7.2.
Initially I tried to install via:
brew install https://raw.githubusercontent.com/dart-lang/homebrew-dart/fed6de080aef54c4f1c1df732424df37cd3e5a3e/dart.rb
Which gives an error:
Calling Installation of dart from a GitHub commit URL is disabled! Use 'brew extract dart' to stable tap on GitHub instead.
Next approach, I downloaded the file at:
https://raw.githubusercontent.com/dart-lang/homebrew-dart/fed6de080aef54c4f1c1df732424df37cd3e5a3e/dart.rb
And then updated DEVEL block to HEAD block, then ran:
brew install --build-from-source ./dart.rb
And now I'm getting this error:
Error: invalid attribute for formula 'dart': version ("")
And I've no idea what to do now...or how to go from here. Any tips?
I can't install ImageMagick on my Mac:
brew install ImageMagick
==> Downloading http://www.imagemagick.org/download/releases/ImageMagick-6.9.2-4.tar.xz
curl: (22) The requested URL returned error: 404 Not Found
Trying a mirror...
==> Downloading http://ftp.nluug.nl/ImageMagick/ImageMagick-6.9.2-4.tar.xz
curl: (22) The requested URL returned error: 404 Not Found
Error: Failed to download resource "imagemagick"
Download failed: http://ftp.nluug.nl/ImageMagick/ImageMagick-6.9.2-4.tar.xz
After uninstalling brew and installing brew again this work fine thanks.
here is the command to install brew:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
You have an outdated Homebrew. Run brew update then try again; ImageMagick is known for changing their URLs very frequently and break the old ones; so if you haven’t updated brew for a long time you might get build failures.
Running
$ brew doctor
gives me:
Unexpected dylibs:
/usr/local/lib/libusb-1.0.0.dylib
According to this Linking libusb in Mac OS X I should run brew upgrade libusb however when doing so I get:
$ brew upgrade libusb
Error: No such file or directory - /usr/local/Cellar/libusb
Any suggestions how I upgrade? Or, simpler, to uninstall if it's not necessary. What's it used for?