ホームページ  >  記事  >  運用・保守  >  MacOS に VirtualBox をインストールする際の問題の概要

MacOS に VirtualBox をインストールする際の問題の概要

藏色散人
藏色散人転載
2021-12-31 15:07:563290ブラウズ

この記事は、macos チュートリアル コラムで、MacOS brew Cask で VirtualBox をインストールする際に発生する問題を紹介するもので、困っている友人の助けになれば幸いです。

MacOS brew Cask を使用して VirtualBox をインストールするときに発生した問題

問題 1: Cask 'virtualbox' はすでにインストールされています。

virtualbox が Homebrew 経由でインストールされていない場合、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

質問 2: エラー: エラーが発生しました。実行中;

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 をインストールする際の問題の概要の詳細内容です。詳細については、PHP 中国語 Web サイトの他の関連記事を参照してください。

声明:
この記事はawaimai.comで複製されています。侵害がある場合は、admin@php.cn までご連絡ください。