【问题标题】:I have run command rvm intall and get error我已经运行命令 rvm intall 并得到错误
【发布时间】:2016-02-04 05:59:51
【问题描述】:

我想安装 rvm,但出现此错误。如何消除此错误?

root@jaskaran:/# ruby -v
The program 'ruby' can be found in the following packages:
 * ruby1.8
 * ruby1.9.1
Try: apt-get install <selected package>
//--------------------------------------------------------------


   here@jaskaran:/$ rvm install 2.1.0
        Searching for binary rubies, this might take some time.
        No binary rubies available for: ubuntu/12.10/i386/ruby-2.1.0.
        Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
        Checking requirements for ubuntu.
        Installing requirements for ubuntu.
        Updating system................
        Error running 'requirements_debian_update_system ruby-2.1.0',
        showing last 15 lines of /home/zapbuild/.rvm/log/1396242152_ruby-2.1.0/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-on-rails ruby ubuntu


【解决方案1】:

要安装 rvm,运行这个。

$ \curl -sSL https://get.rvm.io | bash

或者,如果您只想使用可用的 ruby​​ 列表更新您的 rvm,请使用 rvm get stable。现在使用rvm install ruby-2.1.0rvm install 2.1.0 安装ruby。这应该可以解决问题

【讨论】:

    【解决方案2】:

    我今天在 ubuntu 14.04 上遇到了同样的问题。我删除了 source.list 和 source.list.d/* 中的损坏源。它对我来说很好用。

    之后就可以运行了

    sudo apt-get update
    rvm requirements
    

    希望对您有所帮助。

    【讨论】:

      【解决方案3】:

      从软件设置中删除 PPA 源并在终端中运行这些命令:

      sudo apt-get update
      
      sudo apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties
      
      sudo apt-get install libgdbm-dev libncurses5-dev automake libtool bison libffi-dev
      
      curl -L https://get.rvm.io | bash -s stable
      
      source ~/.rvm/scripts/rvm
      
      echo "source ~/.rvm/scripts/rvm" >> ~/.bashrc
      
      rvm install 2.1.3
      
      rvm use 2.1.3 --default
      
      ruby -v
      
      sudo add-apt-repository ppa:chris-lea/node.js
      
      sudo apt-get update
      
      sudo apt-get install nodejs
      
      gem install rails
      
      rails -v
      

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2021-01-18
        • 1970-01-01
        • 1970-01-01
        • 2021-01-24
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多