Vagrant 无法安装流浪percise32';s盒

Vagrant 无法安装流浪percise32';s盒,vagrant,vagrantfile,Vagrant,Vagrantfile,我将尝试此命令: vagrant init hashicorp/percise32&&vagrant up 但这种错误是经常发生的 The box 'hashicorp/percise32' could not be found or could not be accessed in the remote catalog. If this is a private box on HashiCorp's Atlas, please verify you're logged in via `vag

我将尝试此命令:

vagrant init hashicorp/percise32&&vagrant up
但这种错误是经常发生的

The box 'hashicorp/percise32' could not be found or
could not be accessed in the remote catalog. If this is a private
box on HashiCorp's Atlas, please verify you're logged in via
`vagrant login`. Also, please double-check the name. The expanded
URL and error message are shown below:

URL: ["https://atlas.hashicorp.com/hashicorp/percise32"]
Error: The requested URL returned error: 404 Not Found
试试下面的方法

vagrant box add hashicorp/precise32
然后试试看

vagrant init
您应该在您的vagrant文件中引用您的框:

  # Every Vagrant virtual environment requires a box to build off of.
  config.vm.box = "hashicorp/precise32"

  # The url from where the 'config.vm.box' box will be fetched if it
  # doesn't already exist on the user's system.
  config.vm.box_url = "https://atlas.hashicorp.com/hashicorp/boxes/precise32/versions/1.0.0/providers/virtualbox.box"
然后

vagrant up
如果这没有帮助,尽管不推荐,请在第一步尝试以下操作:

vagrant框添加hashicorp/precise32https://atlas.hashicorp.com/hashicorp/boxes/precise32/versions/1.0.0/providers/virtualbox.box


希望对您有所帮助

这是完整有效的语法,您刚刚拼错了名称

vagrant init hashicorp/precise32 && vagrant up 
注意精度32 vs percise32


vagrant init hashicorp/precise32
使用框名创建一个vagrant文件。当您从此vagrant文件运行
vagrant up
时,vagrant将从文件引用的框中创建VM,如果找不到它,它将下载该框

@Sudakatux,语法有效我编辑了我的答案以解释
vagrant init hashicorp/precise32
创建一个带有框名的vagrant文件。当您从此vagrant文件运行
vagrant up
时,vagrant将从文件引用的框中创建VM,如果找不到它,它将下载该框,并且该框的名称必须匹配,因此如果您的框名为hashicorp/precise32,你必须在你的流浪者文件中使用这个名字哦,是的,对不起,我没有使用相同的名字,我使用的是precise32而不是hashicorp,这就是为什么这个文件混淆了,我编辑了我的回复以反映你所指的。谢谢你。是的,他使用的语法是正确的,还有拼写错误