When trying to uninstall the vmware-fusion cask with the zap stanza, Homebrew fails to delete residual system files despite asking for the user's sudo password during the uninstallation process.
Command that failed
brew uninstall --cask --zap vmware-fusion
Output of command with --verbose --debug
Click to expand
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/rubberband.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/libimobiledevice.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/lame.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/pkg-config.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/libtiff.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/libtool.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/gmp.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/wget.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/ffmpeg.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/xorgproto.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/libidn2.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/mas.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/xvid.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/nghttp2.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/libplist.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/libxau.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/little-cms2.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/libpng.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/frei0r.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/nettle.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/pixman.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/gdbm.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/mpdecimal.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/libxdmcp.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/opus.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/freetype.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/rclone.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/libsamplerate.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/libvorbis.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/libunistring.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/openjpeg.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/zimg.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/jemalloc.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/bdw-gc.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/speex.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/libogg.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/icu4c.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/zeromq.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/harfbuzz.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/libbluray.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/glib.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/libxcb.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/readline.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/aom.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/graphite2.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/srt.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/tesseract.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/cairo.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/webp.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/sqlite.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/c-ares.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/gobject-introspection.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/fribidi.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/libpthread-stubs.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/xz.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/fontconfig.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/giflib.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/libusbmuxd.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/libvpx.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/libxrender.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/snappy.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/flac.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/gettext.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/libsodium.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/dav1d.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/opencore-amr.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/rav1e.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/libxext.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/m4.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/libtasn1.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/streamlink.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/youtube-dl.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/libevent.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/openssl@1.1.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/leptonica.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/pcre.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/x264.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/libvidstab.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/x265.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/libsoxr.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/unbound.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/jpeg.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/theora.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/sdl2.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/libusb.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/libass.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/guile.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/libsndfile.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/p11-kit.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/libev.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/libx11.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/lzo.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/libffi.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/python@3.9.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/gnutls.rb
==> Zapping Cask vmware-fusion
==> Implied `brew uninstall --cask vmware-fusion`
==> Uninstalling artifacts
==> 31 artifacts defined
#, @tap=nil, @block=#, @default_config=#, @caskroom_path=#, @metadata_master_container_path=#, @config=#["en-US"], :appdir=>#, :colorpickerdir=>#, :prefpanedir=>#, :qlplugindir=>#, :mdimporterdir=>#, :dictionarydir=>#, :fontdir=>#, :servicedir=>#, :input_methoddir=>#, :internet_plugindir=>#, :audio_unit_plugindir=>#, :vst_plugindir=>#, :vst3_plugindir=>#, :screen_saverdir=>#}, @env={}, @binarydir=#>, @dsl=#, @token="vmware-fusion", @version="12.1.1-17801503", @sha256=#, @url=#, @verified=nil, @using=nil, @tag=nil, @branch=nil, @revisions=nil, @revision=nil, @trust_cert=nil, @cookies=nil, @referer=nil, @header=nil, @user_agent=:default, @data=nil, @specs={:user_agent=>:default}>, @name=["VMware Fusion"], @desc="App to run other operating systems without rebooting", @homepage="https://www.vmware.com/products/fusion.html", @livecheck=#, @regex=nil, @skip=false, @skip_msg=nil, @strategy=:page_match, @url="https://softwareupdate.vmware.com/cds/vmw-desktop/fusion.xml", @strategy_block=#>, @livecheckable=true, @auto_updates=true, @depends_on={:macos=>#="10.15" []>}, @artifacts=#, @staged_path=#, @caveats=#, @command=SystemCommand, @built_in_caveats={[:kext]=>"vmware-fusion requires a kernel extension to work.\nIf the installation fails, retry after you enable it in:\n System Preferences β Security & Privacy β General\n\nFor more information, refer to vendor documentation or this Apple Technical Note:\n \e[4mhttps://developer.apple.com/library/content/technotes/tn2459/_index.html\e[24m\n"}, @custom_caveats=[], @discontinued=false>, @language_eval=nil>>, @directives={:uninstall_preflight=>#}>, #, @tap=nil, @block=#, @default_config=#, @caskroom_path=#, @metadata_master_container_path=#, @config=#["en-US"], :appdir=>#, :colorpickerdir=>#, :prefpanedir=>#, :qlplugindir=>#, :mdimporterdir=>#, :dictionarydir=>#, :fontdir=>#, :servicedir=>#, :input_methoddir=>#, :internet_plugindir=>#, :audio_unit_plugindir=>#, :vst_plugindir=>#, :vst3_plugindir=>#, :screen_saverdir=>#}, @env={}, @binarydir=#>, @dsl=#, @token="vmware-fusion", @version="12.1.1-17801503", @sha256=#, @url=#, @verified=nil, @using=nil, @tag=nil, @branch=nil, @revisions=nil, @revision=nil, @trust_cert=nil, @cookies=nil, @referer=nil, @header=nil, @user_agent=:default, @data=nil, @specs={:user_agent=>:default}>, @name=["VMware Fusion"], @desc="App to run other operating systems without rebooting", @homepage="https://www.vmware.com/products/fusion.html", @livecheck=#, @regex=nil, @skip=false, @skip_msg=nil, @strategy=:page_match, @url="https://softwareupdate.vmware.com/cds/vmw-desktop/fusion.xml", @strategy_block=#>, @livecheckable=true, @auto_updates=true, @depends_on={:macos=>#="10.15" []>}, @artifacts=#, @staged_path=#, @caveats=#, @command=SystemCommand, @built_in_caveats={[:kext]=>"vmware-fusion requires a kernel extension to work.\nIf the installation fails, retry after you enable it in:\n System Preferences β Security & Privacy β General\n\nFor more information, refer to vendor documentation or this Apple Technical Note:\n \e[4mhttps://developer.apple.com/library/content/technotes/tn2459/_index.html\e[24m\n"}, @custom_caveats=[], @discontinued=false>, @language_eval=nil>>, @directives={:delete=>"/etc/paths.d/com.vmware.fusion.public", :signal=>[]}>, #, @tap=nil, @block=#, @default_config=#, @caskroom_path=#, @metadata_master_container_path=#, @config=#["en-US"], :appdir=>#, :colorpickerdir=>#, :prefpanedir=>#, :qlplugindir=>#, :mdimporterdir=>#, :dictionarydir=>#, :fontdir=>#, :servicedir=>#, :input_methoddir=>#, :internet_plugindir=>#, :audio_unit_plugindir=>#, :vst_plugindir=>#, :vst3_plugindir=>#, :screen_saverdir=>#}, @env={}, @binarydir=#>, @dsl=#, @token="vmware-fusion", @version="12.1.1-17801503", @sha256=#, @url=#, @verified=nil, @using=nil, @tag=nil, @branch=nil, @revisions=nil, @revision=nil, @trust_cert=nil, @cookies=nil, @referer=nil, @header=nil, @user_agent=:default, @data=nil, @specs={:user_agent=>:default}>, @name=["VMware Fusion"], @desc="App to run other operating systems without rebooting", @homepage="https://www.vmware.com/products/fusion.html", @livecheck=#, @regex=nil, @skip=false, @skip_msg=nil, @strategy=:page_match, @url="https://softwareupdate.vmware.com/cds/vmw-desktop/fusion.xml", @strategy_block=#>, @livecheckable=true, @auto_updates=true, @depends_on={:macos=>#="10.15" []>}, @artifacts=#, @staged_path=#, @caveats=#, @command=SystemCommand, @built_in_caveats={[:kext]=>"vmware-fusion requires a kernel extension to work.\nIf the installation fails, retry after you enable it in:\n System Preferences β Security & Privacy β General\n\nFor more information, refer to vendor documentation or this Apple Technical Note:\n \e[4mhttps://developer.apple.com/library/content/technotes/tn2459/_index.html\e[24m\n"}, @custom_caveats=[], @discontinued=false>, @language_eval=nil>>, @source_string="VMware Fusion.app", @target_string="", @source=#, @target=#>, #, @tap=nil, @block=#, @default_config=#, @caskroom_path=#, @metadata_master_container_path=#, @config=#["en-US"], :appdir=>#, :colorpickerdir=>#, :prefpanedir=>#, :qlplugindir=>#, :mdimporterdir=>#, :dictionarydir=>#, :fontdir=>#, :servicedir=>#, :input_methoddir=>#, :internet_plugindir=>#, :audio_unit_plugindir=>#, :vst_plugindir=>#, :vst3_plugindir=>#, :screen_saverdir=>#}, @env={}, @binarydir=#>, @dsl=#, @token="vmware-fusion", @version="12.1.1-17801503", @sha256=#, @url=#, @verified=nil, @using=nil, @tag=nil, @branch=nil, @revisions=nil, @revision=nil, @trust_cert=nil, @cookies=nil, @referer=nil, @header=nil, @user_agent=:default, @data=nil, @specs={:user_agent=>:default}>, @name=["VMware Fusion"], @desc="App to run other operating systems without rebooting", @homepage="https://www.vmware.com/products/fusion.html", @livecheck=#, @regex=nil, @skip=false, @skip_msg=nil, @strategy=:page_match, @url="https://softwareupdate.vmware.com/cds/vmw-desktop/fusion.xml", @strategy_block=#>, @livecheckable=true, @auto_updates=true, @depends_on={:macos=>#="10.15" []>}, @artifacts=#, @staged_path=#, @caveats=#, @command=SystemCommand, @built_in_caveats={[:kext]=>"vmware-fusion requires a kernel extension to work.\nIf the installation fails, retry after you enable it in:\n System Preferences β Security & Privacy β General\n\nFor more information, refer to vendor documentation or this Apple Technical Note:\n \e[4mhttps://developer.apple.com/library/content/technotes/tn2459/_index.html\e[24m\n"}, @custom_caveats=[], @discontinued=false>, @language_eval=nil>>, @source_string="/Applications/VMware Fusion.app/Contents/Library/vmnet-cli", @target_string="", @source=#, @target=#>, #, @tap=nil, @block=#, @default_config=#, @caskroom_path=#, @metadata_master_container_path=#, @config=#["en-US"], :appdir=>#, :colorpickerdir=>#, :prefpanedir=>#, :qlplugindir=>#, :mdimporterdir=>#, :dictionarydir=>#, :fontdir=>#, :servicedir=>#, :input_methoddir=>#, :internet_plugindir=>#, :audio_unit_plugindir=>#, :vst_plugindir=>#, :vst3_plugindir=>#, :screen_saverdir=>#}, @env={}, @binarydir=#>, @dsl=#, @token="vmware-fusion", @version="12.1.1-17801503", @sha256=#, @url=#, @verified=nil, @using=nil, @tag=nil, @branch=nil, @revisions=nil, @revision=nil, @trust_cert=nil, @cookies=nil, @referer=nil, @header=nil, @user_agent=:default, @data=nil, @specs={:user_agent=>:default}>, @name=["VMware Fusion"], @desc="App to run other operating systems without rebooting", @homepage="https://www.vmware.com/products/fusion.html", @livecheck=#, @regex=nil, @skip=false, @skip_msg=nil, @strategy=:page_match, @url="https://softwareupdate.vmware.com/cds/vmw-desktop/fusion.xml", @strategy_block=#>, @livecheckable=true, @auto_updates=true, @depends_on={:macos=>#="10.15" []>}, @artifacts=#, @staged_path=#, @caveats=#, @command=SystemCommand, @built_in_caveats={[:kext]=>"vmware-fusion requires a kernel extension to work.\nIf the installation fails, retry after you enable it in:\n System Preferences β Security & Privacy β General\n\nFor more information, refer to vendor documentation or this Apple Technical Note:\n \e[4mhttps://developer.apple.com/library/content/technotes/tn2459/_index.html\e[24m\n"}, @custom_caveats=[], @discontinued=false>, @language_eval=nil>>, @source_string="/Applications/VMware Fusion.app/Contents/Library/vmnet-dhcpd", @target_string="", @source=#, @target=#>, #, @tap=nil, @block=#, @default_config=#, @caskroom_path=#, @metadata_master_container_path=#, @config=#["en-US"], :appdir=>#, :colorpickerdir=>#, :prefpanedir=>#, :qlplugindir=>#, :mdimporterdir=>#, :dictionarydir=>#, :fontdir=>#, :servicedir=>#, :input_methoddir=>#, :internet_plugindir=>#, :audio_unit_plugindir=>#, :vst_plugindir=>#, :vst3_plugindir=>#, :screen_saverdir=>#}, @env={}, @binarydir=#>, @dsl=#, @token="vmware-fusion", @version="12.1.1-17801503", @sha256=#, @url=#, @verified=nil, @using=nil, @tag=nil, @branch=nil, @revisions=nil, @revision=nil, @trust_cert=nil, @cookies=nil, @referer=nil, @header=nil, @user_agent=:default, @data=nil, @specs={:user_agent=>:default}>, @name=["VMware Fusion"], @desc="App to run other operating systems without rebooting", @homepage="https://www.vmware.com/products/fusion.html", @livecheck=#, @regex=nil, @skip=false, @skip_msg=nil, @strategy=:page_match, @url="https://softwareupdate.vmware.com/cds/vmw-desktop/fusion.xml", @strategy_block=#>, @livecheckable=true, @auto_updates=true, @depends_on={:macos=>#="10.15" []>}, @artifacts=#, @staged_path=#, @caveats=#, @command=SystemCommand, @built_in_caveats={[:kext]=>"vmware-fusion requires a kernel extension to work.\nIf the installation fails, retry after you enable it in:\n System Preferences β Security & Privacy β General\n\nFor more information, refer to vendor documentation or this Apple Technical Note:\n \e[4mhttps://developer.apple.com/library/content/technotes/tn2459/_index.html\e[24m\n"}, @custom_caveats=[], @discontinued=false>, @language_eval=nil>>, @source_string="/Applications/VMware Fusion.app/Contents/Library/vmnet-natd", @target_string="", @source=#, @target=#>, #, @tap=nil, @block=#, @default_config=#, @caskroom_path=#, @metadata_master_container_path=#, @config=#["en-US"], :appdir=>#, :colorpickerdir=>#, :prefpanedir=>#, :qlplugindir=>#, :mdimporterdir=>#, :dictionarydir=>#, :fontdir=>#, :servicedir=>#, :input_methoddir=>#, :internet_plugindir=>#, :audio_unit_plugindir=>#, :vst_plugindir=>#, :vst3_plugindir=>#, :screen_saverdir=>#}, @env={}, @binarydir=#>, @dsl=#, @token="vmware-fusion", @version="12.1.1-17801503", @sha256=#, @url=#, @verified=nil, @using=nil, @tag=nil, @branch=nil, @revisions=nil, @revision=nil, @trust_cert=nil, @cookies=nil, @referer=nil, @header=nil, @user_agent=:default, @data=nil, @specs={:user_agent=>:default}>, @name=["VMware Fusion"], @desc="App to run other operating systems without rebooting", @homepage="https://www.vmware.com/products/fusion.html", @livecheck=#, @regex=nil, @skip=false, @skip_msg=nil, @strategy=:page_match, @url="https://softwareupdate.vmware.com/cds/vmw-desktop/fusion.xml", @strategy_block=#>, @livecheckable=true, @auto_updates=true, @depends_on={:macos=>#="10.15" []>}, @artifacts=#, @staged_path=#, @caveats=#, @command=SystemCommand, @built_in_caveats={[:kext]=>"vmware-fusion requires a kernel extension to work.\nIf the installation fails, retry after you enable it in:\n System Preferences β Security & Privacy β General\n\nFor more information, refer to vendor documentation or this Apple Technical Note:\n \e[4mhttps://developer.apple.com/library/content/technotes/tn2459/_index.html\e[24m\n"}, @custom_caveats=[], @discontinued=false>, @language_eval=nil>>, @source_string="/Applications/VMware Fusion.app/Contents/Library/vmnet-netifup", @target_string="", @source=#, @target=#>, #, @tap=nil, @block=#, @default_config=#, @caskroom_path=#, @metadata_master_container_path=#, @config=#["en-US"], :appdir=>#, :colorpickerdir=>#, :prefpanedir=>#, :qlplugindir=>#, :mdimporterdir=>#, :dictionarydir=>#, :fontdir=>#, :servicedir=>#, :input_methoddir=>#, :internet_plugindir=>#, :audio_unit_plugindir=>#, :vst_plugindir=>#, :vst3_plugindir=>#, :screen_saverdir=>#}, @env={}, @binarydir=#>, @dsl=#, @token="vmware-fusion", @version="12.1.1-17801503", @sha256=#, @url=#, @verified=nil, @using=nil, @tag=nil, @branch=nil, @revisions=nil, @revision=nil, @trust_cert=nil, @cookies=nil, @referer=nil, @header=nil, @user_agent=:default, @data=nil, @specs={:user_agent=>:default}>, @name=["VMware Fusion"], @desc="App to run other operating systems without rebooting", @homepage="https://www.vmware.com/products/fusion.html", @livecheck=#, @regex=nil, @skip=false, @skip_msg=nil, @strategy=:page_match, @url="https://softwareupdate.vmware.com/cds/vmw-desktop/fusion.xml", @strategy_block=#>, @livecheckable=true, @auto_updates=true, @depends_on={:macos=>#="10.15" []>}, @artifacts=#, @staged_path=#, @caveats=#
--force
.brew update-reset && brew update
and retried my command.brew doctor
, fixed as many issues as possible and retried my command.Description of issue
When trying to uninstall the
vmware-fusion
cask with the zap stanza, Homebrew fails to delete residual system files despite asking for the user's sudo password during the uninstallation process.Command that failed
brew uninstall --cask --zap vmware-fusion
Output of command with
--verbose --debug
Click to expand