2016-03-15 156 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

就是这样......