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

本文介绍了在Ubuntu系统中配置Rails编程环境时遇到的问题及解决办法。针对使用RVM安装Ruby过程中出现的错误提示,文章提供了具体的解决方案,包括运行特定命令以确保安装过程顺利进行。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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 100
Requirements installation failed with status: 100..

解决方法:

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

  $ rvm autolibs disable


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

 $ rvm install 2.1.4


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值