尝试使用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 @R_817_4045@ion 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,一切正常.
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。