ruby - 使用 rvm 在 Ubuntu 10.10 上安装 Ruby 1.9.3 时出错

标签 ruby rvm ubuntu-10.10

我正在尝试安装 Ruby 1.9.3 以便能够安装 Rails 4.0。 我的 RVM 版本是最新的稳定版。我也尝试过 apt-get -y update

rvm list known 在列表中显示 [ruby-]1.9.3[-p448]

请指教:)

rvm install 1.9.3-p448

Searching for binary rubies, this might take some time.
No binary rubies available for: ubuntu/10.10/i386/ruby-1.9.3-p448.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Installing requirements for ubuntu, might require sudo password.

Hit http://ppa.launchpad.net maverick Release.gpg
Ign http://ppa.launchpad.net/txwikinger/php5.2/ubuntu/ maverick/main Translation-en
Ign http://ppa.launchpad.net/txwikinger/php5.2/ubuntu/ maverick/main Translation-en_US
Ign http://extras.ubuntu.com maverick Release.gpg
Ign http://extras.ubuntu.com/ubuntu/ maverick/main Translation-en
Hit http://ppa.launchpad.net maverick Release
Ign http://extras.ubuntu.com/ubuntu/ maverick/main Translation-en_US
Ign http://extras.ubuntu.com maverick Release
Ign http://us.archive.ubuntu.com maverick Release.gpg
Ign http://us.archive.ubuntu.com/ubuntu/ maverick/main Translation-en
Ign http://us.archive.ubuntu.com/ubuntu/ maverick/main Translation-en_US
Ign http://us.archive.ubuntu.com/ubuntu/ maverick/multiverse Translation-en
Ign http://us.archive.ubuntu.com/ubuntu/ maverick/multiverse Translation-en_US
Ign http://us.archive.ubuntu.com/ubuntu/ maverick/restricted Translation-en
Ign http://us.archive.ubuntu.com/ubuntu/ maverick/restricted Translation-en_US
Ign http://us.archive.ubuntu.com/ubuntu/ maverick/universe Translation-en
Ign http://us.archive.ubuntu.com/ubuntu/ maverick/universe Translation-en_US
Ign http://extras.ubuntu.com maverick/main Sources/DiffIndex
Ign http://extras.ubuntu.com maverick/main i386 Packages/DiffIndex
Hit http://ppa.launchpad.net maverick/main Sources
Ign http://us.archive.ubuntu.com maverick Release
Ign http://extras.ubuntu.com maverick/main Sources
Hit http://ppa.launchpad.net maverick/main i386 Packages
Ign http://extras.ubuntu.com maverick/main i386 Packages
Ign http://extras.ubuntu.com maverick/main Sources
Ign http://us.archive.ubuntu.com maverick/main Sources/DiffIndex
Ign http://extras.ubuntu.com maverick/main i386 Packages
Err http://extras.ubuntu.com maverick/main Sources
  404  Not Found
Ign http://us.archive.ubuntu.com maverick/restricted Sources/DiffIndex
Ign http://us.archive.ubuntu.com maverick/universe Sources/DiffIndex
Ign http://us.archive.ubuntu.com maverick/multiverse Sources/DiffIndex
Ign http://us.archive.ubuntu.com maverick/main i386 Packages/DiffIndex
Ign http://us.archive.ubuntu.com maverick/restricted i386 Packages/DiffIndex
Ign http://us.archive.ubuntu.com maverick/universe i386 Packages/DiffIndex
Ign http://us.archive.ubuntu.com maverick/multiverse i386 Packages/DiffIndex
Err http://extras.ubuntu.com maverick/main i386 Packages
  404  Not Found
Ign http://us.archive.ubuntu.com maverick/main Sources
Ign http://us.archive.ubuntu.com maverick/restricted Sources
Hit http://toolbelt.heroku.com ./ Release.gpg
Ign http://us.archive.ubuntu.com maverick/universe Sources
Ign http://us.archive.ubuntu.com maverick/multiverse Sources
Ign http://us.archive.ubuntu.com maverick/main i386 Packages
Ign http://us.archive.ubuntu.com maverick/restricted i386 Packages
Ign http://us.archive.ubuntu.com maverick/universe i386 Packages
Ign http://toolbelt.heroku.com/ubuntu/ ./ Translation-en
Ign http://us.archive.ubuntu.com maverick/multiverse i386 Packages
Ign http://us.archive.ubuntu.com maverick/main Sources
Ign http://toolbelt.heroku.com/ubuntu/ ./ Translation-en_US
Ign http://us.archive.ubuntu.com maverick/restricted Sources
Ign http://us.archive.ubuntu.com maverick/universe Sources
Ign http://us.archive.ubuntu.com maverick/multiverse Sources
Ign http://us.archive.ubuntu.com maverick/main i386 Packages
Ign http://us.archive.ubuntu.com maverick/restricted i386 Packages
Ign http://us.archive.ubuntu.com maverick/universe i386 Packages
Ign http://us.archive.ubuntu.com maverick/multiverse i386 Packages
Err http://us.archive.ubuntu.com maverick/main Sources
  404  Not Found [IP: 91.189.91.13 80]
