rvm / ubuntu_rvm

Ubuntu package for RVM
https://launchpad.net/~rael-gc/+archive/ubuntu/rvm
Apache License 2.0
694 stars 84 forks source link

There has been an error fetching the ruby interpreter. Halting the installation. #47

Closed knzudgt closed 4 years ago

knzudgt commented 4 years ago

Description

I am on a Ubuntu 14.04 machine. I installed the rvm package for Ubuntu and then I tried to install some rubies. I tried with ruby 2.7.1, ruby 2.6.6, ruby 2.6.0 but all my attempts failed:

me@HOME:~/Downloads$ rvm install 2.7.1
Searching for binary rubies, this might take some time.
No binary rubies available for: ubuntu/14.04/x86_64/ruby-2.7.1.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for ubuntu.
Requirements installation successful.
Installing Ruby from source to: /usr/share/rvm/rubies/ruby-2.7.1, this may take a while depending on your cpu(s)...
ruby-2.7.1 - #downloading ruby-2.7.1, this may take a while depending on your connection...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0Warning: Failed to create the file ruby-2.7.1.tar.bz2.part: Permission denied
  0 14.0M    0  1371    0     0   7139      0  0:34:16 --:--:--  0:34:16  7178
curl: (23) Failed writing body (0 != 1371)
There was an error(23).
Checking fallback: https://ftp.ruby-lang.org/pub/ruby/2.7/ruby-2.7.1.tar.bz2
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:--  0:00:05 --:--:--     0Warning: Failed to create the file ruby-2.7.1.tar.bz2.part: Permission denied
  0 14.0M    0  1371    0     0    246      0 16:34:53  0:00:05 16:34:48   338
curl: (23) Failed writing body (0 != 1371)
There was an error(23).
Failed download
There has been an error fetching the ruby interpreter. Halting the installation.

It seems that the installations are failing to create the ruby-*.tar.bz2.part file, because the permission is denied. What is the download location? How can I solve this issue?

Environment info

me@HOME:~/Downloads$ cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=14.04 DISTRIB_CODENAME=trusty DISTRIB_DESCRIPTION="Ubuntu 14.04.6 LTS"

raelgc commented 4 years ago

Hi @knzudgt and thanks for reporting this issue.

Had you rebooted?

Case yes, can you try rvm fix-permissions system ? (Maybe it'll ask your password).

knzudgt commented 4 years ago

@raelgc thanks, I had to reboot the machine. Now I am able to install rubies.

raelgc commented 4 years ago

You're welcome! I'm glad it worked!

skchakri commented 4 years ago

worked for me too

jericoluislua commented 4 years ago

Same here, worked like a charm!!

RafaBlockDev commented 2 years ago

Many thanks for your help dude