Since I updated to the latest version of macOS 10.15.4 Catalina, when I do brew update
I'm getting this error:
fatal: unable to access 'https://github.com/Homebrew/homebrew-cask/': LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54
I used to be fine before the update (already had Catalina). Not sure what changed.
I did search around and found several topics (also older ones) regarding this problem, both here and on github. Unfortunately none of the suggestions worked for me:
- Disable ipv6
- Disable proxy (am not using one)
- Disable kaspersky or other antivirus (am not running one)
- Rebooting
export HOMEBREW_FORCE_BREWED_CURL=1
and thenbrew update
echo '--no-alpn' > ~/.curlrc
;export HOMEBREW_CURLRC=1
;brew update
All to no avail, the error keeps coming up.
It doesn't mention anything curl related however from other topics on this problem I understand it's most likely related to curl. I haven't changed anything curl related myself (although maybe the latest Catalina patch did, not sure). It did work fine until a few days ago.
I also found some other suggestions that looked rather unlikely, and moreover they seemed to change some basic OS installations which I would really prefer to avoid (afraid it will lead to other incompatibilities).
Is there an easy, safe way to fix this?
FYI I'm using Homebrew 2.2.15.