the old url will cause the `rvm install ruby-xxx` command error. please update the code. echo "ruby_url=https://cache.ruby-china.org/pub/ruby" > ~/.rvm/user/db to echo "ruby_url=https://cache.ruby-china.com/pub/ruby" > ~/.rvm/user/db