Error fetching https://gems.ruby-china.org/: bad response Not Found 404 (https://gems.ruby-china.org/specs.4.8.gz) 报错解决办法

时间:2022-03-22 11:44:48

执行换源操作 gem source -a https://gems.ruby-china.org/ 时报错:

Error fetching https://gems.ruby-china.org/: bad response Not Found 404 (https://gems.ruby-china.org/specs.4.8.gz)

原因是服务域名更换了,打开报错地址:https://gems.ruby-china.org/,会有如下图提示,将org后缀改为com即可

Error fetching https://gems.ruby-china.org/: 	bad response Not Found 404 (https://gems.ruby-china.org/specs.4.8.gz) 报错解决办法

解决办法:

将后缀.org改为.com即可

Error fetching https://gems.ruby-china.org/: 	bad response Not Found 404 (https://gems.ruby-china.org/specs.4.8.gz) 报错解决办法

如果刚好解决了你的问题,表扬支持我一下!^_^