Error: SHA256 mismatch

(Jhoughtonsg) #1


Tried to install the szip package recently, ran into the following error:

Already downloaded: /Users/james/Library/Caches/Homebrew/szip-2.1.1.tar.gz
Error: SHA256 mismatch
Expected: 897dda94e1d4bf88c91adeaad88c07b468b18eaf2d6125c47acac57e540904a9
Actual: 21ee958b4f2d4be2c9cabfa5e1a94877043609ce86fde5f286f105f7ff84d412
Archive: /Users/james/Library/Caches/Homebrew/szip-2.1.1.tar.gz
To retry an incomplete download, remove the file above.

Removing the file does not help, already tried that.

Additionally, this didn’t help:

brew cleanup && brew update

Not sure how to proceed from here. Any help appreciated.

(Jacob Ledbetter) #2

The person who created the szip copied the SHA256 incorrectly. You could fix it if you want to.