使用 rvm 安装 ruby 时出错
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/18947072/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Error while installing ruby using rvm
提问by user1482084
Am getting the below error while trying to install ruby using rvm:
尝试使用 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.
Can you help me on this!
你能帮我解决这个问题吗!
回答by TheBetterJORT
Remove broken or 404 repos from your /etc/apt/sources.list.
从您的/etc/apt/sources.list.
rvmwill fail if you don't remove or comment them out.
rvm如果您不删除或注释掉它们,将会失败。
To work out which aren't working, run apt-get updateand see which ones are marked as failing.
要找出哪些不起作用,请运行apt-get update并查看哪些标记为失败。
Once you are using rvm, installing Ruby is easy.
一旦您使用了rvm,安装 Ruby 就很容易了。
rvm install ruby
rvm install ruby
rvm use ruby --default
rvm use ruby --default
I had the same problem.
我有同样的问题。
回答by kwarrick
It isn't unusual to not have a binary package for you distribution, and rvmshould try to install from source.
没有可供您分发的二进制包并不少见,rvm应该尝试从源代码安装。
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.
您需要安装这些并再次运行安装。
回答by mpapis
make sure you can update your system:
确保您可以更新您的系统:
sudo apt-get update
and then start rvm installation again.
然后再次开始rvm安装。
Update 1:
更新 1:
also it looks like you are using old version of rvm, make sure to update rvm before continuing:
此外,您似乎使用的是旧版本的 rvm,请确保在继续之前更新 rvm:
rvm get stable
回答by freemoth
been having a similar problem and discovered a typo in grizzly.list file
遇到了类似的问题,并在 grizzly.list 文件中发现了一个错字
http://ubuntu-cloud.archive.cononical.comprecise-updates/grizzly
http://ubuntu-cloud.archive.cononical.comprecision-updates/grizzly
should have been
本来应该
http://ubuntu-cloud.archive.canonical.comprecise-updates/grizzly
http://ubuntu-cloud.archive.canonical.comprecision-updates/grizzly
i.e. first a in canonical
即首先是规范的
is this mistake part of the ubuntu 12.04 distribution?
这个错误是 ubuntu 12.04 发行版的一部分吗?
回答by Manjush
When you are initially installing rvm, read the notes. For suppose you get notes like,
最初安装 rvm 时,请阅读说明。因为假设你得到这样的笔记,
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
创建一个 * 警告:您有'~/.profile'文件,您可能想要加载它,为此,将以下行添加到'/home/name/.bash_profile':source ~/.profile
Then-> $ sudo gedit /home/name/.bash_profile
然后-> $ sudo gedit /home/name/.bash_profile
Add line `~/.profile` to the file. Save and close it.
now run $ rvmrequirements
You should get a success message.
现在运行 $ rvm需求 您应该会收到一条成功消息。
回答by Alex
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. Thisand thisshould help)
确保在运行 sudo apt-get update 时,所有 PPA 都正确更新。如果没有,删除或编辑他们,让他们这样做(你可能需要更改分配,例如,从铆足了劲清晰,用户可以通过终端或软件中心做到这一点。这和这应该帮助)
回答by knice
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.
如果 apt-get 失败,RVM 将不会安装 ruby。我遇到了同样的问题,并在运行时注意到apt-get update,它在“google-chrome.list”上失败。我按照这些说明修复了它,然后能够成功运行apt-get update,然后我就可以运行了rvm install ruby。
- Edit google-chrome.list (assuming you're on the Stable Channel):
- 编辑 google-chrome.list(假设您在稳定频道上):
sudo gedit /etc/apt/sources.list.d/google-chrome.list
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
deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
- Try to update again:
- 再次尝试更新:
sudo apt-get update
sudo apt-get update
- Try to run RVM again:
- 再次尝试运行 RVM:
rvm install ruby
rvm install ruby
回答by Eslam Saber
this problem caused in apt-get updateso you have to disable the PPA :
导致此问题,apt-get update因此您必须禁用 PPA:
System Settings>Software & Updates>Other Software
系统设置>软件和更新>其他软件
then reinstall. this image show disable PPA
然后重新安装。 此图像显示禁用 PPA
回答by roxdurazo
I had a permission problem, solved with:
我有一个权限问题,解决了:
sudo chmod 777 log
回答by Jhonnatas Alencar
I was facing the same problem and just did that:
我遇到了同样的问题,只是这样做了:
sudo rm /etc/apt/sources.list.d/webupd8team-ubuntu-sublime-text-3-bionic.list
须藤rm /etc/apt/sources.list.d/webupd8team-ubuntu-sublime-text-3-bionic.list
Now it works!
现在它起作用了!

