MacのHomebrewでVirtualBoxがアンインストールできないときの対応

ヨメレバCSS
オリジナルCSS

 ちょっとvagrantとvirtualboxを再インストールしてみるために一旦アンインストールしようとしたらできなかったのでメモ

brew cask uninstall virtualboxで失敗

$ brew cask uninstall virtualbox

を実行してみても、次のエラーが出て失敗してしまいました。

unloading org.virtualbox.kext.VBoxDrv
(kernel) Can't remove kext org.virtualbox.kext.VBoxDrv; services failed to terminate - 0xe00002c7.
Failed to unload org.virtualbox.kext.VBoxDrv - (iokit/common) unsupported function.
An error occurred durning 'sudo /sbin/kextunload -m org.virtualbox.kext.VBoxDrv', there should be a message above. (rc=3)
Failed to unload one or more KEXTs, please reboot the machine to complete the uninstall.
Error: Failure while executing; `/usr/bin/sudo -E -- /usr/local/Caskroom/virtualbox/6.0.8,130520/VirtualBox_Uninstall.tool --unattended` exited with 1. Here's the output:

VirtualBoxのプロセスが生きていたみたい

 で、いろいろ調べているとこちらの記事で「VirtualBox関連のプロセスで動き続けているものが残っていたため、アップデートできなかった模様」とあったので、アクティビティモニタでプロセスを見てみると「VBoxHeadless」が動いていました。

 これを強制終了させてからuninstall してみると無事アンインストールできました。

スポンサーリンク
GoogleAdSence レクタングル(大)

シェアする

スポンサーリンク
GoogleAdSence レクタングル(大)