0

我正在尝试安装 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.

我什至按照建议删除了该文件,但没有更改。

4

1 回答 1

0

好的,我在谷歌后整理出来。执行以下步骤:

  • brew edit gnutls

  • 向下滚动到以下行:sha2563b1634fa348c0f0064e43f3fb673e30a5e46f2b51cd6cd0d4a0cbf326e71c90e

    • 替换为 sha25634480b13120e2167060795060b6738c26622c341498cf6303b17b143642b14cd

    • 再次运行。

于 2019-08-27T10:31:05.400 回答