我正在尝试安装OpenCV,其中一个依赖项未能安装,并出现以下错误。
==> Downloading https://gitlab.com/gnutls/gnutls/commit/ef80617d1e17e0878a909baad62a75ba265c0e00.patch
######################################################################## 100.0%
Error: An exception occurred within a child process:
ChecksumMismatchError: SHA256 mismatch
Expected: 3b1634fa348c0f0064e43f3fb673e30a5e46f2b51cd6cd0d4a0cbf326e71c90e
Actual: 34480b13120e2167060795060b6738c26622c341498cf6303b17b143642b14cd
Archive: /Users/AX/Library/Caches/Homebrew/downloads/0c113ab0098bc4c3f2e8f410741b6104f2928fe63eb38cf98f8dcc3362f02ac4--ef80617d1e17e0878a909baad62a75ba265c0e00.patch
To retry an incomplete download, remove the file above.
我什至按照建议删除了文件,但没有更改。
答案 0 :(得分:0)
好吧,我在Google之后对其进行了整理。执行以下步骤:
brew edit gnutls
向下滚动到以下行:
sha256 3b1634fa348c0f0064e43f3fb673e30a5e46f2b51cd6cd0d4a0cbf326e71c90e
替换为sha256 34480b13120e2167060795060b6738c26622c341498cf6303b17b143642b14cd
再次运行。