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

Summary of problems installing VirtualBox on MacOS

藏色散人
Release: 2021-12-31 15:07:56
forward
3562 people have browsed it

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.
Copy after login

Then you need to reinstall virtualbox, command:

brew cask reinstall virtualbox
Copy after login
Copy after login

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).
Copy after login

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

Warning! Found the following active VirtualBox processes:
Copy after login

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
Copy after login

Then reinstall:

brew cask reinstall virtualbox
Copy after login
Copy after login

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'
...
Copy after login

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!

Related labels:
source:awaimai.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template