无法从 https://rubygems.org/ 获取规格

无法从 https://rubygems.org/ 获取规格

我有 gentoo linux,我在上面运行 gitlab 实例。我无法升级到dev-vcs/gitlab-gitaly-1.7.1当安装执行命令时

bundle install --deployment

输出为:

Fetching source index from https://rubygems.org/

Retrying fetcher due to error (2/4): Bundler::HTTPError Could not fetch specs from https://rubygems.org/
Retrying fetcher due to error (3/4): Bundler::HTTPError Could not fetch specs from https://rubygems.org/
Retrying fetcher due to error (4/4): Bundler::HTTPError Could not fetch specs from https://rubygems.org/
Could not fetch specs from https://rubygems.org/
make[1]: *** [Makefile:32: ../.ruby-bundle] Error 17
make[1]: Leaving directory '/var/tmp/portage/dev-vcs/gitlab-gitaly-1.7.1/work/gitlab-gitaly-1.7.1/_build'
make: *** [Makefile:24: build] Error 2
 * ERROR: dev-vcs/gitlab-gitaly-1.7.1::gitlab failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=dev-vcs/gitlab-gitaly-1.7.1::gitlab'`,
 * the complete build log and the output of `emerge -pqv '=dev-vcs/gitlab-gitaly-1.7.1::gitlab'`.
 * The complete build log is located at '/var/tmp/portage/dev-vcs/gitlab-gitaly-1.7.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-vcs/gitlab-gitaly-1.7.1/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-vcs/gitlab-gitaly-1.7.1/work/gitlab-gitaly-1.7.1'
 * S: '/var/tmp/portage/dev-vcs/gitlab-gitaly-1.7.1/work/gitlab-gitaly-1.7.1'

我尝试重新安装 bundler、升级 ruby​​、禁用 ipv6 路由,但都无济于事。我已验证我能够访问https://rubygems.org/使用 wget 后,我​​可以 ping ruby​​gems.org。我猜想 openssl 可能存在问题。我有 dev-libs/openssl-1.0.2r 和 dev-lang/ruby-2.4.6 以及 dev-lang/ruby-2.5.5,但使用其中任何一个都不起作用。有人遇到并解决了这个问题吗?

相关内容