ICode9

精准搜索请尝试: 精确搜索
首页 > 编程语言> 文章详细

使用RVM安装Ruby时出现需求错误

2019-11-21 11:02:24  阅读:334  来源: 互联网

标签:failed-installation rvm linuxmint linux ruby


尝试使用RVM安装Ruby 2.0.0时出现以下错误(Linux Mint 17)

先前的答案here建议我“从源列表/etc/apt/sources.list中删除损坏的或404存储库”

问题是在Linux Mint 17上,我的资源列表只有一行#deb cdrom:[Linux Mint 17 _Qiana_-版本amd64 2xxxxxxx] / trusty contrib main non-free.

因此,三个坏了的404仓库:

>未找到http://ppa.launchpad.net/w-vollprecht/ppa/ubuntu/dists/trusty/main/source/Sources 404
>未找到http://ppa.launchpad.net/w-vollprecht/ppa/ubuntu/dists/trusty/main/binary-amd64/Package 404
> http://ppa.launchpad.net/w-vollprecht/ppa/ubuntu/dists/trusty/main/binary-i386/Package 404 not found

不在此sources.list文件中

你能帮我吗?

$rvm install ruby 2.0.0
Searching for binary rubies, this might take some time.
No binary rubies available for: mint/17/x86_64/ruby-2.0.0-p481.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for mint.
Installing requirements for mint.
Updating system................
Error running 'requirements_debian_update_system ruby-2.0.0-p481',
showing last 15 lines of /home/james/.rvm/log/1xxxxxxxxx_ruby-2.0.0-p481/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.

解决方法:

就像我在问题中链接到的答案一样,

如果您不从源列表/etc/apt/sources.list中删除或注释掉任何损坏的或404 Repos,RVM将失败

问题是由于某种原因,您无法直接访问LinuxMint 17上的所有存储库…与Ubuntu不同.

我跑了sudo apt-get update:

这将在最后显示损坏的程序包…对我来说,这是:

> http://ppa.launchpad.net/w-vollprecht/ppa/ubuntu/dists/trusty/main/source/Sources
找不到404
> http://ppa.launchpad.net/w-vollprecht/ppa/ubuntu/dists/trusty/main/binary-amd64/Packages
找不到404
> http://ppa.launchpad.net/w-vollprecht/ppa/ubuntu/dists/trusty/main/binary-i386/Packages
找不到404

由于我无法访问完整的source.list(或者找不到它),因此无法将其注释掉,因此我发现在Linux Mint 17中可以使用GUI.

所以我去了菜单>>软件>>软件源>> PPA取消选中已损坏的启动板存储库.

完成此操作后,我再次运行rvm install 2.0.0,一切正常.

标签:failed-installation,rvm,linuxmint,linux,ruby
来源: https://codeday.me/bug/20191121/2051395.html

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有