【发布时间】:2023-12-25 12:20:01
【问题描述】:
我在使用 brew 在 Mac OS X Yosemite 上安装 libpng 时遇到问题。
输出如下:
brew install libpng
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/libpng-1.6.16.yosemite.bottle.tar.gz
######################################################################## 100,0%
Error: SHA1 mismatch
Expected: f7b47fcf9d4111075745b04b6fbdb63062982bca
Actual: a2fd3379ea944f6b2f97fb0f79b7b85cb3e14d0b
Archive: /Library/Caches/Homebrew/libpng-1.6.16.yosemite.bottle.tar.gz
To retry an incomplete download, remove the file above.
Warning: Bottle installation failed: building from source.
==> Downloading https://downloads.sf.net/project/libpng/libpng16/1.6.16/libpng-1.6.16.tar.xz
######################################################################## 100,0%
Error: SHA1 mismatch
Expected: 31855a8438ae795d249574b0da15b34eb0922e13
Actual: a2fd3379ea944f6b2f97fb0f79b7b85cb3e14d0b
Archive: /Library/Caches/Homebrew/libpng-1.6.16.tar.xz
To retry an incomplete download, remove the file above.
我认为这个输出很奇怪,因为 SHA1 Hash 对于两个不同的文件是相同的。 我该如何解决这个问题?
【问题讨论】:
-
我也有同样的问题。我认为这个版本出了点问题。
-
得到了同样的结果,认为downloads.sf.net有问题