rvm : Failed to create the file bin-ruby-2.6.3.tar.bz2.part: Permission denied

眉间皱痕 提交于 2020-12-31 06:50:30

问题


I'm trying to install unsuccessfully ruby from rvm

rvm install ruby

And I have this result

Failed to create the file bin-ruby-2.6.3.tar.bz2.part: Permission denied

Did you have an idea about this problem ?


回答1:


I've successfully resolved the problem by running:

sudo chown -R goms:rvm /usr/share/rvm/*

Where gomsis the current user.




回答2:


From RVM installation manual: https://github.com/rvm/ubuntu_rvm "all sudoers are automatic added to rvm group at install" - please make sure that you are in rvm group. You can verify this using groups command.

If you're not, you can add your user to required group with this command: sudo usermod -aG rvm $USER Then you have to reboot your system.



来源:https://stackoverflow.com/questions/56247697/rvm-failed-to-create-the-file-bin-ruby-2-6-3-tar-bz2-part-permission-denied

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!