2016-03-15 166 views
0

以下安裝命令:錯誤在Ubuntu上安裝Ruby 14.04

gpg --keyserver hkp://keys.gnupg.net --recv-keys   409B6B1796C275462A1703113804BB82D39DC0E3 


\curl -sSL https://get.rvm.io | bash -s stable --rails 

返回此錯誤:

Installing requirements for ubuntu. 
Updating system................ 
Error running 'requirements_debian_update_system ruby-2.2.1', 
showing last 15 lines of /home/gav/.rvm/log/1458060663_ruby-          2.2.1/update_system.log  ++ /scripts/functions/logging : rvm_pretty_print() 78 > case "${TERM:- dumb}" in ++ /scripts/functions/logging : rvm_pretty_print() 81 > case "$1" in 
++ /scripts/functions/logging : rvm_pretty_print() 83 > [[ -t 2 ]] 
++ /scripts/functions/logging : rvm_pretty_print() 83 > return 1 
++ /scripts/functions/logging : rvm_error() 117 > 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 

++ /scripts/functions/requirements/ubuntu : requirements_debian_update_system() 53 > return 100 
Requirements installation failed with status: 100. 
+0

歡迎來到SO。請檢查您的問題,尤其是格式。格式化問題非常重要,以便那些試圖幫助您的人可以快速輕鬆地閱讀它。不這樣做會被解釋爲缺乏努力,也不希望有足夠的幫助來幫助我們。 「[問]」 –

+2

該錯誤似乎是網絡或託管問題。由於404錯誤,RVM無法更新您的apt-get。這不是Ruby或Rails問題。 –

+0

我該如何解決這個問題。我沒有網絡問題,它提到檢查您的源配置在: /etc/apt/sources.list /etc/apt/sources.list.d/*.list – GAV

回答

1

你必須與你的來源問題

繼承人一個解決方案,打開一個終端類型在

sudo apt-get update 

注意一下名字所造成404,錯誤等

然後打開你的軟件中心,並選擇源 enter image description here

有選擇「其它軟件」(第二個選項卡) enter image description here

展開窗口,並開始停止導致你麻煩庫 enter image description here

你取消任何資料庫,再試一次

sudo apt-get update 

,直到你看到沒有錯誤 enter image description here

確保你沒有看到任何錯誤或沒有找到來源

之後鍵入

source ~/.rvm/scripts/rvm 

rvm requirements 

enter image description here

就是這樣......