user1482084
user1482084

Reputation: 325

Error while installing ruby using rvm

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!

Upvotes: 23

Views: 41048

Answers (14)

Aleem
Aleem

Reputation: 680

you can temporarily disable updates by this

sudo apt-get update | grep "Failed"

Ruby RVM apt-get update error

Upvotes: 0

Jhonnatas Alencar
Jhonnatas Alencar

Reputation: 113

I was facing the same problem and just did that:

sudo rm /etc/apt/sources.list.d/webupd8team-ubuntu-sublime-text-3-bionic.list

Now it works!

Upvotes: 1

Chaudhary Prakash
Chaudhary Prakash

Reputation: 330

I had the above error on installing ruby-2.3.0 in Ubuntu 16.04.

Go to the file:

/etc/apt/sources.list.d/mc3man-ubuntu-trusty-media-xenial.list

and remove the below:

deb-src http://ppa.launchpad.net/mc3man/trusty-media/ubuntu xenial main
deb http://ppa.launchpad.net/mc3man/trusty-media/ubuntu xenial main 

then run sudo apt-get update and after rvm install ruby-2.3.0 it's working.

Upvotes: 0

roxdurazo
roxdurazo

Reputation: 775

I had a permission problem, solved with:

sudo chmod 777 log

Upvotes: 0

Eslam Saber
Eslam Saber

Reputation: 519

this problem caused in apt-get update so you have to disable the PPA :

System Settings>Software & Updates>Other Software

then reinstall. this image show disable PPA

Upvotes: 1

knice
knice

Reputation: 391

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

Upvotes: 1

Rakesh
Rakesh

Reputation: 851

Below solution is to solve the rvm requirment error returns 100

If any deb command is commented in /etc/apt/sources.list than try to uncomment that command from /etc/apt/sources.list

Command is:

$sudo vi /etc/apt/sources.list

If problem is not solved than replace sources.list file with other Ubuntu's sources.list

Command is:

$mv /etc/apt/sources.list

Please make a backup before doing that

Command is:

$cp /etc/apt/sources.list sources_backup.list

Problem should solve by this time, if not than reinstall the Ubuntu.

Note: If sources.list file is corrupted than it will gives problem to install other packages.

Upvotes: 0

Mijo
Mijo

Reputation: 611

I faced the same problem while executing the command

curl -L https://get.rvm.io | bash -s stable --autolibs=3 --rails

It appeared to be that I was using the command as not a previleged user. So, using

sudo curl -L https://get.rvm.io | bash -s stable --autolibs=3 --rails

solved the problem

Upvotes: 0

TheBetterJORT
TheBetterJORT

Reputation: 808

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.

Upvotes: 45

Manjush
Manjush

Reputation: 166

When you are initially installing rvm, read the notes. For suppose you get notes like,

create a * WARNING: You have '~/.profile' file, you might want to load it, to do that add the following line to '/home/name/.bash_profile':source ~/.profile

Then-> $ sudo gedit /home/name/.bash_profile

   Add line `~/.profile` to the file. Save and close it.

now run $ rvm requirements You should get a success message.

Upvotes: 1

freemoth
freemoth

Reputation: 171

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?

Upvotes: 2

Alex
Alex

Reputation: 11

Make sure when you run sudo apt-get update, all your PPAs are updating correctly. If not, remove them or edit them so they do so (you might need to change the distribution, for example, from raring to lucid. You can do this through terminal or Software Center. This and this should help)

Upvotes: 1

mpapis
mpapis

Reputation: 53178

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

Upvotes: 4

kwarrick
kwarrick

Reputation: 6240

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.

Upvotes: 13

Related Questions