尝试通过RVM安装Ruby 2.0.0时出现以下错误(Linux Mint 17)
先前的答案here建议我“从我的来源列表/etc/apt/sources.list
中删除损坏的或404存储库”
问题是在Linux Mint 17上,我的源列表只有一行#deb cdrom:[Linux Mint 17 _Qiana_ - Release amd64 2xxxxxxx]/ trusty contrib main non-free
。
因此,这三个 splinter 的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/Packages
404 http://ppa.launchpad.net/w-vollprecht/ppa/ubuntu/dists/trusty/main/binary-i386/Packages
404 不在此
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存储库,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。
因此,我去了
Menu >> Software >> Software Sources >> PPA
取消选中了损坏的Launchpad Repos。完成此操作后,我再次运行
rvm install 2.0.0
,一切都按预期进行。