brewhome安装websocketd 报错(brew install websocketd)
错误内容如下:

1
2
3
4
5
6
==> Downloading https://github.com/golang/go/commit/1a92cdbfc10e0c66f2e015264a39159c055a5c15.patch?full_index=1
Error: SHA256 mismatch
Expected: 9b879e3e759d56093ca7660305c3e4f8aee8acdd87126dc10985360395704139
Actual: 78548296476b0281fe1cea95a85f8055aa0ecae138b8a1fb3b466eed02c10cb8
Archive: /Users/xx/Library/Caches/Homebrew/go--patch-9b879e3e759d56093ca7660305c3e4f8aee8acdd87126dc10985360395704139.patch
To retry an incomplete download, remove the file above.

可以看到是在安装go补丁时候报的SHA256错误,这个错误可以理解成拉取时候验签错误,错误信息中给出了预期值(Expected)与实际值(Actual)并给出了解决办法

燃鹅这个retry并不好用,在网上搜了下类似错误,给出的处理办法是用实际值替换预期值即可

1
2
3
4
# 搜索出来的解决办法
使用brew edit caskformula/caskformula/inkscape

替换1f037cc29cee8e0c60ab4753d4151741c8170e4849129bac68fdc60925eb971d 为 7ce4f70f1cb03cd0bab7dc94821a89bf71600bd59c763ae0d78c48f33db3d9ac

解决方法

  1. brew edit go
  2. 替换9b879e3e759d56093ca7660305c3e4f8aee8acdd87126dc109853603957041399b879e3e759d56093ca7660305c3e4f8aee8acdd87126dc10985360395704139
  3. 重新brew install websocketd

搞定~