2014-03-31 27 views
0

我想安裝rvm,但我得到這個錯誤。我如何刪除此錯誤?我有運行命令rvm intall並獲取錯誤

[email protected]:/# ruby -v 
The program 'ruby' can be found in the following packages: 
* ruby1.8 
* ruby1.9.1 
Try: apt-get install <selected package> 
//-------------------------------------------------------------- 


    [email protected]:/$ rvm install 2.1.0 
     Searching for binary rubies, this might take some time. 
     No binary rubies available for: ubuntu/12.10/i386/ruby-2.1.0. 
     Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies. 
     Checking requirements for ubuntu. 
     Installing requirements for ubuntu. 
     Updating system................ 
     Error running 'requirements_debian_update_system ruby-2.1.0', 
     showing last 15 lines of /home/zapbuild/.rvm/log/1396242152_ruby-2.1.0/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. 
     For 404 errors 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. 
     For 404 errors check your sources configured in: 
      /etc/apt/sources.list 
      /etc/apt/sources.list.d/*.list 

     ++ return 100 
     Requirements installation failed with status: 100. 

感謝

+0

怎麼ü安裝RVM – Bijendra

+0

Ubntu 12.04,這是爲什麼呢:= http://ryanbigg.com/2010/12/ubuntu -ruby-rvm-rails-and-you/ – Harman

+0

現在安裝rvm的步驟已經大大減少了..該博客寫於2010 – Bijendra

回答

0

要安裝RVM運行此。

$ \curl -sSL https://get.rvm.io | bash 

或者如果你只是想可用紅寶石列表更新您的RVM,使用RVM獲得穩定。現在使用rvm install ruby-2.1.0rvm install 2.1.0安裝紅寶石。這應該解決問題

0

我今天在ubuntu 14.04上遇到了同樣的問題,並且我在source.list和source.list.d/*中刪除了破壞的源代碼,它對我來說工作得很好。

這之後您可以運行

sudo apt-get update 
rvm requirements 

希望這是有幫助的。

0

從軟件設置,刪除PPA源和運行在終端以下命令:

sudo apt-get update 

sudo apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties 

sudo apt-get install libgdbm-dev libncurses5-dev automake libtool bison libffi-dev 

curl -L https://get.rvm.io | bash -s stable 

source ~/.rvm/scripts/rvm 

echo "source ~/.rvm/scripts/rvm" >> ~/.bashrc 

rvm install 2.1.3 

rvm use 2.1.3 --default 

ruby -v 

sudo add-apt-repository ppa:chris-lea/node.js 

sudo apt-get update 

sudo apt-get install nodejs 

gem install rails 

rails -v 
相關問題