rvm / ubuntu_rvm

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

Unable to install any rubies on ubuntu #15

Closed detournemint closed 6 years ago

detournemint commented 6 years ago
 website git:(master) rvm install ruby
Searching for binary rubies, this might take some time.
Found remote file https://rvm_io.global.ssl.fastly.net/binaries/ubuntu/16.04/x86_64/ruby-2.4.1.tar.bz2
Checking requirements for ubuntu.
Requirements installation successful.
ruby-2.4.1 - #configure
ruby-2.4.1 - #download
  % 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 bin-ruby-2.4.1.tar.bz2.part: Permission 
Warning: denied
  0 16.4M    0  2759    0     0  13169      0  0:21:49 --:--:--  0:21:49 13200
curl: (23) Failed writing body (0 != 2759)
There was an error(23).
Checking fallback: ftp://rvm_io.global.ssl.fastly.net/binaries/ubuntu/16.04/x86_64/ruby-2.4.1.tar.bz2?rvm=1.29.3
Checking fallback: https://www.mirrorservice.org/sites/rvm_io.global.ssl.fastly.net/binaries/ubuntu/16.04/x86_64/ruby-2.4.1.tar.bz2?rvm=1.29.3
No fallback URL could be found, try increasing timeout with:

    echo "export rvm_max_time_flag=20" >> ~/.rvmrc

Downloading https://rvm_io.global.ssl.fastly.net/binaries/ubuntu/16.04/x86_64/ruby-2.4.1.tar.bz2 failed.
Mounting remote ruby failed with status 2, trying to compile.
Checking requirements for ubuntu.
Requirements installation successful.
Installing Ruby from source to: /usr/share/rvm/rubies/ruby-2.4.1, this may take a while depending on your cpu(s)...
ruby-2.4.1 - #downloading ruby-2.4.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.4.1.tar.bz2.part: Permission denied
  0 11.9M    0  2759    0     0   6162      0  0:34:00 --:--:--  0:34:00  6158
curl: (23) Failed writing body (0 != 2759)
There was an error(23).
Checking fallback: https://ftp.ruby-lang.org/pub/ruby/2.4/ruby-2.4.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:01 --:--:--     0Warning: Failed to create the file ruby-2.4.1.tar.bz2.part: Permission denied
  0 11.9M    0 16149    0     0   6632      0  0:31:35  0:00:02  0:31:33  6632
curl: (23) Failed writing body (0 != 16149)
There was an error(23).
Failed download
There has been an error fetching the ruby interpreter. Halting the installation.

any guidance?

detournemint commented 6 years ago

I've increased the timeout, no luck

detournemint commented 6 years ago

I've also tried rvm fix-permissions

raelgc commented 6 years ago

The problem is lack of write permission. Usually this happens when you try install rvm manually using sudo. Can you, please, remove all installations (with rvm implode), including this package (using apt), and start again using only this package?

detournemint commented 6 years ago

Hi there, I got it working with a restart, Sorry about that.

Thanks!

daanggc commented 6 years ago

I had the same issue and a restart also fixed it, it might be nice to add a note in step 3 in https://github.com/rvm/ubuntu_rvm/blob/master/README.md about this.

mpapis commented 6 years ago

no need to restart, logout/login should work just fine, and we have this step here: https://github.com/rvm/ubuntu_rvm/blob/master/README.md#3-logout-and-login

sentyaev commented 6 years ago

@mpapis on ubuntu 18.04 logout/login not works for me, but after reboot rvm install ruby works just fine.

Amal-Vincent commented 6 years ago

I had the same issue on ubuntu 18.04, logout/login does not work for some reason, restart does though

raelgc commented 6 years ago

Ok, I've updated the README to suggest a restart.

FaizanMustafa commented 4 years ago

I had the same problem.. restart the system did the trick for me also.. so if anyone has that problem restart is the way to go

sahil-binekar commented 3 years ago

Restart worked for me too, thanks

belawalumer commented 2 years ago

Restart worked for me. Thanks

felipebueno commented 1 year ago

No need for restarting or logout/login.

newgrp rvm

should do the trick :slightly_smiling_face: