gpt4 book ai didi

ruby-on-rails - 如何在 ubuntu 16.04 中将 ruby​​ 从 2.0.0 更新到 2.2.2?

转载 作者:行者123 更新时间:2023-12-04 19:01:38 25 4
gpt4 key购买 nike

我正在使用 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.

最佳答案

首先,您应该立即升级 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

文件都是正确的。

关于ruby-on-rails - 如何在 ubuntu 16.04 中将 ruby​​ 从 2.0.0 更新到 2.2.2?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42345035/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com