Vagrant box could not be found or could not be accessed in the remote catalog - incompatible curl version

后端 未结 5 1459
花落未央
花落未央 2020-11-27 02:52

I just downloaded Vagrant and did the settings as well as install virtual box. I just can\'t start my project (vagrant up). I have a vagrant file and so on. What can I do?

5条回答
  •  半阙折子戏
    2020-11-27 03:04

    I had this same problem on MacOS Mojave, and Vagrant version 1.9.3, when trying to use the box: centos/7.

    $ vagrant up
    Bringing machine 'default' up with 'virtualbox' provider...
    ==> default: Box 'centos/7' could not be found. Attempting to find and install...
        default: Box Provider: virtualbox
        default: Box Version: >= 0
    The box 'centos/7' 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/centos/7"]
    Error: The requested URL returned error: 404 Not Found
    

    I updated to Vagrant 2.2.5 and it worked as expected:

    Bringing machine 'default' up with 'virtualbox' provider...
    ==> default: Box 'centos/7' could not be found. Attempting to find and install...
        default: Box Provider: virtualbox
        default: Box Version: >= 0
    ==> default: Loading metadata for box 'centos/7'
        default: URL: https://vagrantcloud.com/centos/7
    ==> default: Adding box 'centos/7' (v1902.01) for provider: virtualbox
        default: Downloading: https://vagrantcloud.com/centos/boxes/7/versions/1902.01/providers/virtualbox.box
        default: Download redirected to host: cloud.centos.org
    ==> default: Successfully added box 'centos/7' (v1902.01) for 'virtualbox'!
    

提交回复
热议问题