【问题标题】:Error installing Ruby on Ubuntu 14.04在 Ubuntu 14.04 上安装 Ruby 时出错
【发布时间】:2016-03-15 17:00:31
【问题描述】:

以下安装命令:

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


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

返回此错误:

 Installing requirements for ubuntu.
 Updating system................
 Error running 'requirements_debian_update_system ruby-2.2.1',
showing last 15 lines of /home/gav/.rvm/log/1458060663_ruby-                                      2.2.1/update_system.log     ++ /scripts/functions/logging : rvm_pretty_print()  78 > case  "${TERM:-   dumb}" in   ++ /scripts/functions/logging : rvm_pretty_print()  81 > case "$1" in
++ /scripts/functions/logging : rvm_pretty_print()  83 > [[ -t 2 ]]
++ /scripts/functions/logging : rvm_pretty_print()  83 > return 1
++ /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

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

【问题讨论】:

  • 欢迎来到 SO。请检查您的问题,尤其是其格式。格式化问题非常重要,这样那些试图帮助您的人可以快速轻松地阅读它。不这样做会被解释为缺乏努力,并且不想得到足够的帮助来帮助我们。 "How to Ask"
  • 该错误似乎是网络或托管问题。由于 404 错误,RVM 无法更新您的 apt-get。这不是 Ruby 或 Rails 问题。
  • 我该如何解决这个问题。我没有网络问题,它提到检查您在以下位置配置的来源:/etc/apt/sources.list /etc/apt/sources.list.d/*.list

标签: ruby-on-rails ruby linux ubuntu


【解决方案1】:

你的资源有问题

这里有一个解决方案,在

中打开一个终端类型
sudo apt-get update

记下导致 404、错误等的名称。

然后打开您的软件中心并选择来源

选择“其他软件”(第二个选项卡)

展开该窗口并开始禁用给您带来麻烦的存储库

取消选中任何存储库后,再试一次

sudo apt-get update

直到你看不到任何错误

确保您没有看到任何错误或未找到来源

然后输入

source ~/.rvm/scripts/rvm 

rvm requirements

就是这样……

【讨论】:

    猜你喜欢
    • 2015-07-07
    • 2019-10-11
    • 2016-09-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-03-11
    • 2015-02-25
    相关资源
    最近更新 更多