我无法在 Vagrant (box "hashicorp/precise64") 上安装 RVM 和 Ruby

I can't install RVM and Ruby on Vagrant (box "hashicorp/precise64")

大家好!我已按照 https://rvm.io/integration/vagrant

的说明进行操作

所以在 Vargantfile 中我有:

config.vm.box = "hashicorp/precise64"
config.vm.provision :shell, path: "provision/install-rvm.sh", args: "stable", privileged: false
config.vm.provision :shell, path: "provision/install-ruby.sh", args: "1.9.3", privileged: false
config.vm.provision :shell, path: "provision/install-ruby.sh", args: "2.0.0 rails haml", privileged: false

在安装中-rvm.sh:

gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
curl -sSL https://get.rvm.io | bash -s 

在安装-ruby.sh:

source $HOME/.rvm/scripts/rvm || source /etc/profile.d/rvm.sh 
rvm use --default --install 
shift
if (( $# ))
then gem install $@
fi
rvm cleanup all    

但在 vagrant up 之后它说:

==> default: gpg: requesting key D39DC0E3 from hkp server keys.gnupg.net
==> default: gpg: key D39DC0E3: "Michal Papis (RVM signing) <mpapis@gmail.com>" not changed
==> default: gpg: Total number processed: 1
==> default: gpg:              unchanged: 1
==> default: /tmp/vagrant-shell: line 4: curl: command not found
==> default: Running provisioner: shell...
default: Running: /tmp/vagrant-shell20170120-19193-117iyxj.sh
==> default: /tmp/vagrant-shell: line 3: /usr/local/rvm/scripts/rvm: No such file or directory
==> default: /tmp/vagrant-shell: line 3: /etc/profile.d/rvm.sh: No such file or directory
==> default: /tmp/vagrant-shell: line 5: rvm: command not found
==> default: /tmp/vagrant-shell: line 13: rvm: command not found

但是如果我 运行 与 rvm 和 ruby 在 "ubuntu/trusty64" 上的相同规定 一切正常

RVM 依赖于 curl - 添加额外的行来安装 curl,例如:

apt-get install curl

在调用任何 rvm 脚本之前