Error while installing ruby using rvm
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
.
- Edit google-chrome.list (assuming you’re on the Stable Channel):
sudo gedit /etc/apt/sources.list.d/google-chrome.list
- 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
- Try to update again:
sudo apt-get update
- Try to run RVM again:
rvm install ruby
Related videos on Youtube
user1482084
Updated on October 16, 2020Comments
-
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 over 10 yearsRead the log like it says. If that doesn't help, post a (small) snippet from the log that shows the root error.
-
Prakash Murthy over 10 yearsDo 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 over 10 yearsW: Failed to fetch ppa.launchpad.net/ferramroberto/java/ubuntu/dists/precise/main/… 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 over 10 yearsThanks 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/main/} So removed it from the update list... everything went smooth :))
-
Neelesh over 10 years@user1482084 I removed it from /etc/apt/sources.list.d/*.list and everything works find. thank you.
-
-
Arup Rakshit over 10 yearscan you mention all the steps to install ruby using rvm... step-by-step...? (if possible)
-
mpapis over 10 yearsthere 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 over 10 yearsThanks, the issue was launchpad ppa was not updating and henceforth was not allowing ruby to install { ppa.launchpad.net/ferramroberto/java/ubuntu/dists/precise/main/} So removed it from the update list... everything went smooth :)
-
James A Mohler over 10 yearsYou should include some of the details in your links into your answer
-
Adrian Matteo over 10 yearsI'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 about 10 yearsLooked 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 over 9 yearsWorked 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 almost 8 yearsit 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 about 7 yearsGreat! Many thanks, it works! Found here how to remove 404 askubuntu.com/questions/65911/…
-
zekromWex about 4 yearsRunning rvm requirements worked like a charm in my local machine. Cheers