gpt4 book ai didi

linux - Linux 上的 Vagrant Up 错误

转载 作者:IT王子 更新时间:2023-10-29 00:18:04 24 4
gpt4 key购买 nike

我尝试在我的 Ubuntu 14.04 上运行 vagrant。因此,我执行了以下步骤:

-安装vagrant-安装虚拟机-为提供者添加框

然后我运行

vagrant up

命令。

运行命令后,我获取了这些输出,然后出现一条错误消息,我无法弄清楚如何解决并正确运行它。

Bringing machine 'default' up with 'virtualbox' provider...

==> default: Checking if box 'udacity/ud381' is up to date...

==> default: Clearing any previously set forwarded ports...

==> default: Clearing any previously set network interfaces...

==> default: Preparing network interfaces based on configuration...

default: Adapter 1: nat

==> default: Forwarding ports...

default: 5000 (guest) => 5000 (host) (adapter 1)

default: 22 (guest) => 2222 (host) (adapter 1)

==> default: Booting VM... There was an error while executing VBoxManage, a CLI used by Vagrant for controlling VirtualBox. The command and stderr is shown below.

Command: ["startvm", "0399f946-6a87-4310-a22d-c1a4525ae2f0", "--type", "headless"]

Stderr: VBoxManage: error: The virtual machine 'ud381_default_1463617458900_49294' has terminated unexpectedly during startup with exit code 1 (0x1) VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component MachineWrap, interface IMachine

我应该怎么做才能修复这些错误?

最佳答案

在 Ubuntu 16.04 上确保卸载任何以前版本的 virtualbox:

sudo apt-get purge virtualbox virtualbox-dkms virtualbox

从 virtualbox.org 下载的重新安装 virtualbox

sudo dpkg -i Downloads/virtualbox-5.1_5.1.22-115126-Ubuntu-xenial_amd64.deb

这为我修复了错误。

关于linux - Linux 上的 Vagrant Up 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37312334/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com