2013-07-03 180 views
1

我试图安装Ruby 1.9.3以安装Rails 4.0。 我的RVM版本是最新的稳定版本。我也试过apt-get -y update在Ubuntu 10.10上安装Ruby 1.9.3时出现错误,rvm

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 
+0

Ubuntu 10在牙齿上有点长。你能升级吗? –

+0

更新至12.04可能会有所帮助。 –

+0

我从来没有升级过,我觉得现在这个任务太大了,特别是把所有的应用程序都离线( – Frexuz

回答

6

开关RVM Autolibs到read-fail

rvm autolibs read-fail 

它会告诉RVM不安装/更新任何东西,不仅不能告诉你什么是对你的思念,从这里开始,如果您想要安装缺失的依赖关系(很可能是您要做的),或者忽略依赖关系,并让RVM知道您不想知道缺少某些内容:

rvm autolibs read-only 

它会告诉RVM不安装/更新任何东西,只使用已安装的东西,不会发生故障,只会显示一些警告信息,说明丢失了某些东西。

+1

您的意思是在第二个版本上的只读权限? – Frexuz

-1

你试过用这个命令安装它?

命令和apt-get安装ruby1.9.3

+0

)RVM能否拿起这个已安装的版本? – Frexuz

+2

坏主意!你不应该安装红宝石没有像rvm或rbenv这样的版本管理器 –

+0

如果您只打算使用一个版本进行开发,为什么它很重要? –