Recently had an issue with installing Virtual Box via Brew, here's the fix…
brew cask install virtualbox
First Homebrew will update, then it'll download VB and go to install. What you might miss is this:
So, if you're getting an error like:
Error: Failure while executing; `/usr/bin/sudo -E -- env LOGNAME=s10wen USER=s10wen USERNAME=s10wen /usr/sbin/installer -pkg /usr/local/Caskroom/virtualbox/5.2.18,124319/VirtualBox.pkg -target /` exited with 1.
Try going to
System Preferences → Security & Privacy → General. Then click 'Allow' for the Oracle and application and try running again.
Hope that helps!
Like this post? Hire Me!