Home  >  Article  >  Operation and Maintenance  >  Summary of problems installing VirtualBox on MacOS

Summary of problems installing VirtualBox on MacOS

藏色散人
藏色散人forward
2021-12-31 15:07:563503browse

This article is introduced by the macos tutorial column to introduce the problems encountered when installing VirtualBox with MacOS brew cask. I hope it can help friends in need.

Problems encountered when installing VirtualBox with MacOS brew cask

Problem 1: Cask 'virtualbox' is already installed.

If virtualbox is not installed through Homebrew, when you use brew cask install virtualbox to install virtualbox, you will be prompted:

Warning: Cask 'virtualbox' is already installed.

Then you need to reinstall virtualbox, command:

brew cask reinstall virtualbox

If this is not the case , your virtualbox happens to be running, and it will prompt:

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

Then, you need to pull the log online and find:

Warning! Found the following active VirtualBox processes:

These are the list of running virtual hosts, the first column of which is their ID, use the kill command to shut down the service, such as:

kill 234

Then reinstall:

brew cask reinstall virtualbox

Question 2: Error: Failure while executing;

The last step of installing virtualbox will ask you to enter the computer login password. However, after you enter the password, you may still be prompted with an error. This is because of permission issues. The main information is as follows:

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

The above is the detailed content of Summary of problems installing VirtualBox on MacOS. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:awaimai.com. If there is any infringement, please contact admin@php.cn delete