brew cask install无法安装软件的问题

以安装telenet工具nally为例:

$ brew cask install nally
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 2 taps (phinze/cask, homebrew/cask).

==> Satisfying dependencies
==> Downloading https://yllan.github.com/nally/download/Nally-1.4.9.app.zip
######################################################################## 100.0%
curl: (56) Recv failure: Connection reset by peer
Error: Download failed on Cask 'nally' with message: Download failed: https://yllan.github.com/nally/download/Nally-1.4.9.app.zip

如果有ssr代理,则可以通过输入:

$ export ALL_PROXY=socks5://127.0.0.1:1080

并查看是代理否设置成功:

$ curl ip.gs

然后就可以愉快地看到:

Updating Homebrew...
==> Satisfying dependencies
==> Downloading https://yllan.github.com/nally/download/Nally-1.4.9.app.zip
######################################################################## 100.0%
==> Verifying checksum for Cask nally
==> Installing Cask nally
==> Moving App 'Nally.app' to '/Applications/Nally.app'.
🍺  nally was successfully installed!

参考方法:
让终端走代理的几种方法

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

友情链接更多精彩内容