Skip to content

Instantly share code, notes, and snippets.

@brylor
Created April 10, 2018 22:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brylor/987f5cf53b513fdef8cf330469b48439 to your computer and use it in GitHub Desktop.
Save brylor/987f5cf53b513fdef8cf330469b48439 to your computer and use it in GitHub Desktop.
* homebrew_cask[virtualbox] action install
================================================================================
Error executing action `install` on resource 'homebrew_cask[virtualbox]'
================================================================================
Mixlib::ShellOut::ShellCommandFailed
------------------------------------
Expected process to exit with [0], but received '1'
---- Begin output of /usr/local/bin/brew cask install virtualbox ----
STDOUT: ==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
==> Updated Formulae
sox
==> Caveats
To install and/or use virtualbox you may need to enable their kernel extension in
System Preferences → Security & Privacy → General
For more information refer to vendor documentation or the Apple Technical Note:
https://developer.apple.com/library/content/technotes/tn2459/_index.html
==> Satisfying dependencies
==> Downloading https://download.virtualbox.org/virtualbox/5.2.8/VirtualBox-5.2.8-121009-OSX.dmg
==> Verifying checksum for Cask virtualbox
==> Installing Cask virtualbox
==> Running installer for virtualbox; your password may be necessary.
==> Package installers may write to any location; options such as --appdir are ignored.
==> sudo: no tty present and no askpass program specified
==> Purging files for version 5.2.8,121009 of Cask virtualbox
STDERR: Updating Homebrew...
Error: Command failed to execute!
==> Failed command:
/usr/bin/sudo -E -- /usr/sbin/installer -pkg /usr/local/Caskroom/virtualbox/5.2.8,121009/VirtualBox.pkg -target /
==> Standard Output of failed command:
==> Standard Error of failed command:
sudo: no tty present and no askpass program specified
==> Exit status of failed command:
#<Process::Status: pid 41692 exit 1>
---- End output of /usr/local/bin/brew cask install virtualbox ----
Ran /usr/local/bin/brew cask install virtualbox returned 1
Cookbook Trace:
---------------
/Users/user/.chef/local-mode-cache/cache/cookbooks/homebrew/resources/cask.rb:32:in `block (2 levels) in class_from_file'
/Users/user/.chef/local-mode-cache/cache/cookbooks/homebrew/resources/cask.rb:31:in `block in class_from_file'
Resource Declaration:
---------------------
# In /Users/user/.chef/local-mode-cache/cache/cookbooks/workstation/recipes/default.rb
37: homebrew_cask 'virtualbox'
38:
Compiled Resource:
------------------
# Declared in /Users/user/.chef/local-mode-cache/cache/cookbooks/workstation/recipes/default.rb:37:in `from_file'
homebrew_cask("virtualbox") do
action [:install]
default_guard_interpreter :default
declared_type :homebrew_cask
cookbook_name "workstation"
recipe_name "default"
owner "user"
cask_name "virtualbox"
end
System Info:
------------
chef_version=14.0.190
platform=mac_os_x
platform_version=10.13.4
ruby=ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-darwin14]
program_name=/usr/local/bin/chef-client
executable=/opt/chef/bin/chef-client
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment