Ubuntu 14.04 LTS 下用RVM 安装ruby时出错,提示:For 404 check your sources configured in...

来源:互联网 时间:1970-01-01


ubuntu 系统下配置ROR编程环境,可以使用Rbenv和RVM安装但是一些rubyer在使用RVM安装到ruby时会出现下面的错误提示:

++ case "${TERM:-dumb}" in++ case "$1" in++ [[ -t 2 ]]++ return 1++ printf %b 'There has been error while updating '/''apt-get'/'', please give it some time and try again later.404 errors should be fixed for rvm to proceed. Check your sources configured in: /etc/apt/sources.list /etc/apt/sources.list.d/*.list/n'There has been error while updating 'apt-get', please give it some time and try again later.404 errors should be fixed for rvm to proceed. Check your sources configured in: /etc/apt/sources.list /etc/apt/sources.list.d/*.list++ return 100Requirements installation failed with status: 100..

解决方法:

在运行 $ rvm install 2.1.4(或者其他版本)之前,先运行下面的代码:

 $ rvm autolibs disable


然后再运行安装ruby 2.1.4(或其他版本)

 $ rvm install 2.1.4




相关阅读:
Top