Homebrew / homebrew-cask

🍻 A CLI workflow for the administration of macOS applications distributed as binaries
https://brew.sh
BSD 2-Clause "Simplified" License
20.93k stars 10.71k forks source link

Vagrant can't uninstall after upgrading to Catalina #72030

Closed ewjannece closed 4 years ago

ewjannece commented 4 years ago

General troubleshooting steps

Description of issue

When uninstalling vagrant on Catalina the uninstall script found in /usr/local/Caskroom/vagrant/2.2.5/uninstall.tool has a part that doesn't bring up the GUI request. It does pop up if I run it manually.

-# Use AppleScript so we can use a graphical sudo prompt. -# This way, people can enter the username they wish to use -# for sudo, and it is more Apple-like. osascript -e "do shell script \"/bin/rm -Rf ${my_files[*]}\" with administrator privileges"

Command that failed

brew cask reinstall vagrant

Output of command with --force --verbose --debug

brew cask reinstall --force --verbose --debug vagrant 
==> Cask::Installer#reinstall
==> Cask::Installer#install
==> Printing caveats
==> Cask::Installer#fetch
==> Downloading
==> Downloading https://releases.hashicorp.com/vagrant/2.2.6/vagrant_2.2.6_x86_64.dmg
/usr/bin/curl -q --globoff --show-error --user-agent Homebrew/2.1.15-116-g33330ba\ \(Macintosh\;\ Intel\ Mac\ OS\ X\ 10.15\)\ curl/7.64.1 --location --silent --head --request GET https://releases.hashicorp.com/vagrant/2.2.6/vagrant_2.2.6_x86_64.dmg
Already downloaded: /Users/Gene/Library/Caches/Homebrew/downloads/02a35a68bfe45a4ffee2e9b601c1a44731e67d49cc52fd6c6d82070b7b85108e--vagrant_2.2.6_x86_64.dmg
==> Checking quarantine support
/usr/bin/xattr
/usr/bin/swift /usr/local/Homebrew/Library/Homebrew/cask/utils/quarantine.swift
==> Quarantine is available.
==> Verifying Gatekeeper status of /Users/Gene/Library/Caches/Homebrew/downloads/02a35a68bfe45a4ffee2e9b601c1a44731e67d49cc52fd6c6d82070b7b85108e--vagrant_2.2.6_x86_64.dmg
/usr/bin/xattr -p com.apple.quarantine /Users/Gene/Library/Caches/Homebrew/downloads/02a35a68bfe45a4ffee2e9b601c1a44731e67d49cc52fd6c6d82070b7b85108e--vagrant_2.2.6_x86_64.dmg
==> /Users/Gene/Library/Caches/Homebrew/downloads/02a35a68bfe45a4ffee2e9b601c1a44731e67d49cc52fd6c6d82070b7b85108e--vagrant_2.2.6_x86_64.dmg is quarantined
==> Downloaded to -> /Users/Gene/Library/Caches/Homebrew/downloads/02a35a68bfe45a4ffee2e9b601c1a44731e67d49cc52fd6c6d82070b7b85108e--vagrant_2.2.6_x86_64.dmg
==> Verifying SHA-256 checksum for Cask 'vagrant'.
hdiutil imageinfo -format /Users/Gene/Library/Caches/Homebrew/downloads/02a35a68bfe45a4ffee2e9b601c1a44731e67d49cc52fd6c6d82070b7b85108e--vagrant_2.2.6_x86_64.dmg
==> Uninstalling Cask vagrant
==> Uninstalling artifacts
==> 3 artifact/s defined
#<SortedSet: {#<Cask::Artifact::Uninstall:0x00007fb54b2a9bc8 @cask=#<Cask::Cask:0x00007fb54b299188 @token="vagrant", @sourcefile_path=#<Pathname:/usr/local/Caskroom/vagrant/.metadata/2.2.5/20190626214513.336/Casks/vagrant.rb>, @tap=nil, @block=#<Proc:0x00007fb54b299020@/usr/local/Caskroom/vagrant/.metadata/2.2.5/20190626214513.336/Casks/vagrant.rb:1>, @caskroom_path=#<Pathname:/usr/local/Caskroom/vagrant>, @metadata_master_container_path=#<Pathname:/usr/local/Caskroom/vagrant/.metadata>, @config=#<Cask::Config:0x00007fb54b2904c0 @default={:appdir=>#<Pathname:/Applications>, :prefpanedir=>#<Pathname:/Users/Gene/Library/PreferencePanes>, :qlplugindir=>#<Pathname:/Users/Gene/Library/QuickLook>, :dictionarydir=>#<Pathname:/Users/Gene/Library/Dictionaries>, :fontdir=>#<Pathname:/Users/Gene/Library/Fonts>, :colorpickerdir=>#<Pathname:/Users/Gene/Library/ColorPickers>, :servicedir=>#<Pathname:/Users/Gene/Library/Services>, :input_methoddir=>#<Pathname:/Users/Gene/Library/Input Methods>, :internet_plugindir=>#<Pathname:/Users/Gene/Library/Internet Plug-Ins>, :audio_unit_plugindir=>#<Pathname:/Users/Gene/Library/Audio/Plug-Ins/Components>, :vst_plugindir=>#<Pathname:/Users/Gene/Library/Audio/Plug-Ins/VST>, :vst3_plugindir=>#<Pathname:/Users/Gene/Library/Audio/Plug-Ins/VST3>, :screen_saverdir=>#<Pathname:/Users/Gene/Library/Screen Savers>}, @env={}, @explicit={}>, @dsl=#<Cask::DSL:0x00007fb54b2a1040 @cask=#<Cask::Cask:0x00007fb54b299188 ...>, @token="vagrant", @version="2.2.5", @sha256="b7960721440e4ea7b5bac3ba172ea5a2c11e4d82485b55255556601a4488f2c2", @url=#<URL:0x00007fb54b2a07a8 @uri=#<URI::HTTPS https://releases.hashicorp.com/vagrant/2.2.5/vagrant_2.2.5_x86_64.dmg>, @user_agent=:default, @specs={}>, @appcast=#<Cask::DSL::Appcast:0x00007fb54b2a0208 @uri=#<URI::HTTPS https://github.com/hashicorp/vagrant/releases.atom>, @parameters={}>, @name=["Vagrant"], @homepage="https://www.vagrantup.com/", @artifacts=#<SortedSet: {...}>, @staged_path=#<Pathname:/usr/local/Caskroom/vagrant/2.2.5>, @language=nil>>, @directives={:script=>{:executable=>"uninstall.tool", :input=>["Yes"], :sudo=>true}, :pkgutil=>"com.vagrant.vagrant", :signal=>[]}>, #<Cask::Artifact::Pkg:0x00007fb54b2ab7e8 @cask=#<Cask::Cask:0x00007fb54b299188 @token="vagrant", @sourcefile_path=#<Pathname:/usr/local/Caskroom/vagrant/.metadata/2.2.5/20190626214513.336/Casks/vagrant.rb>, @tap=nil, @block=#<Proc:0x00007fb54b299020@/usr/local/Caskroom/vagrant/.metadata/2.2.5/20190626214513.336/Casks/vagrant.rb:1>, @caskroom_path=#<Pathname:/usr/local/Caskroom/vagrant>, @metadata_master_container_path=#<Pathname:/usr/local/Caskroom/vagrant/.metadata>, @config=#<Cask::Config:0x00007fb54b2904c0 @default={:appdir=>#<Pathname:/Applications>, :prefpanedir=>#<Pathname:/Users/Gene/Library/PreferencePanes>, :qlplugindir=>#<Pathname:/Users/Gene/Library/QuickLook>, :dictionarydir=>#<Pathname:/Users/Gene/Library/Dictionaries>, :fontdir=>#<Pathname:/Users/Gene/Library/Fonts>, :colorpickerdir=>#<Pathname:/Users/Gene/Library/ColorPickers>, :servicedir=>#<Pathname:/Users/Gene/Library/Services>, :input_methoddir=>#<Pathname:/Users/Gene/Library/Input Methods>, :internet_plugindir=>#<Pathname:/Users/Gene/Library/Internet Plug-Ins>, :audio_unit_plugindir=>#<Pathname:/Users/Gene/Library/Audio/Plug-Ins/Components>, :vst_plugindir=>#<Pathname:/Users/Gene/Library/Audio/Plug-Ins/VST>, :vst3_plugindir=>#<Pathname:/Users/Gene/Library/Audio/Plug-Ins/VST3>, :screen_saverdir=>#<Pathname:/Users/Gene/Library/Screen Savers>}, @env={}, @explicit={}>, @dsl=#<Cask::DSL:0x00007fb54b2a1040 @cask=#<Cask::Cask:0x00007fb54b299188 ...>, @token="vagrant", @version="2.2.5", @sha256="b7960721440e4ea7b5bac3ba172ea5a2c11e4d82485b55255556601a4488f2c2", @url=#<URL:0x00007fb54b2a07a8 @uri=#<URI::HTTPS https://releases.hashicorp.com/vagrant/2.2.5/vagrant_2.2.5_x86_64.dmg>, @user_agent=:default, @specs={}>, @appcast=#<Cask::DSL::Appcast:0x00007fb54b2a0208 @uri=#<URI::HTTPS https://github.com/hashicorp/vagrant/releases.atom>, @parameters={}>, @name=["Vagrant"], @homepage="https://www.vagrantup.com/", @artifacts=#<SortedSet: {...}>, @staged_path=#<Pathname:/usr/local/Caskroom/vagrant/2.2.5>, @language=nil>>, @path=#<Pathname:/usr/local/Caskroom/vagrant/2.2.5/vagrant.pkg>, @stanza_options={}>, #<Cask::Artifact::Zap:0x00007fb54b2a91f0 @cask=#<Cask::Cask:0x00007fb54b299188 @token="vagrant", @sourcefile_path=#<Pathname:/usr/local/Caskroom/vagrant/.metadata/2.2.5/20190626214513.336/Casks/vagrant.rb>, @tap=nil, @block=#<Proc:0x00007fb54b299020@/usr/local/Caskroom/vagrant/.metadata/2.2.5/20190626214513.336/Casks/vagrant.rb:1>, @caskroom_path=#<Pathname:/usr/local/Caskroom/vagrant>, @metadata_master_container_path=#<Pathname:/usr/local/Caskroom/vagrant/.metadata>, @config=#<Cask::Config:0x00007fb54b2904c0 @default={:appdir=>#<Pathname:/Applications>, :prefpanedir=>#<Pathname:/Users/Gene/Library/PreferencePanes>, :qlplugindir=>#<Pathname:/Users/Gene/Library/QuickLook>, :dictionarydir=>#<Pathname:/Users/Gene/Library/Dictionaries>, :fontdir=>#<Pathname:/Users/Gene/Library/Fonts>, :colorpickerdir=>#<Pathname:/Users/Gene/Library/ColorPickers>, :servicedir=>#<Pathname:/Users/Gene/Library/Services>, :input_methoddir=>#<Pathname:/Users/Gene/Library/Input Methods>, :internet_plugindir=>#<Pathname:/Users/Gene/Library/Internet Plug-Ins>, :audio_unit_plugindir=>#<Pathname:/Users/Gene/Library/Audio/Plug-Ins/Components>, :vst_plugindir=>#<Pathname:/Users/Gene/Library/Audio/Plug-Ins/VST>, :vst3_plugindir=>#<Pathname:/Users/Gene/Library/Audio/Plug-Ins/VST3>, :screen_saverdir=>#<Pathname:/Users/Gene/Library/Screen Savers>}, @env={}, @explicit={}>, @dsl=#<Cask::DSL:0x00007fb54b2a1040 @cask=#<Cask::Cask:0x00007fb54b299188 ...>, @token="vagrant", @version="2.2.5", @sha256="b7960721440e4ea7b5bac3ba172ea5a2c11e4d82485b55255556601a4488f2c2", @url=#<URL:0x00007fb54b2a07a8 @uri=#<URI::HTTPS https://releases.hashicorp.com/vagrant/2.2.5/vagrant_2.2.5_x86_64.dmg>, @user_agent=:default, @specs={}>, @appcast=#<Cask::DSL::Appcast:0x00007fb54b2a0208 @uri=#<URI::HTTPS https://github.com/hashicorp/vagrant/releases.atom>, @parameters={}>, @name=["Vagrant"], @homepage="https://www.vagrantup.com/", @artifacts=#<SortedSet: {...}>, @staged_path=#<Pathname:/usr/local/Caskroom/vagrant/2.2.5>, @language=nil>>, @directives={:trash=>"~/.vagrant.d", :signal=>[]}>}>
==> Uninstalling artifact of class Cask::Artifact::Uninstall
==> Running uninstall script uninstall.tool
/usr/bin/sudo -E -- /usr/local/Caskroom/vagrant/2.2.5/uninstall.tool
Password:
+ my_files=()
+ append my_files /opt/vagrant
+ eval 'my_files[${#my_files[*]}]=/opt/vagrant'
++ my_files[${#my_files[*]}]=/opt/vagrant
+ append my_files /usr/local/bin/vagrant
+ eval 'my_files[${#my_files[*]}]=/usr/local/bin/vagrant'
The following files and directories will be removed:
++ my_files[${#my_files[*]}]=/usr/local/bin/vagrant
    /opt/vagrant
+ echo 'The following files and directories will be removed:'
    /usr/local/bin/vagrant
+ for file in '"${my_files[@]}"'

+ echo '    /opt/vagrant'
Do you wish to uninstall Vagrant (Yes/No)?
+ for file in '"${my_files[@]}"'
The uninstallation process requires administrative privileges
+ echo '    /usr/local/bin/vagrant'
because some of the installed files cannot be removed by a
+ echo ''
normal user. You may now be prompted for a password...
+ echo 'Do you wish to uninstall Vagrant (Yes/No)?'

+ read my_answer
+ '[' Yes '!=' Yes ']'
+ echo 'The uninstallation process requires administrative privileges'
+ echo 'because some of the installed files cannot be removed by a'
+ echo 'normal user. You may now be prompted for a password...'
+ echo ''
+ osascript -e 'do shell script "/bin/rm -Rf /opt/vagrant /usr/local/bin/vagrant" with administrator privileges'

Output of brew cask doctor

brew cask doctor
==> Homebrew Version
2.1.15-116-g33330ba
==> macOS
10.15
==> SIP
Enabled
==> Java
13.0.1
==> xattr issues
<NONE>
==> Gatekeeper support
Enabled
==> Homebrew Cask Install Location
<NONE>
==> Homebrew Cask Staging Location
/usr/local/Caskroom
==> Homebrew Cask Taps:
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask (3498 casks)
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask-versions (164 casks)
==> Contents of $LOAD_PATH
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/ruby-macho-2.2.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/rubocop-rspec-1.36.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/rubocop-performance-1.5.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/rubocop-0.75.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/unicode-display_width-1.6.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/ruby-progressbar-1.10.1/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/rspec-wait-0.0.9/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/rspec-retry-0.6.1/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/rspec-its-1.3.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/rspec-3.9.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/rspec-mocks-3.9.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/rspec-expectations-3.9.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/rspec-core-3.9.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/rspec-support-3.9.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/ronn-0.7.3/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/rdiscount-2.2.0.1/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/extensions/x86_64-darwin-13/2.6.0-static/rdiscount-2.2.0.1
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/rainbow-3.0.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/plist-3.5.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/parser-2.6.5.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/parallel_tests-2.29.2/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/parallel-1.18.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/mustache-1.1.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/mechanize-2.7.6/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/webrobots-0.1.2/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/ntlm-http-0.1.1/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/nokogiri-1.10.4/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/extensions/x86_64-darwin-13/2.6.0-static/nokogiri-1.10.4
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/mini_portile2-2.4.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/net-http-persistent-3.1.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/net-http-digest_auth-1.4.1/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/mime-types-3.3/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/mime-types-data-3.2019.1009/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/jaro_winkler-1.5.3/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/extensions/x86_64-darwin-13/2.6.0-static/jaro_winkler-1.5.3
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/http-cookie-1.0.3/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/hpricot-0.8.6/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/extensions/x86_64-darwin-13/2.6.0-static/hpricot-0.8.6
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/domain_name-0.5.20190701/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/unf-0.1.4/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/unf_ext-0.0.7.6/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/extensions/x86_64-darwin-13/2.6.0-static/unf_ext-0.0.7.6
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/diff-lcs-1.3/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/coveralls-0.8.23/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/thor-0.20.3/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/term-ansicolor-1.7.1/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/tins-1.21.1/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/simplecov-0.16.1/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/simplecov-html-0.10.2/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/docile-1.3.2/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/json-2.2.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/extensions/x86_64-darwin-13/2.6.0-static/json-2.2.0
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/connection_pool-2.2.2/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/ast-2.4.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/activesupport-5.2.3/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/tzinfo-1.2.5/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/thread_safe-0.3.6/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/minitest-5.12.2/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/i18n-1.7.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/concurrent-ruby-1.1.5/lib
/Library/Ruby/Site/2.6.0
/Library/Ruby/Site/2.6.0/x86_64-darwin19
/Library/Ruby/Site/2.6.0/universal-darwin19
/Library/Ruby/Site
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/vendor_ruby/2.6.0
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/vendor_ruby/2.6.0/x86_64-darwin19
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/vendor_ruby/2.6.0/universal-darwin19
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/vendor_ruby
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/x86_64-darwin19
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/universal-darwin19
/usr/local/Homebrew/Library/Homebrew
==> Environment Variables
LC_ALL="en_US.UTF-8"
PATH="/usr/local/Homebrew/Library/Homebrew/shims/scm:/usr/bin:/bin:/usr/sbin:/sbin"
SHELL="/bin/bash"

Output of brew tap

brew tap
homebrew/cask
homebrew/cask-versions
homebrew/core
homebrew/services
cotillardq commented 4 years ago

run this brew tap homebrew/homebrew-cask brew cask install virtualbox vagrant