【问题标题】:How to update ruby from 2.0.0 to 2.2.2 in ubuntu 16.04?如何在 ubuntu 16.04 中将 ruby​​ 从 2.0.0 更新到 2.2.2?
【发布时间】:2017-07-09 18:14:46
【问题描述】:

我正在使用 ubuntu 16.04、ruby 2.0.0、rails 4.0.13 和 mongoDB 3.4.2。 我想将 ruby​​ 更新到 2.2.2,但出现错误:

Error running 'requirements_debian_update_system ruby-2.2.6',
showing last 15 lines of /home/lakhvir/.rvm/log/1487593522_ruby-2.2.6/update_system.log
++ 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.

【问题讨论】:

标签: ruby-on-rails ruby mongodb ubuntu


【解决方案1】:

首先,您应该立即升级您的 Rails 版本: Ruby on Rails 4.0 End of Life was in January 2015.

至于其他错误,apt-get update 似乎以某种方式窒息。在通过 rvm 之前,我会先尝试修复它。

apt-get update

apt-get dist-upgrade

(确保在运行它们之前了解它们的作用)。如果您在那里遇到错误,请确保您的

/etc/apt/sources.list
/etc/apt/sources.list.d/*.list

文件都正确。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2018-08-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-10-18
    • 1970-01-01
    • 1970-01-01
    • 2017-05-02
    相关资源
    最近更新 更多