Error: SHA1 mismatch
Expected: 85f620a26aabf6a934c44ca40a9799af0952f863
Actual: db0e50d3ba8957eeb7879b1eaa03b0f004e121a7
Archive: /Library/Caches/Homebrew/cloog-0.18.0.tar.gz
(To retry an incomplete download, remove the file above.)
I couldn't find the file so how do I fix this?
Have you tried updating homebrew. Update to the latest and then try your command again, its the first thing to try before looking further
brew update
Related
I am trying to create a dart CLI program (I frequently create flutter apps without issue).
I'm following this tutorial and the first step (after installing dart) is
dart create -t console-full cli
however when I do that I get the following error
Error: Error when reading 'create': No such file or directory
I've tried reinstalling dart and that worked just fine, but didn't fix the issue.
I've also tried doing just
dart create example
And I get the exact same error (Error: Error when reading 'create': No such file or directory)
Has anyone else gotten this?
What is the fix for it?
Thanks to comments from #jamesdlin for this answer.
This happens with an older version of dart.
Update to the latest dart to fix it.
brew upgrade dart
For my project, I need to install a specific version of the icu4c package. I used to follow the instructions written in this answer and it was working. However, recently, when I needed to do the same, it failed with the following error
Error: icu4c: undefined method `cellar' for #<BottleSpecification:0x00007fa0d75096a8>
After some investigations, I concluded that brew has new style of .rb files and old versions may not be compatible. To fix it, I run brew style --fix icu4c.rb which seemed to fix the style issues. However, now, I got the following error:
Error: Failed to load cask: ./icu4c.rb
Cask 'icu4c' is unreadable: wrong constant name #<Class:0x00007fa68d2d9278>
Warning: Treating ./icu4c.rb as a formula.
==> Downloading https://ghcr.io/v2/homebrew/core/icu4c/manifests/67.1
#=#=#
curl: (22) The requested URL returned error: 404
Error: Failed to download resource "icu4c_bottle_manifest"
Download failed: https://ghcr.io/v2/homebrew/core/icu4c/manifests/67.1
I saw a number of places that this might be due to curl or xcode command line tools. I updated both of them but could not proceed further. Any help would be greatly appreciated.
I'm new to using phraseApp and fastlane. I was trying to pull the latest changes in Phraseapp using fastlane. After calling "phraseapp_all" I get an error message Exit status of command 'cd ../Project/Resources && phraseapp pull' was 127 instead of 0. sh: phraseapp: command not found.
I tried reinstalling phrase but no luck. Any idea on how to fix this?
Use brew install phraseApp instead of phrase only.
I thought that phraseApp was just renamed to phrase. They were somewhat different.
This worked for me.
brew tap phrase/brewed
Install phraseapp client:
brew install phrase/brewed/phraseapp
I'm trying to install OpenNI2 with Homebrew, but midway I ran into this common issue "Error: SHA1 mismatch"
I tried the solution from another question that resembled this like
SHA1 error when using brew installs's brew update ; however it's already updated
I also did try to remove, as it instructed, the listed archive but I ran into the same problem.
running brew doctor didn't seem to give a good hint on a resolution.
Preq.
$ brew tap homebrew/science
$ brew tap totakke/openni2
Action
$ brew install openni2
Output
==> Downloading https://github.com/occipital/OpenNI2/archive/2.2-beta2.tar.gz
######################################################################## 100.0%
==> Downloading https://github.com/occipital/OpenNI2/pull/18.patch
######################################################################## 100.0%
Error: SHA1 mismatch
Expected: e0be30b6b9296939306155580df1ac7912d3f949
Actual: 4beb04a31a64677618801f0e95141807592442ef
Archive: /Library/Caches/Homebrew/openni2--patch-e0be30b6b9296939306155580df1ac7912d3f949.patch
To retry an incomplete download, remove the file above.
reference
The cause is hash mismatch of the patch file.
OpenNI2 formula is currently hosted by homebrew-science.
It's a homebrew-science problem.
Alternative solution is editting the formula by yourself.
$ brew edit openni2
- sha1 "e0be30b6b9296939306155580df1ac7912d3f949"
+ sha1 "4beb04a31a64677618801f0e95141807592442ef"
Thanks Takeuchi!
This means that the patch has changed since the formula was written. You should make sure that the patch has not been changed maliciously. If you trust the patch, you can run brew edit openni2 to edit the formula, remove the sha1 line corresponding to the patch, save the formula, and try again.
More specifically, I was using homebrew to install MySQL, and I got this error:
Error: SHA1 mismatch
Expected: f218ed64ce6e7a5d3670acdd6a18e5ed95421d1f
Got: 3a57f6f44186e0dba34ef8b8fb4a9047e9e5d8a3
Archive: /Users/rdp/Library/Caches/Homebrew/cmake-2.8.7.bottle.tar.gz
(To retry an incomplete download, remove the file above.)
Everything worked after I ran brew update.
Incase the brew update fails, try the following
cd `brew --prefix`
git remote add origin https://github.com/Homebrew/homebrew
git fetch origin
git reset --hard origin/master
I was having the same problem as Steve S regarding epstool dependency on Octave and found this link:
https://github.com/Homebrew/homebrew-science/issues/1110
Check out iml's post about 10 down from the top (his second post). As he explained, I downloaded it from the fedoraproject.org site and then moved it into the /Library/Caches/Homebrew/ directory.
Cheers,
-Maashu
In my case the file downloaded from https://downloads.sourceforge.net/ctags/ctags-5.8.tar.gz is actually a html file. I downloaded the real file and place it at /Library/Caches/Homebrew/ctags-5.8.tar.gz. Then I run brew install ctags, everything works.