本文由macos教程栏目为大家介绍macos brew cask安装virtualbox遇到的问题,希望能够帮助到有需要的小伙伴。
macos brew cask安装virtualbox遇到的问题
问题一:cask ‘virtualbox’ is already installed.
如果不是通过homebrew安装的virtualbox,在使用brew cask install virtualbox安装virtualbox的的时候,会提示:
warning: cask 'virtualbox' is already installed.
那么就需要重新安装virtualbox,命令:
brew cask reinstall virtualbox
如果还不巧,你的virtualbox刚好在运行中,又会提示:
failed to unload org.virtualbox.kext.vboxdrv - (libkern/kext) kext is in use or retained (cannot unload).
那么,就需要网上拉日志,找到:
warning! found the following active virtualbox processes:
这些是运行中的虚拟主机列表,其中第一列是它们的 id,用kill命令关闭服务,如:
kill 234
然后再重新安装:
brew cask reinstall virtualbox
问题二:error: failure while executing;
安装virtualbox的最后一步会要求输入电脑的登陆密码,不过在你输入密码后,可能还是会提示错误,这是因为权限的问题,主要信息如下:
~ brew cask reinstall virtualbox ==> caveats to install and/or use virtualbox you may need to enable its kernel extension in: system preferences → security & privacy → general ... ==> running installer for virtualbox; your password may be necessary. ==> package installers may write to any location; options such as --appdir are ignored. 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.) ==> purging files for version 6.0.10,132072 of cask virtualbox 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: 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.) follow the instructions here: https://github.com/homebrew/homebrew-cask#reporting-bugs /usr/local/homebrew/library/homebrew/system_command.rb:111:in `assert_success' ...
以上就是macos安装virtualbox的问题小结的详细内容,更多请关注代码网其它相关文章!
发表评论