获取框' hashicorp / precise32'在射击中找不到“流浪汉”。来自ubuntu的终端

时间:2015-02-05 09:49:35

标签: vagrant vagrantfile

我安装了Vagrant,一旦我从终端进入项目文件夹,我就会发出以下命令:

  1. vagrant box add hashicorp/precise32 http://files.vagrantup.com/precise32.box
  2. 输出:

    [vagrant] Downloading with Vagrant::Downloaders::HTTP... 
    [vagrant] Downloading box: files.vagrantup.com/precise32.box 
    [vagrant] Downloading box: hashicorp-files.vagrantup.com/precise32.box 
    [vagrant] Extracting box... 
    [vagrant] Verifying box... 
    [vagrant] Cleaning up downloaded box...
    
    1. vagrant init hashicorp/precise32
    2. 输出:A Vagrantfile has been placed in this directory

      1. vagrant up
      2. 我收到错误消息:

        The box 'hashicorp/precise32' could not be found
        

2 个答案:

答案 0 :(得分:3)

您需要做的就是编辑流浪文件并定义像这样的vm.box_url和vm.box选项。

config.vm.box_url =" http://files.vagrantup.com/precise32.box"

config.vm.box =" exact32"

然后运行" 流浪汉"

答案 1 :(得分:1)

请从原始网站http://www.vagrantup.com/downloads

下载的.deb软件包安装Vagrant