Closed kiruthikaponnusamy0503 closed 4 years ago
google-chrome
was updated in https://github.com/Homebrew/homebrew-cask/pull/90464.
Most likely the error you are seeing is due to a brew update
failure because the issue reported in https://github.com/Homebrew/homebrew-core/issues/61772 has resurfaced.
Please try to run brew update
again before installing google-chrome
.
@miccal
Even after running brew update
successfully, I'm still getting the SHA mismatch error for brew cask install google-chrome
This has been happening ever since the google chrome's cask was updated to 86.0.4240.75
@ayush-ridecell the sha256
is definately correct:
|-> brew cask fetch google-chrome
==> Downloading external files for Cask google-chrome
==> Downloading https://dl.google.com/chrome/mac/stable/GGRO/googlechrome.dmg
######################################################################## 100.0%
==> Verifying SHA-256 checksum for Cask 'google-chrome'.
==> Success! Downloaded to -> /Users/miccal/Library/Caches/Homebrew/downloads/9830ac8a5256756d2643fbdb6a47ba0eb019c3816fc4366049f2483999b2ee4f--googlechrome.dmg
Try running brew cleanup -s
before running brew install google-chrome
.
@miccal
I tried running brew update
followed by brew cleanup -s
followed by brew cask install google-chrome
.
And I'm still getting the same SHA mismatch error.
Expected: b37980c7d92b589c062f748465a317af460ac29a0adde8e881e8ecd0b09a69a7
Actual: 3ab76266189a7b2c5b9f789fbae7f7d25404e7158ee3e841dc0692eae2718182
Try running rm -rf "$(brew --cache)"
then brew install google-chrome
. Note that you should now use brew install google-chrome
, NOT brew cask install google-chrome
.
@miccal
I ran rm -rf "$(brew --cache)"
followed by brew install google-chrome
instead of brew cask install google-chrome
but I'm still getting the SHA mismatch error.
@miccal
I ran brew cask _stanza version google-chrome
and I'm getting version 85.0.4183.121 instead of 86.0.4240.75
Running brew update
doesn't seem to fix this
That is very odd -- please run brew update-reset
and then see if brew cask _stanza version google-chrome
reports the newer version.
@miccal
I ran brew update-reset
. Got this output
==> Resetting /usr/local/Homebrew...
Switched to and reset branch 'master'
Branch 'master' set up to track remote branch 'master' from 'origin'.
Your branch is up to date with 'origin/master'.
==> Fetching /usr/local/Homebrew/Library/Taps/adoptopenjdk/homebrew-openjdk...
==> Resetting /usr/local/Homebrew/Library/Taps/adoptopenjdk/homebrew-openjdk...
Reset branch 'master'
Branch 'master' set up to track remote branch 'master' from 'origin'.
Your branch is up to date with 'origin/master'.
==> Fetching /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask...
==> Resetting /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask...
Reset branch 'master'
Branch 'master' set up to track remote branch 'master' from 'origin'.
Your branch is up to date with 'origin/master'.
==> Fetching /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core...
From https://github.com/Homebrew/homebrew-core
e3440682e3..b0ac018839 master -> origin/master
==> Resetting /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core...
Reset branch 'master'
Branch 'master' set up to track remote branch 'master' from 'origin'.
Your branch is up to date with 'origin/master'.
==> Fetching /usr/local/Homebrew/Library/Taps/thii/homebrew-xcbeautify...
==> Resetting /usr/local/Homebrew/Library/Taps/thii/homebrew-xcbeautify...
Reset branch 'master'
Branch 'master' set up to track remote branch 'master' from 'origin'.
Your branch is up to date with 'origin/master'.
==> Fetching /usr/local/Homebrew/Library/Taps/wix/homebrew-brew...
==> Resetting /usr/local/Homebrew/Library/Taps/wix/homebrew-brew...
Reset branch 'master'
Branch 'master' set up to track remote branch 'master' from 'origin'.
Your branch is up to date with 'origin/master'.
But brew cask _stanza version google-chrome
still gives me the previous google-chrome version: 85.0.4183.121
Ok, one last thing to try -- please run
brew uninstall --force google-chrome
then
rm -r "$(brew --prefix)/Caskroom/google-chrome"
then
brew install google-chrome
@miccal
I tried all the steps you've mentioned but still, the issue persists.
brew cask _stanza version google-chrome
still gives the outdated version 85.0.4183.121
Please run cd "$(brew --repository)"/Library/Taps/homebrew/homebrew-cask
then run git log
and please post the output of the first commit shown.
@miccal Ran those two and got this as the first commit: Please note that I'm running this on bitrise.
f7aacbdd4a9de9f1acc821e80a4377b69404871e
Author: Brian Morton <brianmortondesign@gmail.com>
Date: Fri Jun 15 16:51:56 2018 -0700
Update pdf-converter-master to use TLS/HTTPS (#48530)
Date: Fri Jun 15 16:51:56 2018 -0700
There is the problem -- your Cask files are very out-of-date.
What is bitrise?
Please post the output of brew config
.
@miccal We use bitrise as our CI/CD tool and in order to deploy our iOS apps we need to do some automation using google-chrome I'm checking the brew config...
@miccal brew config
output:
HOMEBREW_VERSION: 2.5.4
ORIGIN: https://github.com/Homebrew/brew
HEAD: 588f5f1713cd095bbeddef1d7919132531941474
Last commit: 6 days ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: d7a1f622adf10060812ff5ca456e59c81b139fc7
Core tap last commit: 5 days ago
Core tap branch: master
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CASK_OPTS: []
HOMEBREW_MAKE_JOBS: 2
HOMEBREW_NO_ANALYTICS: set
HOMEBREW_NO_AUTO_UPDATE: set
Homebrew Ruby: 2.6.3 => /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3_2/bin/ruby
CPU: dual-core 64-bit ivybridge
Clang: 11.0 build 1100
Git: 2.28.0 => /usr/local/bin/git
Curl: 7.54.0 => /usr/bin/curl
Java: 11.0.8, 1.8.0_222
macOS: 10.14.6-x86_64
CLT: 10.3.0.0.1.1562985497
Xcode: 11.2.1
HOMEBREW_VERSION: 2.5.4
This is also out-of-date; brew
is currently at version 2.5.6.
Since brew update
reports that you are already up-to-date and brew update-reset
did not work, I do not know what else to suggest. There is some issue with your installed Homebrew that is specific to your set-up.
@miccal
But brew cask install homebrew/cask-versions/google-chrome-beta
works and brew install google-chrome
fails because of SHA mismatch
I understand that, but there is something wrong with your Homebrew install such that your Casks are out-of-date.
This is specific to your set-up: google-chrome
is a very popular Cask and we are not seeing this issue with other users, or myself for that matter:
|-> brew cask _stanza version google-chrome
86.0.4240.80
@miccal Thank you so much for your help with this. I'll take this matter with the Bitrise team.
You are most welcome @ayush-ridecell, thank you.
Description of issue
Brew cask chrome installation fails due to checksum mismatch. Latest Version of chrome on Google - 86.0.4240.75 Version Being installed from Brew after running the command
brew cask _stanza version {{cask_name}}
- 84.0.4147.105Issue persists even after brew update command has been run.
Command that failed
Output of command with
--force --verbose --debug
Output of
brew doctor --verbose
Output of
brew tap