无法更新OS拥有的Ruby文件
我正在尝试使用sudo gem Update -system
在Ubuntu上更新Ruby,但请继续获取错误:
加载rubygems/defaults/procer_system.rb文件引起了 错误。该文件归您的操作系统所有,而不是上游RubyGems所有。请 找出此文件属于哪个操作系统包,然后遵循 您的操作系统指南报告问题并寻求帮助。我 尝试
了整个宝石库,但无济于事。我能做些什么?
I'm trying to update ruby on ubuntu using sudo gem update --system
but keep getting the error:
Loading the rubygems/defaults/operating_system.rb file caused an
error. This file is owned by your OS, not by rubygems upstream. Please
find out which OS package this file belongs to and follow the
guidelines from your OS to report the problem and ask for help. I
tried
chown'ing the entire gems library but to no avail. What can I do?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果创建了旧的Ruby版本,这可能会发生
.RB文件。通常,它位于
删除它,试图
为我工作。
This can happen if an old ruby version is created that
.rb file. Usually it is located at
Deleting it and trying to run
worked for me.