Homebrew install fails with SHA256 mismatch error

I am currently facing an SHA256 mismatch error when trying to upgrade mongodb-community to the latest version on Macos 14.6.1
Here is my terminal output:

brew upgrade
==> Upgrading 1 outdated package:
mongodb/brew/mongodb-community 7.0.12 -> 7.0.14
==> Fetching mongodb/brew/mongodb-community
==> Downloading https://fastdl.mongodb.org/osx/mongodb-macos-arm64-7.0.14.tgz
Already downloaded: /Users/keshav/Library/Caches/Homebrew/downloads/9d619530e717388268b96b352b44b5a51257c9874d2f8a4efe26666631660321--mongodb-macos-arm64-7.0.14.tgz
Error: SHA256 mismatch
Expected: 8805f8b33801cd07b90118c25e507b0de21c6ad426b375fbe49e896ffc575d0e
  Actual: bf0e5deab684278a2014af55e38abad8a119ea1ef45d79d762e0c1795efe53b7
    File: /Users/keshav/Library/Caches/Homebrew/downloads/9d619530e717388268b96b352b44b5a51257c9874d2f8a4efe26666631660321--mongodb-macos-arm64-7.0.14.tgz
To retry an incomplete download, remove the file above.

This error repeats on deleting the downloaded file and trying again.

1 Like

Hi @Keshav_Chakravarty, thanks for the report! This issue should be fixed if you are able to run brew update and try again. You can read our update here for more information.

1 Like

I noticed. Thanks for the quick fix