设置流浪汉时出错

时间:2016-04-18 19:23:25

标签: vagrant virtualbox

我正在尝试设置流浪汉,当我做流浪汉时,我得到以下错误。我之前从未遇到过此错误。但是当我今天尝试时,我收到了错误。

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

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

有没有让流浪汉不检查这个?

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

1 个答案:

答案 0 :(得分:3)

只需安装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