今天在安装cocoapods的时候,在网上看的教程,把rubygems的地址替换成了 https://gems.ruby-china.org/ ,但在执行sudo gem update --system更新Ruby的时候发现报错"While executing gem ... (Gem::RemoteFetcher::FetchError)
bad response Not Found 404 (https://gems.ruby-china.org/quick/Marshal.4.8/cocoapods-0.0.1.gemspec.rz)"后来搜了一下rubygems的镜像,发现最新的已由 https://gems.ruby-china.org/ 替换成https://gems.ruby-china.com了,然后在终端执行"gem sources --add https://gems.ruby-china.com --remove https://gems.ruby-china.org/"替换了镜像,再执行"sudo gem update --system"就成功了.
插上rubygems域名更换的公告