Err http://us.archive.ubuntu.com maverick/restricted Sources
  404  Not Found [IP: 91.189.91.13 80]
Err http://us.archive.ubuntu.com maverick/universe Sources
  404  Not Found [IP: 91.189.91.13 80]
Err http://us.archive.ubuntu.com maverick/multiverse Sources
  404  Not Found [IP: 91.189.91.13 80]
Err http://us.archive.ubuntu.com maverick/main i386 Packages
  404  Not Found [IP: 91.189.91.13 80]
Err http://us.archive.ubuntu.com maverick/restricted i386 Packages
  404  Not Found [IP: 91.189.91.13 80]
Err http://us.archive.ubuntu.com maverick/universe i386 Packages
  404  Not Found [IP: 91.189.91.13 80]
Err http://us.archive.ubuntu.com maverick/multiverse i386 Packages
  404  Not Found [IP: 91.189.91.13 80]
Hit http://toolbelt.heroku.com ./ Release
Ign http://toolbelt.heroku.com ./ Packages
Ign http://toolbelt.heroku.com ./ Packages
Hit http://toolbelt.heroku.com ./ Packages
W: Failed to fetch http://extras.ubuntu.com/ubuntu/dists/maverick/main/source/Sources.gz  404  Not Found

W: Failed to fetch http://extras.ubuntu.com/ubuntu/dists/maverick/main/binary-i386/Packages.gz  404  Not Found

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/maverick/main/source/Sources.gz  404  Not Found [IP: 91.189.91.13 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/maverick/restricted/source/Sources.gz  404  Not Found [IP: 91.189.91.13 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/maverick/universe/source/Sources.gz  404  Not Found [IP: 91.189.91.13 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/maverick/multiverse/source/Sources.gz  404  Not Found [IP: 91.189.91.13 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/maverick/main/binary-i386/Packages.gz  404  Not Found [IP: 91.189.91.13 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/maverick/restricted/binary-i386/Packages.gz  404  Not Found [IP: 91.189.91.13 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/maverick/universe/binary-i386/Packages.gz  404  Not Found [IP: 91.189.91.13 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/maverick/multiverse/binary-i386/Packages.gz  404  Not Found [IP: 91.189.91.13 80]

E: Some index files failed to download, they have been ignored, or old ones used instead.
There has been error while updating 'apt-get', please give it some time and try again later.
For 404 errors check your sources configured in:
    /etc/apt/sources.list
    /etc/apt/sources.list.d/*.list

最佳答案

将 RVM Autolibs 切换到 read-fail:

rvm autolibs read-fail

它会告诉 RVM 不要安装/更新任何东西,只会告诉你缺少什么,从这里开始,你可以选择是安装缺少的依赖项(很可能你这样做),还是忽略依赖项让 RVM 知道你不想知道缺少的东西:

rvm autolibs read-only

它会告诉 RVM 不要安装/更新任何东西,只使用已经安装的东西,不会发生失败,只会显示一条警告,指出缺少某些东西。

关于ruby - 使用 rvm 在 Ubuntu 10.10 上安装 Ruby 1.9.3 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17455857/

相关文章:

ruby-on-rails - 如何制作可在 Rails 应用程序中的任何位置使用的自定义方法

mysql - 在 Ruby on Rails 中在运行时构建表

ruby - 将 'gem list' 用于带有 RVM 的 git gems 时, 'bundle install' 未找到 gems

ruby-on-rails - RVM稳定版本的安装错误

java - 添加 Java 类

ruby-on-rails - 在 ubuntu 上安装 ruby​​mine

linux - Ubuntu 上 Eclipse CDT 的 32/64 位问题

ruby - 使用 Ruby C Extension 进行垃圾收集

ruby - 用 `Array.new(n, Array.new)` 创建矩阵

ruby-on-rails - 在安装 PostgreSQL 后发现 ruby​​、rails、git 时出现问题