今天安装ffmpeg的时候,遇到一个错误
==> Downloading https://download.qt.io/official_releases/qtcreator/5.0/5.0.3/qt-
Already downloaded: /Users/liumei/Library/Caches/Homebrew/downloads/f91ffce120ac0d375ef28528683503350a47cc136dc0a93e87bfc3d43d64ebd3--qt-creator-opensource-mac-x86_64-5.0.3.dmg
Error: SHA256 mismatch
Expected: ff3a341500f7de7d5e4129651db64c2b8464a56aac91f43db3ed375f6ea8f371
Actual: a190acb769220900c97a06b11a69900252aabe477284dfa163ed68e6311fffcd
File: /Users/liumei/Library/Caches/Homebrew/downloads/f91ffce120ac0d375ef28528683503350a47cc136dc0a93e87bfc3d43d64ebd3--qt-creator-opensource-mac-x86_64-5.0.3.dmg
To retry an incomplete download, remove the file above.
解决方法:网络问题!
网上找了一大堆方案没有解决,打算改一下SHA256的值。于是👇
brew edit /Users/liumei/Library/Caches/Homebrew/downloads/f91ffce120ac0d375ef28528683503350a47cc136dc0a93e87bfc3d43d64ebd3--qt-creator-opensource-mac-x86_64-5.0.3.dmg
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type"content="text/html; charset=utf-8"/><title>错误-访问被禁止</title><style type="text/css">.em{font-style:normal;color:#163463;font-size:18px;font-weight:700}</style></head><body><table align="center"border="0"width="70%"><tbody><tr><td class="k"bgcolor="#F7FAFD"><table align="center"border="0"width="90%"><tbody><tr><td height="30"></td></tr><tr><td class="i"><span class="em">错误,访问被禁止</span></td></tr><tr><td height="20"></td></tr><tr><td bgcolor="#A7BAC9"height="1"></td></tr><tr><td height="30"></td></tr><tr><td class="i"><span class="da">对不起,您访问的内容违反了相关的访问限制,已经被禁止访问,如果有疑问,请与网络管理员联系。</span></td></tr><tr><td height="40"></td></tr></tbody></table></td></tr></tbody></table></body></html>
~
发现这个文件,居然是个html,提示了网络问题。。。
大概因为,qt那种服务器做了防护吧。保利广场的公用Wi-Fi直接被ban。
删除文件,更换Wi-Fi,用的手机热点。重新install。一次成功~
rm /Users/liumei/Library/Caches/Homebrew/downloads/f91ffce120ac0d375ef28528683503350a47cc136dc0a93e87bfc3d43d64ebd3--qt-creator-opensource-mac-x86_64-5.0.3.dmg
brew install --cask qt-creator
🍺🍺🍺
Enjoy~
网友评论