设置 vagrant 时出错

error while setting up vagrant

我正在尝试设置 vagrant,但当我执行 vagrant up 时,出现以下错误。我以前从未遇到过这个错误。但是当我今天尝试时,我收到了错误。

GuestAdditions versions on your host (5.0.17) and guest (5.0.16) do not match.

Examining /etc/kernel/header_postinst.d.
run-parts: executing /etc/kernel/header_postinst.d/dkms 4.2.0-34-generic /boot/vmlinuz-4.2.0-34-generic
Downloading VirtualBox Guest Additions ISO from http://download.virtualbox.org/virtualbox/5.0.17/VBoxGuestAdditions_5.0.17.iso
==> default: Checking for guest additions in VM...
An error occurred while downloading the remote file. The error message, if any, is reproduced below. Please fix this error and try again.

The requested URL returned error: 404 Not Found

我相信这是因为 url 以下无法访问: http://download.virtualbox.org/virtualbox/5.0.17/VBoxGuestAdditions_5.0.17.iso

有没有办法让流浪者不检查这个?

但是我不知道如何解决这个问题。任何帮助都会很有帮助。

只需安装 vagrant vbguest plugin,它将为您管理所有这些,包括下载正确版本和安装

$ vagrant plugin install vagrant-vbguest
$ vagrant up

如果您不希望插件进行更新,请在 Vagrantfile

中添加
  # set auto_update to false, if you do NOT want to check the correct 
  # additions version when booting this machine
  config.vbguest.auto_update = false

如您所见,5.0.17 不会从 http://download.virtualbox.org/virtualbox/ 中退出,因此您可以尝试升级到可用下载中存在的 5.0.18