проблема с vagrant с помощью bento / ubuntu-18.04 на Mac - PullRequest
0 голосов
/ 29 мая 2018

Я пытаюсь создать виртуальную машину с помощью bento / ubuntu-18.04, версия 201803.24.0.Я работаю на Mac под управлением Sierra версии 10.12.4, Vagrant 2.1.1.

Сбой при загрузке:

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

Из-за поиска в Google, я думаю, это может быть связано с моими версиями GuestAdditions.Во время запуска я вижу это сообщение:

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)'!

Но я все еще получил ту же ошибку с теми же сообщениями.

Кто-нибудь знает, в чем заключается моя проблема и как ее исправить?

...