Error fetching https://gems.ruby-china.org/: bad response Not Found 404
输入换源命令:gem sources --remove https://rubygems.org/
gem sources -a http://gems.ruby-china.org/
出现的问题:
在ruby换源过程中遇到的错误:Error fetching https://gems.ruby-china.org/:bad response Not Found 404,是因为后缀 .org的域名已经更改,所以出现404找不到源。
解决方法:将域名后缀 .org 改为 com 即可
gem sources -a https://gems.ruby-china.com/
成功的效果图如下: