Homebrew / homebrew-core

🍻 Default formulae for the missing package manager for macOS (or Linux)
https://brew.sh
BSD 2-Clause "Simplified" License
13.78k stars 12.45k forks source link

Flac sha256 mismatch #9529

Closed kirkegaard closed 7 years ago

kirkegaard commented 7 years ago

Hi, im getting an error when installing flac. Actually i was installing mopidy which has a dependency on flac..

==> Installing mopidy/mopidy/mopidy-spotify dependency: flac
==> Using the sandbox
==> Downloading http://downloads.xiph.org/releases/flac/flac-1.3.2.tar.xz
######################################################################## 100.0%
Error: SHA256 mismatch
Expected: 91cfc3ed61dc40f47f050a109b08610667d73477af6ef36dcad31c31a4a8d53f
Actual: 5687c4e8bc7a42779ee32ece266e06344fdff18c04e89e91b01c6c49ab0a146d

Im not sure how to submit a pull request on these formulars but this is the one that needs to be updated: https://github.com/Homebrew/homebrew-core/blob/master/Formula/flac.rb

MikeMcQuaid commented 7 years ago

I can't reproduce this. rm /Users/mike/Library/Caches/Homebrew/flac-1.3.2.tar.xz and try again.

kirkegaard commented 7 years ago

I tried that already. If I compile flac with --head flag it'll work though. Im actually having the same issue with libogg

==> Downloading http://downloads.xiph.org/releases/ogg/libogg-1.3.2.tar.gz
Error: SHA256 mismatch
Expected: e19ee34711d7af328cb26287f4137e70630e7261b17cbe3cd41011d73a654692
Actual: 7c4e6a8ee6f71af4de79d547e1a149f84d52e36041c33147dcf8e7f74eb23a86
kirkegaard commented 7 years ago
christian at d2d-christian in ~
$ brew install mopidy
==> Installing mopidy from mopidy/mopidy
==> Installing dependencies for mopidy/mopidy/mopidy: flac, speex, libshout, taglib, gst-plugins-good, libmms, gst-plugins-bad, two-lame, gst-plugins-ugly, py2cairo, pygobject3, gst-python, mopidy/mopidy/python-pykka, mopidy/mopidy/python-backports-abc, mopidy/mopidy/python-backports-ssl-match-hostname, mopidy/mopidy/python-certifi, mopidy/mopidy/python-six, mopidy/mopidy/python-singledispatch, mopidy/mopidy/python-tornado, mopidy/mopidy/python-requests
==> Installing mopidy/mopidy/mopidy dependency: flac
==> Using the sandbox
==> Downloading http://downloads.xiph.org/releases/flac/flac-1.3.2.tar.xz
######################################################################## 100.0%
Error: SHA256 mismatch
Expected: 91cfc3ed61dc40f47f050a109b08610667d73477af6ef36dcad31c31a4a8d53f
Actual: 5687c4e8bc7a42779ee32ece266e06344fdff18c04e89e91b01c6c49ab0a146d
Archive: /Users/christian/Library/Caches/Homebrew/flac-1.3.2.tar.xz
To retry an incomplete download, remove the file above.

christian at d2d-christian in ~
$ brew list |grep flac
flac

christian at d2d-christian in ~
$ brew install flac
Warning: flac-1.3.2 already installed

Im not sure why this is happening. Even though i already have flac installed it'll give me that error? Is this maybe mopidys problem?

Oh by the way, Im on El Capitan

MikeMcQuaid commented 7 years ago

It may be worth running cat /Users/christian/Library/Caches/Homebrew/flac-1.3.2.tar.xz and seeing the output. You may have an issue with your network.