Vagrant 在macOS Sierra上安装Virtualbox 5.1.10时出错;“安装失败”;

Vagrant 在macOS Sierra上安装Virtualbox 5.1.10时出错;“安装失败”;,vagrant,virtualbox,macos-sierra,Vagrant,Virtualbox,Macos Sierra,我刚买了一台全新的MacBook Pros,我正在设置我的开发环境。我从网站上下载了Virtualbox 5.1.10并安装了它,但出现了一个错误“安装失败” 查看日志: Nov 28 10:41:51 Zacks-MBP installd[312]: PackageKit: Install Failed: Error Domain=PKInstallErrorDomain Code=112 "An error occurred while running scripts from the pa

我刚买了一台全新的MacBook Pros,我正在设置我的开发环境。我从网站上下载了Virtualbox 5.1.10并安装了它,但出现了一个错误“安装失败”

查看日志:

Nov 28 10:41:51 Zacks-MBP installd[312]: PackageKit: Install Failed: Error Domain=PKInstallErrorDomain Code=112 "An error occurred while running scripts from the package “VirtualBox.pkg”." UserInfo={NSFilePath=./postflight, NSURL=file://localhost/Volumes/VirtualBox/VirtualBox.pkg#VBoxKEXTs.pkg, PKInstallPackageIdentifier=org.virtualbox.pkg.vboxkexts, NSLocalizedDescription=An error occurred while running scripts from the package “VirtualBox.pkg”.} {
        NSFilePath = "./postflight";
        NSLocalizedDescription = "An error occurred while running scripts from the package \U201cVirtualBox.pkg\U201d.";
        NSURL = "file://localhost/Volumes/VirtualBox/VirtualBox.pkg#VBoxKEXTs.pkg";
        PKInstallPackageIdentifier = "org.virtualbox.pkg.vboxkexts";
    }
Nov 28 10:41:51 Zacks-MBP installd[312]: PackageKit: Running idle tasks
Nov 28 10:41:51 Zacks-MBP installd[312]: PackageKit: Done with sandbox removals
Nov 28 10:41:52 Zacks-MBP Installer[87983]: install:didFailWithError:Error Domain=PKInstallErrorDomain Code=112 "An error occurred while running scripts from the package “VirtualBox.pkg”." UserInfo={NSFilePath=./postflight, NSURL=file://localhost/Volumes/VirtualBox/VirtualBox.pkg#VBoxKEXTs.pkg, PKInstallPackageIdentifier=org.virtualbox.pkg.vboxkexts, NSLocalizedDescription=An error occurred while running scripts from the package “VirtualBox.pkg”.}
Nov 28 10:41:52 Zacks-MBP installd[312]: PackageKit: Removing client PKInstallDaemonClient pid=87983, uid=501 (/System/Library/CoreServices/Installer.app/Contents/MacOS/Installer)
Nov 28 10:41:52 Zacks-MBP Installer[87983]: Install failed: The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.
Nov 28 10:41:52 Zacks-MBP Installer[87983]: IFDInstallController 1EF50 state = 8
Nov 28 10:41:52 Zacks-MBP Installer[87983]: Displaying 'Install Failed' UI.
Nov 28 10:41:52 Zacks-MBP Installer[87983]: 'Install Failed' UI displayed message:'The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.'.
关于Virtualbox服务器的信息非常稀少。我尝试通过
brew
安装,但也出现了一个错误


有没有人可以分享在Sierra上成功安装Virtualbox的诀窍?

在macOS Sierra 10.12.1上尝试安装Virtualbox 5.1.10 r112026(Qt5.6.2)失败后,运行卸载脚本并重新启动,然后下载并重新安装Virtualbox对我来说很有效


我希望这对其他人有所帮助。

刚刚在macos sierra 10.12.1上安装了5.1.10 r112026版(Qt5.6.2),没有问题-日志控制台中还有其他内容吗?我还在尝试在10.12.1上安装该版本。这台机器上几乎没有安装任何东西,所以我怀疑它与任何东西相冲突。这是完整的错误日志-我会这样做:1。对virtualbox也运行卸载;2.重新启动-如果它不工作3。检查根目录下是否有mach_内核文件,如果有,请删除Hanks Frederic。如何检查是否有
match\u内核
文件?