【问题标题】:Unable to run Vagrant on Ubuntu 16.04无法在 Ubuntu 16.04 上运行 Vagrant
【发布时间】:2017-07-27 23:30:41
【问题描述】:

我刚刚安装了 Vagrant 和 Virtualbox,但无法运行 Vagrant。运行“vagrant up”时出现以下错误:

roosterlegs@roosterlegs-Lenovo-Y50-70:~/vagrant_proj$ vagrant up
VirtualBox is complaining that the installation is incomplete. Please
run `VBoxManage --version` to see the error message which should contain
instructions on how to fix this error.

然后当我运行“VBoxManage --version”时,我得到:

roosterlegs@roosterlegs-Lenovo-Y50-70:~/vagrant_proj$ VBoxManage --version
WARNING: The character device /dev/vboxdrv does not exist.
     Please install the virtualbox-dkms package and the appropriate
     headers, most likely linux-headers-generic.

     You will not be able to start VMs until this problem is fixed.
5.0.18_Ubuntur106667

我尝试了多种解决方案,例如此处的说明: How to correct virtualbox installation,但似乎没有任何效果。

请帮忙。

【问题讨论】:

  • 您确定安装了linux-headers-genericvirtualbox-ose-dkms
  • 我相信我有linux-headers-generic,但是当我尝试安装另一个时,我得到一个错误:E: Unable to locate package virtualbox-ose-dkms
  • 但是我确实安装成功了virtualbox-dkms
  • 运行dpkg --get-selections | grep linux-headers-generic如果没有安装包运行sudo apt-get update && sudo apt-get install linux-headers-generic
  • 我已经安装了这些。当我尝试运行 vagrant up 时仍然出现相同的错误。

标签: vagrant virtualbox ubuntu-16.04


【解决方案1】:

对于同样遇到此问题的其他人,请禁用安全启动。对我有用。

【讨论】:

    【解决方案2】:

    重新安装virtualbox-dkms(通过aptitude reinstall virtualbox-dkms)对我有用。它强制重建模块等等,现在我的虚拟机再次启动 =)

    希望对你有帮助

    【讨论】:

      猜你喜欢
      • 2016-10-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-11-05
      • 1970-01-01
      • 2017-07-02
      • 1970-01-01
      相关资源
      最近更新 更多