无法安装 vagrant percise32 的盒子

can not install vagrant percise32's box

我将尝试此命令:

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 box add hashicorp/precise32 https://atlas.hashicorp.com/hashicorp/boxes/precise32/versions/1.0.0/providers/virtualbox.box

希望对您有所帮助

这是完整有效的语法,您只是拼错了名字

vagrant init hashicorp/precise32 && vagrant up 

注意 precise32 与 percise32

vagrant init hashicorp/precise32 用盒子的名字创建一个 vagrantfile。当你从这个 Vagrantfile 中 运行 vagrant up 时,vagrant 将从文件中引用的框创建 VM,如果找不到它,它将下载框