【问题标题】:Requirements Error while installing Ruby using RVM使用 RVM 安装 Ruby 时出现要求错误
【发布时间】:2014-10-04 14:37:21
【问题描述】:

我在尝试使用 RVM (Linux Mint 17) 安装 Ruby 2.0.0 时遇到以下错误

之前的回答 here 建议我“从我的来源列表中删除损坏的或 404 个 repos /etc/apt/sources.list

问题是在 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.

【问题讨论】:

    标签: ruby linux rvm failed-installation linux-mint


    【解决方案1】:

    正如我在问题中链接到的答案中所说,

    如果您不从源列表/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,一切正常。

    【讨论】:

      【解决方案2】:

      新标准 sources.list 移至 /etc/apt/sources.list.d/official-package-repositories.list

      在修改它之前尝试运行 sudo apt-get 更新

      【讨论】:

      • 我应该把它复制到我的 sources.list 文件中并删除 `#deb cdrom:[Linux Mint 17 Qiana - Release amd64 2xxxxxxx]/ trusty contrib main non-free '?
      • 我错了,编辑第一个答案,请阅读。可能现在不需要 /etc/apt/sources.list 了?尝试将其移动到另一个地方并运行 sudo apt-get update ,然后尝试再次运行 rvm install 。
      • 我刚试了一下,还是一样的错误(Linux Mint 17)
      • 另外,你可以试试这个:# sudo apt-get install curl, # \curl -sSL get.rvm.io | bash -s stable --ruby, # rvm install 2.1.1
      • 我已经修好了。一旦 ruby​​ 完成安装,我将发布一个解决方案(手指交叉这次它会起作用)......感谢您的帮助。
      猜你喜欢
      • 1970-01-01
      • 2013-09-27
      • 2011-09-18
      • 2016-07-29
      • 2012-07-23
      • 2015-03-31
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多