首页 > 编程语言 >Error: Failed to upgrade Homebrew Portable Ruby! 问题解决

Error: Failed to upgrade Homebrew Portable Ruby! 问题解决

时间:2022-12-30 13:12:23浏览次数:61  
标签:upgrade Portable gz Failed https Homebrew ruby 2.6 portable

brew config
==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/bottles/bottles-portable-ruby/portable-ruby-2.6.8_1.el_capitan.bottle.tar.gz
curl: (22) The requested URL returned error: 404

==> Downloading https://ghcr.io/v2/homebrew/portable-ruby/portable-ruby/blobs/sha256:1f50bf80583bd436c9542d4fa5ad47df0ef0f0bea22ae710c4f04c42d7560bca
curl: (35) error:02FFF036:system library:func(4095):Connection reset by peer

==> Downloading https://github.com/Homebrew/homebrew-portable-ruby/releases/download/2.6.8_1/portable-ruby-2.6.8_1.el_capitan.bottle.tar.gz
https://github.com/Homebrew/homebrew-portable-ruby/releases/download/2.6.8_1/portable-ruby-2.6.8_1.el_capitan.bottle.tar.gz##O#-                                curl: (35) LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443

Error: Failed to download ruby from the following locations:
  - https://mirrors.ustc.edu.cn/homebrew-bottles/bottles/bottles-portable-ruby/portable-ruby-2.6.8_1.el_capitan.bottle.tar.gz
  - https://ghcr.io/v2/homebrew/portable-ruby/portable-ruby/blobs/sha256:1f50bf80583bd436c9542d4fa5ad47df0ef0f0bea22ae710c4f04c42d7560bca
  - https://github.com/Homebrew/homebrew-portable-ruby/releases/download/2.6.8_1/portable-ruby-2.6.8_1.el_capitan.bottle.tar.gz

Do not file an issue on GitHub about this; you will need to figure out for
yourself what issue with your internet connection restricts your access to
GitHub (used for Homebrew updates and binary packages).
Error: Failed to upgrade Homebrew Portable Ruby!

1、在GitHub下载,该文件,解压portable-ruby-2.6.8_1.el_capitan.bottle.tar.gz,得到 portable-ruby 文件夹,进入
https://github.com/Homebrew/homebrew-portable-ruby/releases/download/2.6.8_1/portable-ruby-2.6.8_1.el_capitan.bottle.tar.gz

2、解压portable-ruby-2.6.8_1.el_capitan.bottle.tar.gz,得到 portable-ruby 文件夹,进入portable-ruby,拷贝里面的 2.6.8_1 文件夹到 "/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby"

3、制作一个current的快捷方式指向“2.6.8_1”文件夹。(command + option 拖动文件夹可以制作框架方式)

参考:
https://blog.csdn.net/u013670453/article/details/113915555

标签:upgrade,Portable,gz,Failed,https,Homebrew,ruby,2.6,portable
From: https://www.cnblogs.com/lucaswangdev/p/17014662.html

相关文章