Chef infra Can';t按照操作代码页上的厨师长指示运行vagrant

Chef infra Can';t按照操作代码页上的厨师长指示运行vagrant,chef-infra,Chef Infra,我遵循这个关于使用chef的基本操作代码教程,这就是我在使用chef时得到的 $ vagrant init opscode-ubuntu-1204 https://opscode-vm-bento.s3.amazonaws.com/vagrant/opscode_ubuntu-12.04-i386_chef-11.4.4.box --no-color /opt/chef/embedded/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:3

我遵循这个关于使用chef的基本操作代码教程,这就是我在使用chef时得到的

$ vagrant init opscode-ubuntu-1204 https://opscode-vm-bento.s3.amazonaws.com/vagrant/opscode_ubuntu-12.04-i386_chef-11.4.4.box --no-color

/opt/chef/embedded/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- log4r (LoadError)
  from /opt/chef/embedded/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
  from /usr/bin/vagrant:2:in `<main>'
$vagrant init opscode-ubuntu-1204https://opscode-vm-bento.s3.amazonaws.com/vagrant/opscode_ubuntu-12.04-i386_chef-11.4.4.box --没有颜色
/opt/chef/embedded/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:在'require'中:无法加载这样的文件--log4r(LoadError)
from/opt/chef/embedded/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in'require'
from/usr/bin/vagrant:2:in`'
我一直停留在“汇聚节点”点2


我错过了什么/做错了什么?

我今天遇到了同样的问题。您是否使用
$sudo apt get install vagrant安装了vagrant
?Ubuntu13.04 repo当前的版本是
1.0.3
,但Vagrant下载页面上的最新版本是
1.2.7
。ops代码说明链接到此页面

但是,安装此软件包会尝试删除

您可能还需要将
/opt/vagrant/bin/
添加到路径中


我希望这有帮助

尼尔的回答有用吗?请不要忘记将答案标记为正确!:)
# Remove older version of vagrant
$ sudo apt-get remove vagrant

# Install downloaded package without removing virtualbox
$ sudo dpkg -i vagrant_x86_64.deb