簡體   English   中英

在Ubuntu 14.04上安裝Ruby時出錯

[英]Error installing Ruby on Ubuntu 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.

您的來源有問題

這是一個解決方案,打開終端輸入

sudo apt-get update

記下引起404錯誤,錯誤等的名稱。

然后打開您的軟件中心並選擇來源 在此處輸入圖片說明

在那里選擇“其他軟件”(第二個標簽) 在此處輸入圖片說明

擴展該窗口並開始禁用可能導致麻煩的存儲庫 在此處輸入圖片說明

取消選中任何存儲庫時,請重試

sudo apt-get update

直到看不到任何錯誤 在此處輸入圖片說明

確保您沒有看到任何錯誤或找不到源

之后輸入

source ~/.rvm/scripts/rvm 

rvm requirements

在此處輸入圖片說明

就是這樣...

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM