MacOS安装VirtualBox的问题小结

 4364

本文为大家介绍MacOS brew cask安装VirtualBox遇到的问题,希望能够帮助到有需要的小伙伴。

MacOS brew cask安装VirtualBox遇到的问题


问题一:Cask ‘virtualbox’ is already installed.

如果不是通过Homebrew安装的virtualbox,在使用brew cask install virtualbox安装virtualbox的的时候,会提示:

  1. Warning: Cask 'virtualbox' is already installed.

那么就需要重新安装virtualbox,命令:

  1. brew cask reinstall virtualbox

如果还不巧,你的virtualbox刚好在运行中,又会提示:

  1. Failed to unload org.virtualbox.kext.VBoxDrv - (libkern/kext) kext is in use or retained (cannot unload).

那么,就需要网上拉日志,找到:

  1. Warning! Found the following active VirtualBox processes:

这些是运行中的虚拟主机列表,其中第一列是它们的 ID,用kill命令关闭服务,如:

  1. kill 234

然后再重新安装:

  1. brew cask reinstall virtualbox


问题二:Error: Failure while executing;

安装virtualbox的最后一步会要求输入电脑的登陆密码,不过在你输入密码后,可能还是会提示错误,这是因为权限的问题,主要信息如下:

  1. ~ brew cask reinstall virtualbox
  2.  ==> Caveats
  3.  To install and/or use virtualbox you may need to enable its kernel extension in:
  4.    System Preferences → Security & Privacy → General
  5. ...
  6.  ==> Running installer for virtualbox; your password may be necessary.
  7.  ==> Package installers may write to any location; options such as --appdir are ignored.
  8.  installer: Package name is Oracle VM VirtualBox
  9.  installer: Installing at base path /
  10.  installer: The install failed (The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.)
  11.  ==> Purging files for version 6.0.10,132072 of Cask virtualbox
  12.  Error: Failure while executing; `/usr/bin/sudo -E -- env LOGNAME=gary USER=gary USERNAME=gary /usr/sbin/installer -pkg /usr/local/Caskroom/virtualbox/6.0.10,132072/VirtualBox.pkg -target /` exited with 1. Here's the output:
  13.  installer: Package name is Oracle VM VirtualBox
  14.  installer: Installing at base path /
  15.  installer: The install failed (The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.)
  16.  Follow the instructions here:
  17.    https://github.com/Homebrew/homebrew-cask#reporting-bugs
  18.  /usr/local/Homebrew/Library/Homebrew/system_command.rb:111:in `assert_success'
  19. ...


TAG标签:
本文网址:https://www.zztuku.com/detail-10640.html
站长图库 - MacOS安装VirtualBox的问题小结
申明:本文转载于《awaimai》,如有侵犯,请 联系我们 删除。

评论(0)条

您还没有登录,请 登录 后发表评论!

提示:请勿发布广告垃圾评论,否则封号处理!!

    编辑推荐