尝试使用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
。
因此,三破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.
答案 0 :(得分:3)
正如我在回答中所说的那样,在我的问题中,
如果您未从源列表/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。
所以我去Menu >> Software >> Software Sources >> PPA
取消了破损的Launchpad Repos。
执行此操作后,我再次运行rvm install 2.0.0
,一切都按预期工作。
答案 1 :(得分:0)
新标准sources.list已移至 /etc/apt/sources.list.d/official-package-repositories.list
在修改之前尝试运行 sudo apt-get update