在尝试使用rvm安装ruby时出现以下错误:
$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.
你能帮我吗?
从/etc/apt/sources.list
删除损坏或404的回购。
如果你不删除或注释掉rvm
将失败。
要计算出哪些不工作,请运行apt-get update
并查看哪些标记为失败。
一旦你使用rvm
,安装Ruby很容易。
rvm install ruby
rvm use ruby --default
我有同样的问题。
没有为你发行的二进制包并不是不寻常的, rvm
应该尝试从源代码安装。
首先,检查它没有实际安装它:
rvm list
否则,我怀疑你可能会错过一些依赖,你可以找到:
rvm requirements
您将需要安装这些,然后再次运行安装。
确保你可以更新你的系统:
sudo apt-get update
然后再次启动rvm安装。
也看起来你正在使用旧版本的rvm,请确保在继续之前更新rvm:
rvm get stable
一直有类似的问题,并在grizzly.list文件中发现了一个错字
http://ubuntu-cloud.archive.cononical.com精确更新/灰熊
本来应该
http://ubuntu-cloud.archive.canonical.com精确更新/灰熊
即第一个在规范
这是ubuntu 12.04发行版的一部分吗?
确保当你运行sudo apt-get update时,所有的PPA都能正确更新。 如果没有的话,删除它们或者编辑它们(你可能需要改变分布,例如,从rar到clear),你可以通过终端或软件中心来做到这一点 , 这应该有所帮助)
最初安装rvm时,请阅读注释。 假设你拿到笔记,
创建一个*警告:你有'~/.profile'
文件,你可能想加载它,做到这一点,添加以下行'/home/name/.bash_profile':source ~/.profile
然后 – > $ sudo gedit /home/name/.bash_profile
Add line `~/.profile` to the file. Save and close it.
现在运行$ rvm
要求你应该得到一个成功的消息。
如果apt-get失败,RVM将不会安装ruby 。 我有同样的问题,并注意到当运行apt-get update
,它是失败的“谷歌chrome.list”。 我按照这些指示修复了它,然后能够成功运行apt-get update
,然后允许我运行rvm install ruby
。
sudo gedit /etc/apt/sources.list.d/google-chrome.list
deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
sudo apt-get update
rvm install ruby
这个问题导致apt-get update
所以你必须禁用PPA:
系统设置>软件和更新>其他软件
然后重新安装。 此图像显示禁用PPA
我在执行命令时遇到同样的问题
curl -L https://get.rvm.io | bash -s stable –autolibs = 3 – 路轨
这似乎是我使用的命令不是一个特权用户。 所以,使用
sudo curl -L https://get.rvm.io | bash -s stable --autolibs=3 --rails
解决了这个问题
以下解决方案是解决rvm需求错误返回100
如果任何deb命令在/etc/apt/sources.list中被注释掉,则尝试从/etc/apt/sources.list中取消该命令的注释
命令是:
$ sudo vi /etc/apt/sources.list
如果问题没有得到解决,就把source.list文件替换成其他Ubuntu的sources.list文件
命令是:
$ mv /etc/apt/sources.list
请在做之前做一个备份
命令是:
$ cp /etc/apt/sources.list sources_backup.list
如果不是重装Ubuntu,问题应该在这个时候解决。
注意:如果sources.list文件被损坏,将会给安装其他软件包带来麻烦。
我也出现上面的错误在Ubuntu 16.04中安装ruby-2.3.0。
i goes /etc/apt/sources.list.d/mc3man-ubuntu-trusty-media-xenial.list file and remove below URL deb-src http://ppa.launchpad.net/mc3man/trusty-media/ubuntu xenial main deb http://ppa.launchpad.net/mc3man/trusty-media/ubuntu xenial main then after **sudo apt-get update** and **rvm install ruby-2.3.0** it's working. i hope it's will help you.