【问题标题】:File system permission error when installing Ruby using RVM on Ubuntu在 Ubuntu 上使用 RVM 安装 Ruby 时出现文件系统权限错误
【发布时间】:2021-01-03 23:00:44
【问题描述】:

我目前无法通过 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 的?您的错误中的文件系统位置似乎不是安装文档中提到的标准位置。到目前为止,我最好的猜测是安装 rvm 出了点问题,您需要将其删除并正确重新安装。 rvm.io/rvm/install
  • sudo apt-get install software-properties-common sudo -E apt-add-repository -y ppa:rael-gc/rvm sudo apt-get update sudo apt-get install rvm source /etc/ profile.d/rvm.sh -sSL raw.githubusercontent.com/flatiron-school/dotfiles/master/… >> ~/.bashrc
  • 我不知道 Ubuntu 中的 rvm 是如何设置的,但它似乎是系统级安装,您需要将用户添加到 rvm 组以供使用。 rvm.io/rvm/…
  • @ScottSwezey 就在这里。 apt-get 包很可能已损坏(很常见),您应该改用作者提供的 bash 脚本。
  • 试试rvmsudo 命令

标签: ruby ubuntu rvm


【解决方案1】:

我发现我需要使用 rvm group add rvm "$USER" 将我的 Ubuntu 用户添加到 rvm 组

问题已解决

【讨论】:

    猜你喜欢
    • 2015-07-07
    • 2013-07-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-10-04
    • 2018-03-23
    • 1970-01-01
    • 2011-06-29
    相关资源
    最近更新 更多