Error while installing ruby using rvm

2019-01-22 08:23发布

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!

标签: ruby ubuntu rvm
13条回答
看我几分像从前
2楼-- · 2019-01-22 08:48

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!

查看更多
男人必须洒脱
3楼-- · 2019-01-22 08:50

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.

查看更多
爱情/是我丢掉的垃圾
4楼-- · 2019-01-22 08:52

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
查看更多
我想做一个坏孩纸
5楼-- · 2019-01-22 08:54

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.

查看更多
\"骚年 ilove
6楼-- · 2019-01-22 08:55

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

查看更多
地球回转人心会变
7楼-- · 2019-01-22 08:57

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

查看更多
登录 后发表回答