Error while installing ruby using rvm

35,098

Solution 1

Remove broken or 404 repos from your /etc/apt/sources.list.

rvm will fail if you don't remove or comment them out.

To work out which aren't working, run apt-get update and see which ones are marked as failing.

Once you are using rvm, installing Ruby is easy.

rvm install ruby

rvm use ruby --default

I had the same problem.

Solution 2

It isn't unusual to not have a binary package for you distribution, and rvm should try to install from source.

First, check that it didn't actually install it:

rvm list

Otherwise, I suspect you may be missing some depedencies, which you can find with:

rvm requirements

You'll need to install those and the run the install again.

Solution 3

make sure you can update your system:

sudo apt-get update

and then start rvm installation again.

Update 1:

also it looks like you are using old version of rvm, make sure to update rvm before continuing:

rvm get stable

Solution 4

been having a similar problem and discovered a typo in grizzly.list file

http://ubuntu-cloud.archive.cononical.com precise-updates/grizzly

should have been

http://ubuntu-cloud.archive.canonical.com precise-updates/grizzly

i.e. first a in canonical

is this mistake part of the ubuntu 12.04 distribution?

Solution 5

RVM will not install ruby if apt-get is failing. I had the same issue and noticed when running apt-get update, it was failing on "google-chrome.list". I fixed it following these directions and was then able to successfully run apt-get update, which then allowed me to run rvm install ruby.

  1. Edit google-chrome.list (assuming you’re on the Stable Channel):

sudo gedit /etc/apt/sources.list.d/google-chrome.list

  1. In the text file that opens edit the file so that the line reads:

deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main

  1. Try to update again:

sudo apt-get update

  1. Try to run RVM again:

rvm install ruby

Share:
35,098

Related videos on Youtube

user1482084
Author by

user1482084

Updated on October 16, 2020

Comments

  • user1482084
    user1482084 over 3 years

    Am getting the below error while trying to install ruby using rvm:

    $rvm install 1.9.3
    Searching for binary rubies, this might take some time.
    Checking requirements for ubuntu.
    Installing requirements for ubuntu.
    Updating system..................................................................................................
    Error running 'requirements_debian_update_system ruby-1.9.3-p448',
    please read /home/troy/.rvm/log/1379872584_ruby-1.9.3-p448/update_system.log
    Requirements installation failed with status: 100.
    

    Can you help me on this!

    • Jim Stewart
      Jim Stewart over 10 years
      Read the log like it says. If that doesn't help, post a (small) snippet from the log that shows the root error.
    • Prakash Murthy
      Prakash Murthy over 10 years
      Do check the log file mentioned in the error message - /home/troy/.rvm/log/1379872584_ruby-1.9.3-p448/update_system‌​.log ; it could have something useful.
    • user1482084
      user1482084 over 10 years
      W: Failed to fetch ppa.launchpad.net/ferramroberto/java/ubuntu/dists/precise/ma‌​in/… 404 Not Found E: Some index files failed to download. They have been ignored, or old ones used instead. 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
    • user1482084
      user1482084 over 10 years
      Thanks Jim,, The issue is resolved (Thanks, the issue was launchpad ppa was not updating and henceforth was not allowing ruby to install { ppa.launchpad.net/ferramroberto/java/ubuntu/dists/precise/ma‌​in/} So removed it from the update list... everything went smooth :))
    • Neelesh
      Neelesh over 10 years
      @user1482084 I removed it from /etc/apt/sources.list.d/*.list and everything works find. thank you.
  • Arup Rakshit
    Arup Rakshit over 10 years
    can you mention all the steps to install ruby using rvm... step-by-step...? (if possible)
  • mpapis
    mpapis over 10 years
    there is no more steps then just updating rvm and then installing ruby, it is crucial that you read all the outputs and mentioned log files - the information is there
  • user1482084
    user1482084 over 10 years
    Thanks, the issue was launchpad ppa was not updating and henceforth was not allowing ruby to install { ppa.launchpad.net/ferramroberto/java/ubuntu/dists/precise/ma‌​in/} So removed it from the update list... everything went smooth :)
  • James A Mohler
    James A Mohler over 10 years
    You should include some of the details in your links into your answer
  • Adrian Matteo
    Adrian Matteo over 10 years
    I'm having a similar issue, but I want to install a versino on ruby on a server in which the user that uses rvm has no permission to do sudo apt-get update. Is there a way I can see te requirements without sudo?
  • IndrekV
    IndrekV about 10 years
    Looked through various questions on the subject and this one fixed it for me. Commenting out the missing routes in the sources.list did the trick.
  • Mauricio Moraes
    Mauricio Moraes over 9 years
    Worked for me too! I had a stupid ppa source list on debian that was ruining ruby installation. Thanks. PS: I looked for it on /etc/apt/sources.list.d
  • Joe RR
    Joe RR almost 8 years
    it worked for me too... i mean, i go to sources.list.d and removed a broken package, that appeared when i typed sudo apt-get update so i removed it as root user and it's fine now.
  • Dima Fomin
    Dima Fomin about 7 years
    Great! Many thanks, it works! Found here how to remove 404 askubuntu.com/questions/65911/…
  • zekromWex
    zekromWex about 4 years
    Running rvm requirements worked like a charm in my local machine. Cheers