Virtualbox未在High Sierra上安装[关闭]


85

通过安装Virtualbox时brew cask install virtualbox出现以下错误:

==> Satisfying dependencies
==> Downloading http://download.virtualbox.org/virtualbox/5.1.28/VirtualBox-5.1.28-117968-OSX.dmg
Already downloaded: /Users/romanderlemenko/Library/Caches/Homebrew/Cask/virtualbox--5.1.28-117968.dmg
==> Verifying checksum for Cask virtualbox
==> Installing Cask virtualbox
==> Running installer for virtualbox; your password may be necessary.
==> Package installers may write to any location; options such as --appdir are ignored.
Password:
==> installer: Package name is Oracle VM VirtualBox
==> installer: Installing at base path /
==> installer: The install failed (The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.)
Error: Command failed to execute!

==> Failed command:
/usr/bin/sudo -E -- /usr/sbin/installer -pkg /usr/local/Caskroom/virtualbox/5.1.28-117968/VirtualBox.pkg -target /

==> Standard Output of failed command:
installer: Package name is Oracle VM VirtualBox
installer: Installing at base path /
installer: The install failed (The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.)


==> Standard Error of failed command:


==> Exit status of failed command:
#<Process::Status: pid 3578 exit 1>

通过.dmg软件包安装时,安装程​​序只会说安装失败 在此处输入图片说明

在这两种情况下,我最终都会安装Virtualbox。但是,当我使用以下内容启动我的Vagrant框时vagrant up,我得到的是:

There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.

Command: ["startvm", "dda26a7b-cc0e-440c-b0db-9b3d3bac5925", "--type", "headless"]

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

这可能是因为High Sierra的新文件系统吗?


2
也许应该将其移动/复制到AskDifferent吗?
jeffbyrnes

1
我想说这是一个有关计算机软件的特定问题,是使用kubernetes的必要工具。
塞巴斯蒂安'18

由于此问题已锁定,请检查此AskDifferent问题以获取答案:apple.stackexchange.com/a/337655/55689
RoelF

Answers:


210

我有同样的问题。这是Mac OS的问题。转到系统偏好设置/安全和隐私。有允许Oracle安装软件。之后,重试安装虚拟盒。它为我工作。祝好运!

编辑:开始安装,但是在允许您选择安装位置的位置停止。然后转到“设置”中的“安全性”,然后单击“允许”。–贾斯汀·斯坦利

在此处输入图片说明


4
不为我工作。
Neela

8
花了大约五次尝试...但是终于成功了。
汤姆·阿兰达

23
我终于可以通过执行以下操作进行安装:开始安装,但停止在该位置,以便您选择安装位置。然后转到“设置”中的“安全性”,然后单击“允许”。
贾斯汀·斯坦利

14
对我有用的唯一选项:安装安装程序,运行VirtualBox.pkg。当您到达具有安装按钮的屏幕并为您选择“更改安装位置...”时,请勿按任何按钮!现在打开系统偏好设置->安全和隐私->常规。按下窗格底部的解锁按钮,然后输入密码。现在,向窗格中间按下“允许”按钮。返回安装,然后继续安装。现在赢利。
njtman

11
我尝试了以上所有方法,然后意识到即使安装程序报告失败,VirtualBox仍已安装且可以正常工作。
Alexandru Pele
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.