ruby Gem::RemoteFetcher::FetchError with gems.github.com

2j4z5cfb  于 2023-10-18  发布在  Ruby
关注(0)|答案(2)|浏览(111)

我得到了一个错误:

ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-linux]

当我试图安装安装程序时:

gem install bundler

错误:

ERROR:  While executing gem ... (Gem::RemoteFetcher::FetchError)
    bad response Forbidden 403 (http://gems.github.com/quick/Marshal.4.8/bundler-0.3.0.gemspec.rz)

我暂时用这个命令解决了这个问题:

gem sources --remove "http://gems.github.com"

403 Forbidden问题来源:Getting a While executing gem ... (Gem::RemoteFetcher::FetchError) 503 error when attempting to install rails
任何想法如何解决或为什么会出现这个错误。

e0uiprwp

e0uiprwp1#

更改您的gem源代码并重试:

gem sources --remove http://gems.github.com/
gem sources -a https://rubygems.org/
kq4fsx7k

kq4fsx7k2#

当rubygems页面被主服务器阻止时,特别是https连接。在Gemfile中更改为https或要求他们解除阻止ruby.org和api.ruby.org页面。

相关问题