更新时间:2023-02-02 20:52:15
RVM
在 apt-get update
出现错误时表现不佳.如果您的 apt
sources
有一个无效的存储库,导致 404 或 GPG 错误,RVM
将拒绝工作.这可能会令人困惑,因为即使错误的存储库与 ruby
或 RVM
无关,也会发生这种情况.
RVM
doesn't behave well if apt-get update
has errors. If your apt
sources
have an invalid repository that gives 404 or GPG error, RVM
will refuse to work. This can be confusing because it happens even if the faulty repository has nothing to do with ruby
or RVM
.
以下修复对我有用(Ubuntu):
The following fix worked for me (Ubuntu):
运行 apt-get update
看看有没有错误.编辑 /etc/apt
中的 sources.list
和 precise.list
以删除有问题的存储库.重复直到 apt-get update
成功且没有任何错误.然后尝试运行 RVM
.
Run apt-get update
and see if there are any errors. Edit your sources.list
and precise.list
in /etc/apt
to remove the faulty repositories. Repeat until apt-get update
succeeds without any errors. Then try running RVM
.