1

我正在尝试安装 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
4

2 回答 2

6

将 RVM Autolibs 切换到read-fail

rvm autolibs read-fail

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

rvm autolibs read-only

它会告诉 RVM 不安装/更新任何东西,只使用已经安装的东西,不会发生故障,只会显示一个警告,提示缺少某些东西。

于 2013-07-03T21:56:32.783 回答
-1

您是否尝试过使用此命令安装它?

sudo apt-get install ruby​​1.9.3

于 2013-07-03T19:07:12.757 回答