-1

Steps to reproduce

 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
  • install Virtualbox BETA
brew install --cask virtualbox-beta
  • attempt to install virtualbox-extension-pack BETA
brew install --cask virtualbox-extension-pack-beta
  • observe the error
 ==> Installing Cask virtualbox-extension-pack-beta
Password:
0%...NS_ERROR_FAILURE
VBoxManage: error: Failed to install "/opt/homebrew/Caskroom/virtualbox-extension-pack-beta/6.1.0_BETA2,134221/Oracle_VM_VirtualBox_Extension_Pack-6.1.0_BETA2-134221.vbox-extpack"
VBoxManage: error: The installer failed with exit code 1: VBoxExtPackHelperApp: error: Failed to set directory permissions on '/Applications/VirtualBox.app/Contents/MacOS/ExtensionPacks': VERR_FILE_NOT_FOUND
VBoxManage: error: rcExit=1
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component ExtPackManagerWrap, interface IExtPackManager
VBoxManage: error: Context: "RTEXITCODE handleExtPack(HandlerArg *)" at line 1904 of file VBoxManageMisc.cpp
==> Purging files for version 6.1.0_BETA2,134221 of Cask virtualbox-extension-pack-beta
Error: Failure while executing; `/usr/bin/sudo -E -- /usr/local/bin/VBoxManage extpack install --replace /opt/homebrew/Caskroom/virtualbox-extension-pack-beta/6.1.0_BETA2,134221/Oracle_VM_VirtualBox_Extension_Pack-6.1.0_BETA2-134221.vbox-extpack` exited with 1. Here's the output:
0%...NS_ERROR_FAILURE
VBoxManage: error: Failed to install "/opt/homebrew/Caskroom/virtualbox-extension-pack-beta/6.1.0_BETA2,134221/Oracle_VM_VirtualBox_Extension_Pack-6.1.0_BETA2-134221.vbox-extpack"
VBoxManage: error: The installer failed with exit code 1: VBoxExtPackHelperApp: error: Failed to set directory permissions on '/Applications/VirtualBox.app/Contents/MacOS/ExtensionPacks': VERR_FILE_NOT_FOUND
VBoxManage: error: rcExit=1
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component ExtPackManagerWrap, interface IExtPackManager
VBoxManage: error: Context: "RTEXITCODE handleExtPack(HandlerArg *)" at line 1904 of file VBoxManageMisc.cpp
VirtualBox Extension Pack Personal Use and Evaluation License (PUEL)
[...]
Do you agree to these license terms and conditions (y/n)?
License accepted. For batch installation add
--accept-license={{LICENSE}}
to the VBoxManage command line.
0

1 Answer 1

1

VBoxManage: error: The installer failed with exit code 1: VBoxExtPackHelperApp: error: Failed to set directory permissions on '/Applications/VirtualBox.app/Contents/MacOS/ExtensionPacks': VERR_FILE_NOT_FOUND

It looks like the terminal application you used doesn't have permissions to create folders.

Depends on what terminal app you use. To me, I am using iTerm 2. So you can checkout the official guideline to give full disk access to iTerm 2.

Afterward, I can install virtualbox-extension-pack without problem.

Give Full Disk Access to iTerm

1

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .