【问题标题】:mac - can't install virtualbox with error "the installer encountered an error that caused the installation to fail"mac - 无法安装 virtualbox 并出现错误“安装程序遇到导致安装失败的错误”
【发布时间】:2022-01-04 05:11:16
【问题描述】:

在我的 macbook 上安装 virtualbox 6.0.24 时,macOS Monterey,版本 12.1 (21C52)

我收到了错误

The installer encountered an error that caused the installation to fail

关注post,我得到了日志:

Jan  4 16:05:02 192-168-1-100 Installer[3349]: Could not load resource readme: (null)
Jan  4 16:05:02 192-168-1-100 Installer[3349]: Could not load resource license: (null)
Jan  4 16:05:14 192-168-1-100 installd[1220]: PackageKit: ----- Begin install -----
Jan  4 16:05:18 192-168-1-100 installd[1220]: PackageKit: PKInformSystemPolicyInstallOperation failed with error:An error occurred while registering installation with Gatekeeper.
Jan  4 16:05:21 192-168-1-100 installd[1220]: PackageKit: Install Failed: Error Domain=PKInstallErrorDomain Code=112 "An error occurred while running scripts from the package “VirtualBox.pkg”." UserInfo={NSFilePath=./postflight, NSURL=file:///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:///Volumes/VirtualBox/VirtualBox.pkg#VBoxKEXTs.pkg";
            PKInstallPackageIdentifier = "org.virtualbox.pkg.vboxkexts";
        }
Jan  4 16:05:22 192-168-1-100 Installer[3349]: Install failed: The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.
Jan  4 16:05:22 192-168-1-100 Installer[3349]: Displaying 'Install Failed' UI.
Jan  4 16:05:22 192-168-1-100 Installer[3349]: 'Install Failed' UI displayed message:'The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.'.

我也关注这个post添加Oracle开发者

spctl kext-consent disable
spctl kext-consent add VB5E2TV963
spctl kext-consent enable 
reboot

我也尝试禁用网守

sudo spctl --master-disable

但没有解决办法。

【问题讨论】:

    标签: vagrant virtualbox macos-monterey


    【解决方案1】:

    最后我通过 brew 成功安装了它

    brew install --cask virtualbox
    

    参考:https://formulae.brew.sh/cask/virtualbox

    如果它不是我遇到的问题的直接解决方案,但只是工作。如果你在谷歌搜索错误和修复时尝试了其他解决方案,但仍然无法解决问题,请尝试这种方式。

    【讨论】:

      猜你喜欢
      • 2021-07-31
      • 2019-07-06
      • 2017-08-28
      • 1970-01-01
      • 2021-11-08
      • 1970-01-01
      • 1970-01-01
      • 2016-11-08
      • 1970-01-01
      相关资源
      最近更新 更多