在远程目录中找不到或无法访问 Vagrant box - 不兼容的 curl 版本
Vagrant box could not be found or could not be accessed in the remote catalog - incompatible curl version
我刚刚下载了 Vagrant 并进行了设置并安装了 virtual box。我只是无法开始我的项目(流浪者)。我有一个 vagrant 文件等等。我能做什么?
$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'scotch/box' could not be found. Attempting to find and install
...
default: Box Provider: virtualbox
default: Box Version: >= 0
The box 'scotch/box' 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/scotch/box"]
似乎有一个带有 vagrant 1.8.7 和嵌入式 curl 版本的 issue 与 mac os 二进制文件(默认情况下在 mac os Sierra 和其他人) - 删除嵌入的
sudo rm /opt/vagrant/embedded/bin/curl
注意:当你添加一个 vagrant box(远程或本地)时,你还需要删除嵌入的 curl
所以如果你在 运行 vagrant box add ....
时遇到相同的错误只需删除来自 vagrant 的卷曲,它将起作用
Sierra 也有类似的问题(安装额外的 brew - 这当然会产生影响)。
上面的 sudo rm /opt/vagrant/embedded/bin/curl 没有工作仍然得到:SSLRead() return 错误 -36。
尝试了 http://slick.pl/kb/software/vagrant-fix-for-error-60-ssl-read/
的建议
任何情况:
cd ~
cd .vagrant.d/tmp/
rm -rf ~/.vagrant.d/tmp/
vagrant box add --insecure laravel/homestead
安装成功。
只是想更新这个 post。我 运行 进入这个错误 运行 macOS Sierra 和一个新的 Vag运行t 1.8.7 安装并注意到 Vag运行t 刚刚更新。从 Vag运行t 1.9.0 开始,此错误似乎已得到修复。
我刚刚遇到这个错误。
在我的例子中,我通过 apt-get 安装了 vagrant,它安装了 1.7.x..
我去掉了1.7.x直接安装了2.0.3https://www.vagrantup.com/downloads.html
我在 MacOS Mojave 和 Vagrant 版本 1.9.3 上遇到了同样的问题,当我尝试使用这个盒子时: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
我更新到 Vagrant 2.2.5,它按预期工作:
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'!
您应该尝试将 Vagrant 更新到最新版本:
sudo add-apt-repository ppa:tiagohillebrandt/vagrant
sudo apt update
这将为您的实际 ubuntu 版本添加一个存储库。如果您使用的是 20.10 (groovy),请将 groovy 替换为 focal 并再次调用 sudo apt update
。
然后再安装vagrant:
sudo apt install vagrant
并更新所有插件:
vagrant plugin update
我刚刚下载了 Vagrant 并进行了设置并安装了 virtual box。我只是无法开始我的项目(流浪者)。我有一个 vagrant 文件等等。我能做什么?
$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'scotch/box' could not be found. Attempting to find and install
...
default: Box Provider: virtualbox
default: Box Version: >= 0
The box 'scotch/box' 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/scotch/box"]
似乎有一个带有 vagrant 1.8.7 和嵌入式 curl 版本的 issue 与 mac os 二进制文件(默认情况下在 mac os Sierra 和其他人) - 删除嵌入的
sudo rm /opt/vagrant/embedded/bin/curl
注意:当你添加一个 vagrant box(远程或本地)时,你还需要删除嵌入的 curl
所以如果你在 运行 vagrant box add ....
时遇到相同的错误只需删除来自 vagrant 的卷曲,它将起作用
Sierra 也有类似的问题(安装额外的 brew - 这当然会产生影响)。
上面的 sudo rm /opt/vagrant/embedded/bin/curl 没有工作仍然得到:SSLRead() return 错误 -36。
尝试了 http://slick.pl/kb/software/vagrant-fix-for-error-60-ssl-read/
的建议任何情况:
cd ~
cd .vagrant.d/tmp/
rm -rf ~/.vagrant.d/tmp/
vagrant box add --insecure laravel/homestead
安装成功。
只是想更新这个 post。我 运行 进入这个错误 运行 macOS Sierra 和一个新的 Vag运行t 1.8.7 安装并注意到 Vag运行t 刚刚更新。从 Vag运行t 1.9.0 开始,此错误似乎已得到修复。
我刚刚遇到这个错误。 在我的例子中,我通过 apt-get 安装了 vagrant,它安装了 1.7.x..
我去掉了1.7.x直接安装了2.0.3https://www.vagrantup.com/downloads.html
我在 MacOS Mojave 和 Vagrant 版本 1.9.3 上遇到了同样的问题,当我尝试使用这个盒子时: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
我更新到 Vagrant 2.2.5,它按预期工作:
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'!
您应该尝试将 Vagrant 更新到最新版本:
sudo add-apt-repository ppa:tiagohillebrandt/vagrant
sudo apt update
这将为您的实际 ubuntu 版本添加一个存储库。如果您使用的是 20.10 (groovy),请将 groovy 替换为 focal 并再次调用 sudo apt update
。
然后再安装vagrant:
sudo apt install vagrant
并更新所有插件:
vagrant plugin update