我正在尝试使用 Bento/ubuntu-18.04 版本 201803.24.0 启动 VM。我在运行 Sierra 版本 10.12.4、Vagrant 2.1.1 的 Mac 上。
up 失败:
Package linux-headers-4.15.0-12-generic is not available, but is
referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'linux-headers-4.15.0-12-generic' has no installation candidate
==> web: Checking for guest additions in VM...
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!
apt-get install -y linux-headers-`uname -r` dkms
Stdout from the command:
Reading package lists...
Building dependency tree...
Reading state information...
Package linux-headers-4.15.0-12-generic is not available, but is
referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
Stderr from the command:
E: Package 'linux-headers-4.15.0-12-generic' has no installation candidate
从谷歌搜索我认为这可能与我的 GuestAdditions 版本有关。在 up 期间,我看到此消息:
GuestAdditions versions on your host (5.2.12) and guest (5.2.6) do not match.
我运行了'vagrant plugin install vagrant-vbguest',它输出:
Installing the 'vagrant-vbguest' plugin. This can take a few minutes...
Installed the plugin 'vagrant-vbguest (0.15.1)'!
但是我仍然收到相同的错误消息。
任何人都知道我的问题是什么以及如何解决它?