Homebrew-core: SHA256 mismatch in bitcoin

Created on 15 Dec 2017  ·  11Comments  ·  Source: Homebrew/homebrew-core

  • [x] Confirmed this is a problem with brew installing one, specific Homebrew/homebrew-core formula (not cask or tap) and not every time you run brew? If it's a general brew problem please file this issue at https://github.com/Homebrew/brew/issues/new. If it's a brew cask problem please file this issue at https://github.com/caskroom/homebrew-cask/issues/new. If it's a tap (e.g. Homebrew/homebrew-php) problem please file this issue at the tap.
  • [x] Ran brew update and retried your prior step?
  • [x] Ran brew doctor, fixed all issues and retried your prior step?
  • [x] Ran brew gist-logs <formula> (where <formula> is the name of the formula that failed) and included the output link? No logs.
  • [x] If brew gist-logs didn't work: ran brew config and brew doctor and included their output with your issue?

Tried on multiple Homebrew installations across multiple Macs on multiple network connections.

$ brew config
HOMEBREW_VERSION: 1.4.0-27-g67c4402
ORIGIN: https://github.com/Homebrew/brew
HEAD: 67c4402634e24400accdb59fa81cde9020dd0386
Last commit: 7 hours ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 841256fddd1f137bc43769ac0506165d1f2fd8dd
Core tap last commit: 2 hours ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_BINTRAY_USER: alyssais
HOMEBREW_BUILD_FROM_SOURCE: 1
HOMEBREW_DEVELOPER: 1
HOMEBREW_VERBOSE: 1
HOMEBREW_VISUAL: kak
CPU: quad-core 64-bit kabylake
Homebrew Ruby: 2.3.3 => /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.3/bin/ruby
Clang: 9.0 build 900
Git: 2.14.3 => /Applications/Xcode.app/Contents/Developer/usr/bin/git
Curl: 7.54.0 => /usr/bin/curl
Perl: /usr/bin/perl
Python: /usr/local/opt/python/libexec/bin/python => /usr/local/Cellar/python/2.7.14/Frameworks/Python.framework/Versions/2.7/bin/python2.7
Ruby: /Users/qyliss/.rubies/ruby-2.4.2/bin/ruby
Java: N/A
macOS: 10.12.6-x86_64
Xcode: 9.2
CLT: 9.1.0.0.1.1508540944
X11: N/A
$ brew doctor
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!

Warning: You have HOMEBREW_BUILD_FROM_SOURCE set. This environment variable is
intended for use by Homebrew developers. If you are encountering errors,
please try unsetting this. Please do not file issues if you encounter
errors when using this environment variable.

Warning: A newer Command Line Tools release is available.
Update them from Software Update in the App Store.
$ brew install -vs bitcoin
/usr/bin/sandbox-exec -f /tmp/homebrew20171215-766-94yau6.sb nice /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.3/bin/ruby -W0 -I /usr/local/Homebrew/Library/Homebrew -- /usr/local/Homebrew/Library/Homebrew/build.rb /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/bitcoin.rb --verbose
==> Downloading https://github.com/bitcoin/bitcoin/archive/v0.15.1.tar.gz
==> Downloading from https://codeload.github.com/bitcoin/bitcoin/tar.gz/v0.15.1
/usr/bin/curl --show-error --user-agent Homebrew/1.4.0-27-g67c4402 (Macintosh; Intel Mac OS X 10.12.6) curl/7.54.0 --fail --location --remote-time --continue-at - --output /Users/qyliss/Library/Caches/Homebrew/bitcoin-0.15.1.tar.gz.incomplete https://codeload.github.com/bitcoin/bitcoin/tar.gz/v0.15.1
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 7370k  100 7370k    0     0  1137k      0  0:00:06  0:00:06 --:--:-- 1381k
==> Verifying bitcoin-0.15.1.tar.gz checksum
Error: SHA256 mismatch
Expected: e429d4f257f2b5b6d0caaf36ed1a5f5203e5918c57837efac00b0c322a1fef79
Actual: 98b3a98a67054123bef6714e4035e18f9250a1b6d63829258ad057906e75d8b1
Archive: /Users/qyliss/Library/Caches/Homebrew/bitcoin-0.15.1.tar.gz
To retry an incomplete download, remove the file above.
checksum mismatch

Most helpful comment

No. It's a git misfeature:

ewwwwww

All 11 comments

This looks like it could be related to https://github.com/Homebrew/homebrew-core/issues/18044 but would be weird if so because it wasn't picked up at the time.

iMac-TMP:~ joe$ brew fetch -s bitcoin
==> Downloading https://github.com/bitcoin/bitcoin/archive/v0.15.1.tar.gz
==> Downloading from https://codeload.github.com/bitcoin/bitcoin/tar.gz/v0.15.1
######################################################################## 100.0%
Downloaded to: /Users/joe/Library/Caches/Homebrew/bitcoin-0.15.1.tar.gz
SHA256: e429d4f257f2b5b6d0caaf36ed1a5f5203e5918c57837efac00b0c322a1fef79
iMac-TMP:~ joe$ 
❯❯❯ brew fetch -s bitcoin
==> Downloading https://github.com/bitcoin/bitcoin/archive/v0.15.1.tar.gz
==> Downloading from https://codeload.github.com/bitcoin/bitcoin/tar.gz/v0.15.1
######################################################################## 100.0%
Downloaded to: /Users/sjackman/Library/Caches/Homebrew/bitcoin-0.15.1.tar.gz
SHA256: 98b3a98a67054123bef6714e4035e18f9250a1b6d63829258ad057906e75d8b1
Warning: Formula reports different SHA256: e429d4f257f2b5b6d0caaf36ed1a5f5203e5918c57837efac00b0c322a1fef79

can someone upload the "bad" tarball

iMac-TMP:bitcoin joe$ diff A/bitcoin-0.15.1/src/clientversion.cpp B/bitcoin-0.15.1/src/clientversion.cpp
48c48
< #define GIT_COMMIT_ID "7b57bc998f3"
---
> #define GIT_COMMIT_ID "7b57bc998f33"
iMac-TMP:bitcoin joe$

So their repo grew.

And they overwrote the release?

No. It's a git misfeature:

ewwwwww

Thanks @ilovezfs!

Was this page helpful?
0 / 5 - 0 ratings