RVM “ERROR: Unable to checkout branch .” single-user

I’m having trouble installing RVM on a new Debian 6 VirtualBox VM. I’ve installed all the needed packages and downloaded the install script fine using

(curl -s https://rvm.beginrescueend.com/install/rvm) > rvm

, but when running it as a single user

  • Using variables assigned with heredoc content in a Bash script via Sed
  • Passworded ssh key suddenly does *not* require that I type the password
  • git merge-file fails with bash process substitution operator that uses git show
  • Script getting git working directory root?
  • List git repositories with unpushed changes
  • sh.exe": emacs: command not found (Git bash Windows)
  • bash rvm
    

    I get the following error message:

    ERROR: Unable to checkout branch .
    

    Installation stops here, and (as far as I can tell) none of RVM’s files are installed.

    If I run the script as root (for a multi-user install), I get the other message:

    Successfully checked out branch ''
    

    The installer continues and indiciates success, but .rvm directories are not added and even after modifying my .bash_profile(s), I get ‘rvm: command not found’.

    I’m really stumped here. I don’t have a ton of experience in either bash or with git, so I’m not sure if the fact that ‘branch’ is blank is the problem, or how to continue debugging. I’m here to learn, so please don’t hesitate to ask questions so we can figure this out.

    Thanks.

  • Git: How to check for remote changes within a directory
  • Ran git rebase origin/develop and now I have a (develop|REBASE 1/2) - branch
  • Does git support the versioning of arbitrary properties like Subversion?
  • Is it possible to use the gift library to view all of the branches of a remote repository?
  • git fatal: failed to read object xxx: Invalid argument
  • git directory structure confusion
  • 3 Solutions collect form web for “RVM “ERROR: Unable to checkout branch .” single-user”

    I had a /etc/rvmrc lying around that was confusing it. The rvm-installer was trying to install into /usr/local and failing. Deleting it fixed it.

    Had the same problem.
    Checked for /etc/rvmrc – but did not exist.
    Did a ls -al, and found .rvm in my home directory.
    Ran rm -rf .rvm

    For the syntax error when install rvm on windows.
    1. curl -s https://rvm.beginrescueend.com/install/rvm
    2. sh rvm

    and that did it!

    You can try this. (it worked for me)

    Set the rvm_path to be user-facing:

    appuser$ echo 'rvm_path="$HOME/.rvm"' >> ~/.rvmrc
    

    Now install RVM,

    appuser$ curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer -o rvm-installer ; chmod +x rvm-installer ; ./rvm-installer
    

    source :
    http://beginrescueend.com/deployment/best-practices/

    Git Baby is a git and github fan, let's start git clone.