问题描述
我目前无法通过 Ubuntu 运行 rvm install,我知道原因,但不知道如何修复它。
这是正在发生的事情
~$ rvm install 2.6.1
Searching for binary rubies,this might take some time.
Found remote file https://rvm_io.global.ssl.fastly.net/binaries/ubuntu/20.04/x86_64/ruby-2.6.1.tar.bz2
Checking requirements for ubuntu.
Installing requirements for ubuntu.
mkdir: cannot create directory ‘/usr/share/rvm/log/1609714241_ruby-2.6.1’: Permission denied
tee: /usr/share/rvm/log/1609714241_ruby-2.6.1/update_system.log: No such file or directory
Updating system....
Error running 'requirements_debian_update_system ruby-2.6.1',please read /usr/share/rvm/log/1609714241_ruby-2.6.1/update_system.log
Requirements installation Failed with status: 1.
非常感谢任何帮助。
我最终改变了我编辑目录的能力
/log/
我现在看到There was an error(23). Failed download There has been an error fetching the ruby interpreter. Halting the installation.
当我尝试安装时
解决方法
我发现我需要使用 rvm group add rvm "$USER"
问题已解决