Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when trying to update rvm #4970

Closed
coabr opened this issue Aug 5, 2020 · 3 comments
Closed

Error when trying to update rvm #4970

coabr opened this issue Aug 5, 2020 · 3 comments
Milestone

Comments

@coabr
Copy link

coabr commented Aug 5, 2020

Description

When I tried to update RVM to change my ruby version from 2.7.1 to 2.7.0, I run the $ rvm get stable --auto-dotfiles and keep getting the "Cannot utime: Operation not permitted" error alongside with the final message "Exiting with failure status due to previous errors. Could not extract RVM sources. Could not update RVM, please report to https://github.com/rvm/rvm/issues"

Steps to reproduce

  1. OS: Linux 20.04
  2. Comands on terminal: $ rvm rvm get stable --auto-dotfiles
    $ rvm get master

Expected behavior

I expected to successfully update rvm.

Actual behavior

Environment info

ruby-2.7.0:

system:
uname: "Linux carol-asus 5.4.0-42-generic #46-Ubuntu SMP Fri Jul 10 00:24:02 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux"
name: "Ubuntu"
version: "20.04"
architecture: "x86_64"
bash: "/bin/bash => GNU bash, version 5.0.17(1)-release (x86_64-pc-linux-gnu)"
zsh: " => not installed"
remote_path: "ubuntu/20.04/x86_64"

rvm:
version: "1.29.10 (manual)"
updated: "9 days 43 minutes 45 seconds ago"
path: "/usr/share/rvm"
autolibs: "[4] Allow RVM to use package manager if found, install missing dependencies, install package manager (only OS X)."

ruby:
interpreter: "ruby"
version: "2.7.0p0"
date: "2019-12-25"
platform: "x86_64-linux"
patchlevel: "2019-12-25 revision 647ee6f091"
full_version: "ruby 2.7.0p0 (2019-12-25 revision 647ee6f091) [x86_64-linux]"

homes:
gem: "/home/carol/.rvm/gems/ruby-2.7.0"
ruby: "/usr/share/rvm/rubies/ruby-2.7.0"

binaries:
ruby: "/usr/share/rvm/rubies/ruby-2.7.0/bin/ruby"
irb: "/usr/share/rvm/rubies/ruby-2.7.0/bin/irb"
gem: "/usr/share/rvm/rubies/ruby-2.7.0/bin/gem"
rake: "/home/carol/.rvm/gems/ruby-2.7.0/bin/rake"

environment:
PATH: "/home/carol/.rvm/gems/ruby-2.7.0/bin:/home/carol/.rvm/gems/ruby-2.7.0@global/bin:/usr/share/rvm/rubies/ruby-2.7.0/bin:/usr/share/rvm/bin:/home/carol/.poetry/bin:/home/carol/.local/bin:/home/carol/.nvm/versions/node/v10.19.0/bin:/home/carol/.poetry/bin:/home/carol/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin"
GEM_HOME: "/home/carol/.rvm/gems/ruby-2.7.0"
GEM_PATH: "/home/carol/.rvm/gems/ruby-2.7.0:/home/carol/.rvm/gems/ruby-2.7.0@global"
MY_RUBY_HOME: "/usr/share/rvm/rubies/ruby-2.7.0"
IRBRC: "/usr/share/rvm/rubies/ruby-2.7.0/.irbrc"
RUBYOPT: ""
gemset: ""

@raelgc
Copy link
Contributor

raelgc commented Aug 5, 2020

Hi @COAB1 and thanks for reporting this issue.

Can you, please, try the following commands?

rvmsudo rvm cleanup all
rvm fix-permissions

Then try again run the commands that failed.

@coabr
Copy link
Author

coabr commented Aug 5, 2020

Problem solved with those commands. Thank you very much for your help

@raelgc
Copy link
Contributor

raelgc commented Aug 5, 2020

I'm glad it worked. I'll close this issue.

@raelgc raelgc closed this as completed Aug 5, 2020
@pkuczynski pkuczynski added this to the rvm-1.29.11 milestone Dec 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants