【问题标题】:Error when install ruby-2.3.0 with rvm使用 rvm 安装 ruby​​-2.3.0 时出错
【发布时间】:2016-07-29 05:50:20
【问题描述】:

我正在尝试使用 rvm 安装 ruby-2.3.0,但它有错误

Searching for binary rubies, this might take some time.
No binary rubies available for: ubuntu/12.10/x86_64/ruby-2.3.0.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for ubuntu.
Installing requirements for ubuntu.
Updating system........................................
Error running 'requirements_debian_update_system ruby-2.3.0',
showing last 15 lines of /home/local/.rvm/log/1460088710_ruby-2.3.0/update_system.log
++ 1460088815.260685491 /scripts/functions/logging : rvm_pretty_print()  78 > case "${TERM:-dumb}" in
++ 1460088815.263259956 /scripts/functions/logging : rvm_pretty_print()  81 > case "$1" in
++ 1460088815.266028504 /scripts/functions/logging : rvm_pretty_print()  11 > [[ -t 2 ]]
++ 1460088815.270746572 /scripts/functions/logging : rvm_pretty_print()  83 > return 1
++ 1460088815.274824254 /scripts/functions/logging : rvm_error()  117 > 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

++ 1460088815.278415072 /scripts/functions/requirements/ubuntu : requirements_debian_update_system(return 100
Requirements installation failed with status: 100.

我该如何解决? 谢谢!

【问题讨论】:

标签: ruby rvm


【解决方案1】:

你是否使用下面的评论来安装,如果没有尝试它

# Installing rvm
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3

curl -sSL https://get.rvm.io | bash -s stable

# Installing ruby
source /usr/local/rvm/scripts/rvm

rvm install ree-2.3.0

rvm use ree-1.8.7-2012.02

【讨论】:

  • 是的,我已经通过这种方式安装了rvm。顺便说一句,我已经解决了这个错误。
【解决方案2】:

因为 Quantal 不再支持 ubuntu 12.10。所以我将/etc/apt/sources.list 中对quantal 的引用更改为precise 并在/etc/apt/sources.list.d/* 中评论一些quantal 并运行apt-get update 我和我一起修好了。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2013-09-27
    • 2012-07-23
    • 2015-03-31
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多