It is absolutely connected with the system ruby, and not with RVM, if you did not install RVM using the Multi-User installation type. If you did this and still ask for your password, then you installed as root , strictly against what is indicated in the specified documentation , and your general user was not added to the 'rvm' created by the installer. (NOTE: This is based on the idea that you want to install a multi-user system, not one user. If you want one user to install, not the sudo prefix, when the installer starts.)
Remove the RVM, log off, then return (to ensure a completely fresh reinitialization of the environment), and then run the installer command as a normal user and not as root , with the prefix 'sudo' as indicated in the documentation.
If you do not have RVM installed, follow the documentation at https://rvm.io to install either as a single user installation or as a multi-user installation. In this case, if RVM is not installed, then the Billy Chan described above is your fix, although I would suggest tightening the rules a bit to find out which set of commands (bunker names) you need to run on a regular basis and add entries for those in the sudoers (visudo) file.
Currently, the problem is that you are trying to use a system ruby ββthat * RVM does NOT (it just allows you to access it by setting the correct environment variables GEM_PATH, RUBY_ *, etc.) or your multi-user RVM installation was performed incorrectly.
source share