我刚刚将我的系统升级到 Ubuntu 16.04 LTS(全新安装)并尝试使用 RVM 安装 Ruby。RVM 本身安装良好(使用本指南http://www.webupd8.org/2014/11/how-to-install-rvm-ruby-version-manager.html),但是当我尝试安装 Ruby 时,我得到了以下错误:
user@user:~$ rvm install 2.3.0
Searching for binary rubies, this might take some time.
No binary rubies available for: ubuntu/16.04/x86_64/ruby-2.3.0.
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.3.0, this may take a while depending on your cpu(s)...
ruby-2.3.0 - #downloading ruby-2.3.0, 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 --:--:-- --:--:-- --:--:-- 0
Warning: Failed to create the file ruby-2.3.0.tar.bz2.part: Permission denied
0 13.5M 0 16384 0 0 19826 0 0:11:55 --:--:-- 0:11:55 19811
curl: (23) Failed writing body (0 != 16384)
There was an error(23).
Checking fallback: https://ftp.ruby-lang.org/pub/ruby/2.3/ruby-2.3.0.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:02 --:--:-- 0
Warning: Failed to create the file ruby-2.3.0.tar.bz2.part: Permission denied
0 13.5M 0 16149 0 0 7324 0 0:32:16 0:00:02 0:32:14 7323
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.
这是 16.04 的普遍问题吗?确切的方法在 15.10 下运行良好。有什么想法可以解决这个问题吗?