Error installing Virtualbox 5.1.10 on macOS Sierra, “The installation failed”

↘锁芯ラ 提交于 2019-12-12 20:23:59

问题


I just got one of those new, shiny MacBook Pros and I'm setting up my dev environment. I downloaded Virtualbox 5.1.10 from the website and installed it and got an error "The installation failed."

Looking at the logs:

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.'.

Information on the Virtualbox servers is pretty sparse. I tried installing via brew but got an error as well.

Does anyone have tricks they can share about successfully installing Virtualbox on Sierra?


回答1:


After the failed installation attempt of Virtualbox 5.1.10 r112026 (Qt5.6.2) on macOS Sierra 10.12.1, running the uninstall script and restarting and then downloading and reinstalling Virtualbox worked for me.

I hope this helps someone else out.



来源:https://stackoverflow.com/questions/40849076/error-installing-virtualbox-5-1-10-on-macos-sierra-the-installation-failed

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!