Homebrew / homebrew-cask

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

Upgrade errors for any cask that needs sudo #100652

Closed harveymonster closed 3 years ago

harveymonster commented 3 years ago

General troubleshooting steps

Description of issue

Trying to upgrade any cask that needs sudo causes a sudo error for an invalid value when initializing the audit plugin. I thought this was cask specific but have now started to encounter the issue for multiple casks.

Command that failed

$ brew upgrade {insert cask that needs sudo here, like zoom}

Output of command with --verbose --debug

$ brew upgrade zoom --verbose --debug                                        
==> Upgrading 1 outdated package:
zoom 5.5.12513.0205 -> 5.5.13130.0228
==> Started upgrade process for Cask zoom
==> Upgrading zoom
==> Printing caveats
==> Cask::Installer#fetch
==> Downloading https://d11yldzmag5yn.cloudfront.net/prod/5.5.13130.0228/Zoom.pkg
/usr/bin/curl --disable --globoff --show-error --user-agent Homebrew/3.0.4-14-g9d62a13\ \(Macintosh\;\ Intel\ Mac\ OS\ X\ 10.15.7\)\ curl/7.64.1 --header Accept-Language:\ en --retry 3 --location --silent --head --request GET https://d11yldzmag5yn.cloudfront.net/prod/5.5.13130.0228/Zoom.pkg
Already downloaded: /Users/nathan.harvey/Library/Caches/Homebrew/downloads/423db57228c0eb168852dafc0ea8dbc0234721a1b29af22a05559d4aa8e919c3--Zoom.pkg
==> 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/nathan.harvey/Library/Caches/Homebrew/downloads/423db57228c0eb168852dafc0ea8dbc0234721a1b29af22a05559d4aa8e919c3--Zoom.pkg
/usr/bin/xattr -p com.apple.quarantine /Users/nathan.harvey/Library/Caches/Homebrew/downloads/423db57228c0eb168852dafc0ea8dbc0234721a1b29af22a05559d4aa8e919c3--Zoom.pkg
==> /Users/nathan.harvey/Library/Caches/Homebrew/downloads/423db57228c0eb168852dafc0ea8dbc0234721a1b29af22a05559d4aa8e919c3--Zoom.pkg is quarantined
==> Verifying checksum for cask 'zoom'
hdiutil imageinfo -format /Users/nathan.harvey/Library/Caches/Homebrew/downloads/423db57228c0eb168852dafc0ea8dbc0234721a1b29af22a05559d4aa8e919c3--Zoom.pkg
==> Uninstalling artifacts
==> 3 artifacts defined
#<SortedSet: {#<Cask::Artifact::Uninstall:0x00007fc334dd2850 @cask=#<Cask::Cask:0x00007fc334dc26a8 @token="zoom", @sourcefile_path=#<Pathname:/usr/local/Caskroom/zoom/.metadata/5.5.12513.0205/20210208153606.449/Casks/zoom.rb>, @tap=nil, @block=#<Proc:0x00007fc334dc2608@/usr/local/Caskroom/zoom/.metadata/5.5.12513.0205/20210208153606.449/Casks/zoom.rb:1>, @default_config=#<Cask::Config:0x00007fc334dc25e0 @explicit={}>, @caskroom_path=#<Pathname:/usr/local/Caskroom/zoom>, @metadata_master_container_path=#<Pathname:/usr/local/Caskroom/zoom/.metadata>, @config=#<Cask::Config:0x00007fc334dcba28 @explicit={}, @default={:languages=>["en-US"], :appdir=>#<Pathname:/Applications>, :colorpickerdir=>#<Pathname:/Users/nathan.harvey/Library/ColorPickers>, :prefpanedir=>#<Pathname:/Users/nathan.harvey/Library/PreferencePanes>, :qlplugindir=>#<Pathname:/Users/nathan.harvey/Library/QuickLook>, :mdimporterdir=>#<Pathname:/Users/nathan.harvey/Library/Spotlight>, :dictionarydir=>#<Pathname:/Users/nathan.harvey/Library/Dictionaries>, :fontdir=>#<Pathname:/Users/nathan.harvey/Library/Fonts>, :servicedir=>#<Pathname:/Users/nathan.harvey/Library/Services>, :input_methoddir=>#<Pathname:/Users/nathan.harvey/Library/Input Methods>, :internet_plugindir=>#<Pathname:/Users/nathan.harvey/Library/Internet Plug-Ins>, :audio_unit_plugindir=>#<Pathname:/Users/nathan.harvey/Library/Audio/Plug-Ins/Components>, :vst_plugindir=>#<Pathname:/Users/nathan.harvey/Library/Audio/Plug-Ins/VST>, :vst3_plugindir=>#<Pathname:/Users/nathan.harvey/Library/Audio/Plug-Ins/VST3>, :screen_saverdir=>#<Pathname:/Users/nathan.harvey/Library/Screen Savers>}, @env={}>, @dsl=#<Cask::DSL:0x00007fc334dc8ff8 @cask=#<Cask::Cask:0x00007fc334dc26a8 ...>, @token="zoom", @version="5.5.12513.0205", @sha256=#<Checksum:0x00007fc334dc8d50 @hexdigest="66b5b358ab18eee0c281706b454c825d09f8c91e251ea2023903bc5201a02a20">, @url=#<URL:0x00007fc334dc8760 @uri=#<URI::HTTPS https://d11yldzmag5yn.cloudfront.net/prod/5.5.12513.0205/Zoom.pkg>, @verified="d11yldzmag5yn.cloudfront.net/", @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={:verified=>"d11yldzmag5yn.cloudfront.net/", :user_agent=>:default}, @from_block=false, @caller_location="/usr/local/Caskroom/zoom/.metadata/5.5.12513.0205/20210208153606.449/Casks/zoom.rb:7:in `block in load'">, @name=["Zoom.us"], @desc="Video communication and virtual meeting platform", @homepage="https://www.zoom.us/", @livecheck=#<Livecheck:0x00007fc334dc8210 @formula_or_cask=#<Cask::DSL:0x00007fc334dc8ff8 ...>, @regex=nil, @skip=false, @skip_msg=nil, @strategy=:header_match, @url="https://zoom.us/client/latest/Zoom.pkg">, @livecheckable=true, @conflicts_with={:cask=>#<Set: {"zoom-for-it-admins"}>}, @artifacts=#<SortedSet: {...}>, @staged_path=#<Pathname:/usr/local/Caskroom/zoom/5.5.12513.0205>, @language_eval=nil>>, @directives={:signal=>[["KILL", "us.zoom.xos"]], :pkgutil=>"us.zoom.pkg.videmeeting", :delete=>["/Applications/zoom.us.app", "/Library/Internet Plug-Ins/ZoomUsPlugIn.plugin", "/Library/Logs/DiagnosticReports/zoom.us*"]}>, #<Cask::Artifact::Pkg:0x00007fc334dd3818 @cask=#<Cask::Cask:0x00007fc334dc26a8 @token="zoom", @sourcefile_path=#<Pathname:/usr/local/Caskroom/zoom/.metadata/5.5.12513.0205/20210208153606.449/Casks/zoom.rb>, @tap=nil, @block=#<Proc:0x00007fc334dc2608@/usr/local/Caskroom/zoom/.metadata/5.5.12513.0205/20210208153606.449/Casks/zoom.rb:1>, @default_config=#<Cask::Config:0x00007fc334dc25e0 @explicit={}>, @caskroom_path=#<Pathname:/usr/local/Caskroom/zoom>, @metadata_master_container_path=#<Pathname:/usr/local/Caskroom/zoom/.metadata>, @config=#<Cask::Config:0x00007fc334dcba28 @explicit={}, @default={:languages=>["en-US"], :appdir=>#<Pathname:/Applications>, :colorpickerdir=>#<Pathname:/Users/nathan.harvey/Library/ColorPickers>, :prefpanedir=>#<Pathname:/Users/nathan.harvey/Library/PreferencePanes>, :qlplugindir=>#<Pathname:/Users/nathan.harvey/Library/QuickLook>, :mdimporterdir=>#<Pathname:/Users/nathan.harvey/Library/Spotlight>, :dictionarydir=>#<Pathname:/Users/nathan.harvey/Library/Dictionaries>, :fontdir=>#<Pathname:/Users/nathan.harvey/Library/Fonts>, :servicedir=>#<Pathname:/Users/nathan.harvey/Library/Services>, :input_methoddir=>#<Pathname:/Users/nathan.harvey/Library/Input Methods>, :internet_plugindir=>#<Pathname:/Users/nathan.harvey/Library/Internet Plug-Ins>, :audio_unit_plugindir=>#<Pathname:/Users/nathan.harvey/Library/Audio/Plug-Ins/Components>, :vst_plugindir=>#<Pathname:/Users/nathan.harvey/Library/Audio/Plug-Ins/VST>, :vst3_plugindir=>#<Pathname:/Users/nathan.harvey/Library/Audio/Plug-Ins/VST3>, :screen_saverdir=>#<Pathname:/Users/nathan.harvey/Library/Screen Savers>}, @env={}>, @dsl=#<Cask::DSL:0x00007fc334dc8ff8 @cask=#<Cask::Cask:0x00007fc334dc26a8 ...>, @token="zoom", @version="5.5.12513.0205", @sha256=#<Checksum:0x00007fc334dc8d50 @hexdigest="66b5b358ab18eee0c281706b454c825d09f8c91e251ea2023903bc5201a02a20">, @url=#<URL:0x00007fc334dc8760 @uri=#<URI::HTTPS https://d11yldzmag5yn.cloudfront.net/prod/5.5.12513.0205/Zoom.pkg>, @verified="d11yldzmag5yn.cloudfront.net/", @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={:verified=>"d11yldzmag5yn.cloudfront.net/", :user_agent=>:default}, @from_block=false, @caller_location="/usr/local/Caskroom/zoom/.metadata/5.5.12513.0205/20210208153606.449/Casks/zoom.rb:7:in `block in load'">, @name=["Zoom.us"], @desc="Video communication and virtual meeting platform", @homepage="https://www.zoom.us/", @livecheck=#<Livecheck:0x00007fc334dc8210 @formula_or_cask=#<Cask::DSL:0x00007fc334dc8ff8 ...>, @regex=nil, @skip=false, @skip_msg=nil, @strategy=:header_match, @url="https://zoom.us/client/latest/Zoom.pkg">, @livecheckable=true, @conflicts_with={:cask=>#<Set: {"zoom-for-it-admins"}>}, @artifacts=#<SortedSet: {...}>, @staged_path=#<Pathname:/usr/local/Caskroom/zoom/5.5.12513.0205>, @language_eval=nil>>, @path=#<Pathname:/usr/local/Caskroom/zoom/5.5.12513.0205/Zoom.pkg>, @stanza_options={}>, #<Cask::Artifact::Zap:0x00007fc334dd2008 @cask=#<Cask::Cask:0x00007fc334dc26a8 @token="zoom", @sourcefile_path=#<Pathname:/usr/local/Caskroom/zoom/.metadata/5.5.12513.0205/20210208153606.449/Casks/zoom.rb>, @tap=nil, @block=#<Proc:0x00007fc334dc2608@/usr/local/Caskroom/zoom/.metadata/5.5.12513.0205/20210208153606.449/Casks/zoom.rb:1>, @default_config=#<Cask::Config:0x00007fc334dc25e0 @explicit={}>, @caskroom_path=#<Pathname:/usr/local/Caskroom/zoom>, @metadata_master_container_path=#<Pathname:/usr/local/Caskroom/zoom/.metadata>, @config=#<Cask::Config:0x00007fc334dcba28 @explicit={}, @default={:languages=>["en-US"], :appdir=>#<Pathname:/Applications>, :colorpickerdir=>#<Pathname:/Users/nathan.harvey/Library/ColorPickers>, :prefpanedir=>#<Pathname:/Users/nathan.harvey/Library/PreferencePanes>, :qlplugindir=>#<Pathname:/Users/nathan.harvey/Library/QuickLook>, :mdimporterdir=>#<Pathname:/Users/nathan.harvey/Library/Spotlight>, :dictionarydir=>#<Pathname:/Users/nathan.harvey/Library/Dictionaries>, :fontdir=>#<Pathname:/Users/nathan.harvey/Library/Fonts>, :servicedir=>#<Pathname:/Users/nathan.harvey/Library/Services>, :input_methoddir=>#<Pathname:/Users/nathan.harvey/Library/Input Methods>, :internet_plugindir=>#<Pathname:/Users/nathan.harvey/Library/Internet Plug-Ins>, :audio_unit_plugindir=>#<Pathname:/Users/nathan.harvey/Library/Audio/Plug-Ins/Components>, :vst_plugindir=>#<Pathname:/Users/nathan.harvey/Library/Audio/Plug-Ins/VST>, :vst3_plugindir=>#<Pathname:/Users/nathan.harvey/Library/Audio/Plug-Ins/VST3>, :screen_saverdir=>#<Pathname:/Users/nathan.harvey/Library/Screen Savers>}, @env={}>, @dsl=#<Cask::DSL:0x00007fc334dc8ff8 @cask=#<Cask::Cask:0x00007fc334dc26a8 ...>, @token="zoom", @version="5.5.12513.0205", @sha256=#<Checksum:0x00007fc334dc8d50 @hexdigest="66b5b358ab18eee0c281706b454c825d09f8c91e251ea2023903bc5201a02a20">, @url=#<URL:0x00007fc334dc8760 @uri=#<URI::HTTPS https://d11yldzmag5yn.cloudfront.net/prod/5.5.12513.0205/Zoom.pkg>, @verified="d11yldzmag5yn.cloudfront.net/", @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={:verified=>"d11yldzmag5yn.cloudfront.net/", :user_agent=>:default}, @from_block=false, @caller_location="/usr/local/Caskroom/zoom/.metadata/5.5.12513.0205/20210208153606.449/Casks/zoom.rb:7:in `block in load'">, @name=["Zoom.us"], @desc="Video communication and virtual meeting platform", @homepage="https://www.zoom.us/", @livecheck=#<Livecheck:0x00007fc334dc8210 @formula_or_cask=#<Cask::DSL:0x00007fc334dc8ff8 ...>, @regex=nil, @skip=false, @skip_msg=nil, @strategy=:header_match, @url="https://zoom.us/client/latest/Zoom.pkg">, @livecheckable=true, @conflicts_with={:cask=>#<Set: {"zoom-for-it-admins"}>}, @artifacts=#<SortedSet: {...}>, @staged_path=#<Pathname:/usr/local/Caskroom/zoom/5.5.12513.0205>, @language_eval=nil>>, @directives={:trash=>["~/.zoomus", "~/Desktop/Zoom", "~/Documents/Zoom", "~/Library/Application Support/CloudDocs/session/containers/iCloud.us.zoom.videomeetings", "~/Library/Application Support/CloudDocs/session/containers/iCloud.us.zoom.videomeetings.plist", "~/Library/Application Support/CrashReporter/zoom.us*", "~/Library/Application Support/zoom.us", "~/Library/Caches/us.zoom.xos", "~/Library/Cookies/us.zoom.xos.binarycookies", "~/Library/Internet Plug-Ins/ZoomUsPlugIn.plugin", "~/Library/Logs/zoom.us", "~/Library/Logs/zoominstall.log", "~/Library/Logs/ZoomPhone", "~/Library/Mobile Documents/iCloud~us~zoom~videomeetings", "~/Library/Preferences/ZoomChat.plist", "~/Library/Preferences/us.zoom.airhost.plist", "~/Library/Preferences/us.zoom.xos.Hotkey.plist", "~/Library/Preferences/us.zoom.xos.plist", "~/Library/Safari/PerSiteZoomPreferences.plist", "~/Library/SafariTechnologyPreview/PerSiteZoomPreferences.plist", "~/Library/Saved Application State/us.zoom.xos.savedState"], :signal=>[]}>}>
==> Uninstalling artifact of class Cask::Artifact::Uninstall
==> Signalling 'KILL' to application ID 'us.zoom.xos'
/bin/launchctl list
==> Uninstalling packages:
/usr/sbin/pkgutil --pkgs=us.zoom.pkg.videmeeting
us.zoom.pkg.videmeeting
/usr/sbin/pkgutil --files us.zoom.pkg.videmeeting
/usr/sbin/pkgutil --pkg-info-plist us.zoom.pkg.videmeeting
==> Deleting pkg directories
/usr/bin/stat -f \%Of -- /Applications/zoom.us.app/Contents/Frameworks/ZMScreenshot.app/Contents/Resources/zh-Hans.lproj
/usr/bin/sudo -E -- /bin/chmod -- 777 /Applications/zoom.us.app/Contents/Frameworks/ZMScreenshot.app/Contents/Resources/zh-Hans.lproj
Password:
/usr/bin/sudo -E -- /bin/rmdir -- /Applications/zoom.us.app/Contents/Frameworks/ZMScreenshot.app/Contents/Resources/zh-Hans.lproj
/usr/bin/stat -f \%Of -- /Applications/zoom.us.app/Contents/Frameworks/ZoomUninstaller.app/Contents/Resources/de.lproj
/usr/bin/sudo -E -- /bin/chmod -- 777 /Applications/zoom.us.app/Contents/Frameworks/ZoomUninstaller.app/Contents/Resources/de.lproj
/usr/bin/sudo -E -- /bin/rmdir -- /Applications/zoom.us.app/Contents/Frameworks/ZoomUninstaller.app/Contents/Resources/de.lproj
/usr/bin/stat -f \%Of -- /Applications/zoom.us.app/Contents/Frameworks/Transcode.app/Contents/Resources/en.lproj
/usr/bin/sudo -E -- /bin/chmod -- 777 /Applications/zoom.us.app/Contents/Frameworks/Transcode.app/Contents/Resources/en.lproj
/usr/bin/sudo -E -- /bin/rmdir -- /Applications/zoom.us.app/Contents/Frameworks/Transcode.app/Contents/Resources/en.lproj
/usr/bin/stat -f \%Of -- /Applications/zoom.us.app/Contents/Frameworks/ZoomUninstaller.app/Contents/Resources/en.lproj
/usr/bin/sudo -E -- /bin/chmod -- 777 /Applications/zoom.us.app/Contents/Frameworks/ZoomUninstaller.app/Contents/Resources/en.lproj
/usr/bin/sudo -E -- /bin/rmdir -- /Applications/zoom.us.app/Contents/Frameworks/ZoomUninstaller.app/Contents/Resources/en.lproj
/usr/bin/stat -f \%Of -- /Applications/zoom.us.app/Contents/Frameworks/ZoomUninstaller.app/Contents/Resources/es.lproj
/usr/bin/sudo -E -- /bin/chmod -- 777 /Applications/zoom.us.app/Contents/Frameworks/ZoomUninstaller.app/Contents/Resources/es.lproj
/usr/bin/sudo -E -- /bin/rmdir -- /Applications/zoom.us.app/Contents/Frameworks/ZoomUninstaller.app/Contents/Resources/es.lproj
/usr/bin/stat -f \%Of -- /Applications/zoom.us.app/Contents/Frameworks/mcm.bundle/Contents/Resources/en.lproj
/usr/bin/sudo -E -- /bin/chmod -- 777 /Applications/zoom.us.app/Contents/Frameworks/mcm.bundle/Contents/Resources/en.lproj
/usr/bin/sudo -E -- /bin/rmdir -- /Applications/zoom.us.app/Contents/Frameworks/mcm.bundle/Contents/Resources/en.lproj
/usr/bin/stat -f \%Of -- /Applications/zoom.us.app/Contents/Frameworks/ZoomUninstaller.app/Contents/Resources/fr.lproj
/usr/bin/sudo -E -- /bin/chmod -- 777 /Applications/zoom.us.app/Contents/Frameworks/ZoomUninstaller.app/Contents/Resources/fr.lproj
/usr/bin/sudo -E -- /bin/rmdir -- /Applications/zoom.us.app/Contents/Frameworks/ZoomUninstaller.app/Contents/Resources/fr.lproj
/usr/bin/stat -f \%Of -- /Applications/zoom.us.app/Contents/Frameworks/ZoomUninstaller.app/Contents/Resources/it.lproj
/usr/bin/sudo -E -- /bin/chmod -- 777 /Applications/zoom.us.app/Contents/Frameworks/ZoomUninstaller.app/Contents/Resources/it.lproj
/usr/bin/sudo -E -- /bin/rmdir -- /Applications/zoom.us.app/Contents/Frameworks/ZoomUninstaller.app/Contents/Resources/it.lproj
/usr/bin/stat -f \%Of -- /Applications/zoom.us.app/Contents/Frameworks/Transcode.app/Contents/Resources/es.lproj
/usr/bin/sudo -E -- /bin/chmod -- 777 /Applications/zoom.us.app/Contents/Frameworks/Transcode.app/Contents/Resources/es.lproj
/usr/bin/sudo -E -- /bin/rmdir -- /Applications/zoom.us.app/Contents/Frameworks/Transcode.app/Contents/Resources/es.lproj
/usr/bin/stat -f \%Of -- /Applications/zoom.us.app/Contents/Frameworks/ZoomUninstaller.app/Contents/Resources/ja.lproj
/usr/bin/sudo -E -- /bin/chmod -- 777 /Applications/zoom.us.app/Contents/Frameworks/ZoomUninstaller.app/Contents/Resources/ja.lproj
/usr/bin/sudo -E -- /bin/rmdir -- /Applications/zoom.us.app/Contents/Frameworks/ZoomUninstaller.app/Contents/Resources/ja.lproj
/usr/bin/stat -f \%Of -- /Applications/zoom.us.app/Contents/Frameworks/nydus.framework/Versions/A/Resources
/usr/bin/sudo -E -- /bin/chmod -- 777 /Applications/zoom.us.app/Contents/Frameworks/nydus.framework/Versions/A/Resources
/usr/bin/sudo -E -- /bin/rmdir -- /Applications/zoom.us.app/Contents/Frameworks/nydus.framework/Versions/A/Resources
/usr/bin/stat -f \%Of -- /Applications/zoom.us.app/Contents/Frameworks/zWebService.bundle/Contents/Resources/en.lproj
/usr/bin/sudo -E -- /bin/chmod -- 777 /Applications/zoom.us.app/Contents/Frameworks/zWebService.bundle/Contents/Resources/en.lproj
/usr/bin/sudo -E -- /bin/rmdir -- /Applications/zoom.us.app/Contents/Frameworks/zWebService.bundle/Contents/Resources/en.lproj
/usr/bin/stat -f \%Of -- /Applications/zoom.us.app/Contents/Frameworks/Transcode.app/Contents/Resources/fr.lproj
/usr/bin/sudo -E -- /bin/chmod -- 777 /Applications/zoom.us.app/Contents/Frameworks/Transcode.app/Contents/Resources/fr.lproj
/usr/bin/sudo -E -- /bin/rmdir -- /Applications/zoom.us.app/Contents/Frameworks/Transcode.app/Contents/Resources/fr.lproj
/usr/bin/stat -f \%Of -- /Applications/zoom.us.app/Contents/Frameworks/ZoomUninstaller.app/Contents/Resources/ko-KR.lproj
/usr/bin/sudo -E -- /bin/chmod -- 777 /Applications/zoom.us.app/Contents/Frameworks/ZoomUninstaller.app/Contents/Resources/ko-KR.lproj
/usr/bin/sudo -E -- /bin/rmdir -- /Applications/zoom.us.app/Contents/Frameworks/ZoomUninstaller.app/Contents/Resources/ko-KR.lproj
/usr/bin/stat -f \%Of -- /Applications/zoom.us.app/Contents/Frameworks/ZoomUninstaller.app/Contents/Resources/pt-PT.lproj
/usr/bin/sudo -E -- /bin/chmod -- 777 /Applications/zoom.us.app/Contents/Frameworks/ZoomUninstaller.app/Contents/Resources/pt-PT.lproj
/usr/bin/sudo -E -- /bin/rmdir -- /Applications/zoom.us.app/Contents/Frameworks/ZoomUninstaller.app/Contents/Resources/pt-PT.lproj
/usr/bin/stat -f \%Of -- /Applications/zoom.us.app/Contents/Frameworks/Transcode.app/Contents/Resources/it.lproj
/usr/bin/sudo -E -- /bin/chmod -- 777 /Applications/zoom.us.app/Contents/Frameworks/Transcode.app/Contents/Resources/it.lproj
/usr/bin/sudo -E -- /bin/rmdir -- /Applications/zoom.us.app/Contents/Frameworks/Transcode.app/Contents/Resources/it.lproj
/usr/bin/stat -f \%Of -- /Applications/zoom.us.app/Contents/Frameworks/ZoomUninstaller.app/Contents/Resources/ru.lproj
/usr/bin/sudo -E -- /bin/chmod -- 777 /Applications/zoom.us.app/Contents/Frameworks/ZoomUninstaller.app/Contents/Resources/ru.lproj
/usr/bin/sudo -E -- /bin/rmdir -- /Applications/zoom.us.app/Contents/Frameworks/ZoomUninstaller.app/Contents/Resources/ru.lproj
/usr/bin/stat -f \%Of -- /Applications/zoom.us.app/Contents/Frameworks/ZoomUninstaller.app/Contents/Resources/vi.lproj
/usr/bin/sudo -E -- /bin/chmod -- 777 /Applications/zoom.us.app/Contents/Frameworks/ZoomUninstaller.app/Contents/Resources/vi.lproj
/usr/bin/sudo -E -- /bin/rmdir -- /Applications/zoom.us.app/Contents/Frameworks/ZoomUninstaller.app/Contents/Resources/vi.lproj
/usr/bin/stat -f \%Of -- /Applications/zoom.us.app/Contents/Frameworks/ZoomUninstaller.app/Contents/Resources/zh-Hans.lproj
/usr/bin/sudo -E -- /bin/chmod -- 777 /Applications/zoom.us.app/Contents/Frameworks/ZoomUninstaller.app/Contents/Resources/zh-Hans.lproj
/usr/bin/sudo -E -- /bin/rmdir -- /Applications/zoom.us.app/Contents/Frameworks/ZoomUninstaller.app/Contents/Resources/zh-Hans.lproj
/usr/bin/stat -f \%Of -- /Applications/zoom.us.app/Contents/Frameworks/ZoomUninstaller.app/Contents/Resources/zh-Hant.lproj
/usr/bin/sudo -E -- /bin/chmod -- 777 /Applications/zoom.us.app/Contents/Frameworks/ZoomUninstaller.app/Contents/Resources/zh-Hant.lproj
/usr/bin/sudo -E -- /bin/rmdir -- /Applications/zoom.us.app/Contents/Frameworks/ZoomUninstaller.app/Contents/Resources/zh-Hant.lproj
/usr/bin/stat -f \%Of -- /Applications/zoom.us.app/Contents/Frameworks/Transcode.app/Contents/Resources/ja.lproj
/usr/bin/sudo -E -- /bin/chmod -- 777 /Applications/zoom.us.app/Contents/Frameworks/Transcode.app/Contents/Resources/ja.lproj
/usr/bin/sudo -E -- /bin/rmdir -- /Applications/zoom.us.app/Contents/Frameworks/Transcode.app/Contents/Resources/ja.lproj
/usr/bin/stat -f \%Of -- /Applications/zoom.us.app/Contents/Frameworks/ZMScreenshot.app/Contents/Resources/zh-Hant.lproj
/usr/bin/sudo -E -- /bin/chmod -- 777 /Applications/zoom.us.app/Contents/Frameworks/ZMScreenshot.app/Contents/Resources/zh-Hant.lproj
/usr/bin/sudo -E -- /bin/rmdir -- /Applications/zoom.us.app/Contents/Frameworks/ZMScreenshot.app/Contents/Resources/zh-Hant.lproj
/usr/bin/stat -f \%Of -- /Applications/zoom.us.app/Contents/Frameworks/zVideoApp.bundle/Contents/Resources/en.lproj
/usr/bin/sudo -E -- /bin/chmod -- 777 /Applications/zoom.us.app/Contents/Frameworks/zVideoApp.bundle/Contents/Resources/en.lproj
/usr/bin/sudo -E -- /bin/rmdir -- /Applications/zoom.us.app/Contents/Frameworks/zVideoApp.bundle/Contents/Resources/en.lproj
/usr/bin/stat -f \%Of -- /Applications/zoom.us.app/Contents/Frameworks/cmmlib.framework/Versions/A/Resources
/usr/bin/sudo -E -- /bin/chmod -- 777 /Applications/zoom.us.app/Contents/Frameworks/cmmlib.framework/Versions/A/Resources
/usr/bin/sudo -E -- /bin/rmdir -- /Applications/zoom.us.app/Contents/Frameworks/cmmlib.framework/Versions/A/Resources
/usr/bin/stat -f \%Of -- /Applications/zoom.us.app/Contents/Frameworks/cmmlib.framework/Versions/A/_CodeSignature
/usr/bin/sudo -E -- /bin/chmod -- 777 /Applications/zoom.us.app/Contents/Frameworks/cmmlib.framework/Versions/A/_CodeSignature
/usr/bin/sudo -E -- /bin/rmdir -- /Applications/zoom.us.app/Contents/Frameworks/cmmlib.framework/Versions/A/_CodeSignature
/usr/bin/stat -f \%Of -- /Applications/zoom.us.app/Contents/Frameworks/zlt.bundle/Contents/Resources/en.lproj
/usr/bin/sudo -E -- /bin/chmod -- 777 /Applications/zoom.us.app/Contents/Frameworks/zlt.bundle/Contents/Resources/en.lproj
/usr/bin/sudo -E -- /bin/rmdir -- /Applications/zoom.us.app/Contents/Frameworks/zlt.bundle/Contents/Resources/en.lproj
/usr/bin/stat -f \%Of -- /Applications/zoom.us.app/Contents/Frameworks/zmb.bundle/Contents/Resources/en.lproj
/usr/bin/sudo -E -- /bin/chmod -- 777 /Applications/zoom.us.app/Contents/Frameworks/zmb.bundle/Contents/Resources/en.lproj
/usr/bin/sudo -E -- /bin/rmdir -- /Applications/zoom.us.app/Contents/Frameworks/zmb.bundle/Contents/Resources/en.lproj
/usr/bin/stat -f \%Of -- /Applications/zoom.us.app/Contents/Frameworks/zAutoUpdate.bundle/Contents/Resources/en.lproj
/usr/bin/sudo -E -- /bin/chmod -- 777 /Applications/zoom.us.app/Contents/Frameworks/zAutoUpdate.bundle/Contents/Resources/en.lproj
/usr/bin/sudo -E -- /bin/rmdir -- /Applications/zoom.us.app/Contents/Frameworks/zAutoUpdate.bundle/Contents/Resources/en.lproj
/usr/bin/stat -f \%Of -- /Applications/zoom.us.app/Contents/Frameworks/viper.framework/Versions/A/Resources
/usr/bin/sudo -E -- /bin/chmod -- 777 /Applications/zoom.us.app/Contents/Frameworks/viper.framework/Versions/A/Resources
/usr/bin/sudo -E -- /bin/rmdir -- /Applications/zoom.us.app/Contents/Frameworks/viper.framework/Versions/A/Resources
/usr/bin/stat -f \%Of -- /Applications/zoom.us.app/Contents/Frameworks/viper.framework/Versions/A/_CodeSignature
/usr/bin/sudo -E -- /bin/chmod -- 777 /Applications/zoom.us.app/Contents/Frameworks/viper.framework/Versions/A/_CodeSignature
/usr/bin/sudo -E -- /bin/rmdir -- /Applications/zoom.us.app/Contents/Frameworks/viper.framework/Versions/A/_CodeSignature
/usr/bin/stat -f \%Of -- /Applications/zoom.us.app/Contents/Frameworks/ZMScreenshot.app/Contents/Resources/ru.lproj
/usr/bin/sudo -E -- /bin/chmod -- 777 /Applications/zoom.us.app/Contents/Frameworks/ZMScreenshot.app/Contents/Resources/ru.lproj
/usr/bin/sudo -E -- /bin/rmdir -- /Applications/zoom.us.app/Contents/Frameworks/ZMScreenshot.app/Contents/Resources/ru.lproj
/usr/bin/stat -f \%Of -- /Applications/zoom.us.app/Contents/Frameworks/curl64.framework/Versions/A/Resources
/usr/bin/sudo -E -- /bin/chmod -- 777 /Applications/zoom.us.app/Contents/Frameworks/curl64.framework/Versions/A/Resources
/usr/bin/sudo -E -- /bin/rmdir -- /Applications/zoom.us.app/Contents/Frameworks/curl64.framework/Versions/A/Resources
/usr/bin/stat -f \%Of -- /Applications/zoom.us.app/Contents/Frameworks/curl64.framework/Versions/A/_CodeSignature
/usr/bin/sudo -E -- /bin/chmod -- 777 /Applications/zoom.us.app/Contents/Frameworks/curl64.framework/Versions/A/_CodeSignature
/usr/bin/sudo -E -- /bin/rmdir -- /Applications/zoom.us.app/Contents/Frameworks/curl64.framework/Versions/A/_CodeSignature
/usr/bin/stat -f \%Of -- /Applications/zoom.us.app/Contents/Frameworks/xmpp_framework.framework/Versions/A/Resources
/usr/bin/sudo -E -- /bin/chmod -- 777 /Applications/zoom.us.app/Contents/Frameworks/xmpp_framework.framework/Versions/A/Resources
/usr/bin/sudo -E -- /bin/rmdir -- /Applications/zoom.us.app/Contents/Frameworks/xmpp_framework.framework/Versions/A/Resources
sudo: 4294967295: invalid value
sudo: error initializing audit plugin sudoers_audit
/usr/bin/sudo -E -- /bin/chmod -- 755 /Applications/zoom.us.app/Contents/Frameworks/xmpp_framework.framework/Versions/A/Resources
/usr/bin/sudo -E -- /usr/bin/chflags -- 0 /Applications/zoom.us.app/Contents/Frameworks/xmpp_framework.framework/Versions/A/Resources
==> Purging files for version 5.5.13130.0228 of Cask zoom
Error: zoom: Failure while executing; `/usr/bin/sudo -E -- /bin/rmdir -- /Applications/zoom.us.app/Contents/Frameworks/xmpp_framework.framework/Versions/A/Resources` exited with 1. Here's the output:
sudo: 4294967295: invalid value
sudo: error initializing audit plugin sudoers_audit

/usr/local/Homebrew/Library/Homebrew/cask/cmd/upgrade.rb:127:in `upgrade_casks'
/usr/local/Homebrew/Library/Homebrew/cmd/upgrade.rb:186:in `upgrade_outdated_casks'
/usr/local/Homebrew/Library/Homebrew/cmd/upgrade.rb:107:in `upgrade'
/usr/local/Homebrew/Library/Homebrew/brew.rb:122:in `<main>'

Output of brew doctor --verbose

$ brew doctor --verbose              
==> Cask Environment Variables:
BUNDLE_PATH
CHRUBY_VERSION
GEM_HOME
GEM_PATH
HOMEBREW_CASK_OPTS
LC_ALL
PATH
RBENV_VERSION
RUBYLIB
RUBYOPT
RUBYPATH
SHELL
==> $LOAD_PATHS
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/warning-1.2.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/tapioca-0.4.15/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/spoom-1.0.9/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/thor-1.1.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/sorbet-runtime-stub-0.2.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/ruby-macho-2.5.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/rubocop-sorbet-0.5.1/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/rubocop-rspec-2.2.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/rubocop-rails-2.9.1/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/rubocop-performance-1.10.1/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/rubocop-1.11.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/unicode-display_width-2.0.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/ruby-progressbar-1.11.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/rubocop-ast-1.4.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-sorbet-1.8.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/sorbet-0.5.6274/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/sorbet-static-0.5.6274-universal-darwin-14/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/rspec-retry-0.6.2/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-github-2.3.1/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/rspec-3.10.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/rspec-mocks-3.10.2/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/rspec-expectations-3.10.1/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/rspec-core-3.10.1/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/rspec-support-3.10.2/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/rexml-3.2.4/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/regexp_parser-2.1.1/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/rdiscount-2.2.0.2/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/extensions/x86_64-darwin-14/2.6.0-static/rdiscount-2.2.0.2
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/rack-2.2.3/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/pry-0.14.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/plist-3.6.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/patchelf-1.3.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/parlour-5.0.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/sorbet-runtime-0.5.6274/lib
/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/parser-3.0.0.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/parallel_tests-3.5.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/parallel-1.20.1/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/mustache-1.1.1/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/method_source-1.0.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/mechanize-2.7.7/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/webrick-1.7.0/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.11.1-x86_64-darwin/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/racc-1.5.2/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/extensions/x86_64-darwin-14/2.6.0-static/racc-1.5.2
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/mini_portile2-2.5.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/net-http-persistent-4.0.1/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.1/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/mime-types-data-3.2021.0212/lib
/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-14/2.6.0-static/hpricot-0.8.6
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/elftools-1.1.3/lib
/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.7/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/extensions/x86_64-darwin-14/2.6.0-static/unf_ext-0.0.7.7
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/diff-lcs-1.4.4/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/connection_pool-2.2.3/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/commander-4.5.2/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/highline-2.0.3/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/colorize-0.8.1/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/coderay-1.1.3/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/codecov-0.5.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/simplecov-0.21.2/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/simplecov_json_formatter-0.1.2/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/simplecov-html-0.12.3/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/docile-1.3.5/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/byebug-11.1.3/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/extensions/x86_64-darwin-14/2.6.0-static/byebug-11.1.3
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/bootsnap-1.7.2/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/extensions/x86_64-darwin-14/2.6.0-static/bootsnap-1.7.2
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/msgpack-1.4.2/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/extensions/x86_64-darwin-14/2.6.0-static/msgpack-1.4.2
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/bindata-2.4.8/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/ast-2.4.2/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/activesupport-6.1.3/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/zeitwerk-2.4.2/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/tzinfo-2.0.4/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/minitest-5.14.4/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/i18n-1.8.9/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/concurrent-ruby-1.1.8/lib/concurrent-ruby
/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3_2/lib/ruby/site_ruby/2.6.0
/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3_2/lib/ruby/site_ruby/2.6.0/x86_64-darwin14
/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3_2/lib/ruby/site_ruby
/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3_2/lib/ruby/vendor_ruby/2.6.0
/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3_2/lib/ruby/vendor_ruby/2.6.0/x86_64-darwin14
/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3_2/lib/ruby/vendor_ruby
/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3_2/lib/ruby/2.6.0
/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3_2/lib/ruby/2.6.0/x86_64-darwin14
/usr/local/Homebrew/Library/Homebrew
/usr/bin/xattr
/usr/bin/swift /usr/local/Homebrew/Library/Homebrew/cask/utils/quarantine.swift
==> Homebrew Version
3.0.4-14-g9d62a13
==> macOS
10.15.7
==> SIP
Enabled
==> Homebrew Cask Staging Location
/usr/local/Caskroom
==> Homebrew Cask Taps:
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask (3841 casks)
/usr/local/Homebrew/Library/Taps/chef/homebrew-chef (4 casks)
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask-versions (184 casks)
/usr/bin/xattr
Your system is ready to brew.

Output of brew tap

$ brew tap               
aws/tap
chef/chef
github/gh
homebrew/bundle
homebrew/cask
homebrew/cask-versions
homebrew/core
homebrew/services
teamookla/speedtest
weaveworks/tap
lindsleycj commented 3 years ago

I'm seeing this exact same issue with the Puppet pdk cask.

brew -v
Homebrew 3.0.4
Homebrew/homebrew-core (git revision 54ea21; last commit 2021-03-04)
Homebrew/homebrew-cask (git revision 36d6b; last commit 2021-03-04)
sudo: 4294967295: invalid value
sudo: error initializing audit plugin sudoers_audit
==> Purging files for version 2.0.0.0 of Cask pdk
Error: puppetlabs/puppet/pdk: Failure while executing; `/usr/bin/sudo -E -- /bin/rmdir -- /opt/puppetlabs/pdk/private/puppet/ruby/2.5.0/gems/puppet-6.17.0/bin` exited with 1. Here's the output:
sudo: 4294967295: invalid value
sudo: error initializing audit plugin sudoers_audit
vitorgalvao commented 3 years ago

Pinging @reitermarkus, who may know of a recent change.

lindsleycj commented 3 years ago

here's my version of sudo:

sudo --version
Sudo version 1.9.5p2
Sudoers policy plugin version 1.9.5p2
Sudoers file grammar version 48
Sudoers I/O plugin version 1.9.5p2
Sudoers audit plugin version 1.9.5p2

It looks like the audit plugin is a relatively new concept in sudo

https://github.com/sudo-project/sudo/releases/tag/SUDO_1_9_0

joewiz commented 3 years ago

I wonder if this is also the root of the problem I reported in https://github.com/Homebrew/homebrew-cask/pull/101360#issuecomment-802876871?

github-actions[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

harveymonster commented 3 years ago

This is still happening for me. Not sure what to do so the issue doesn't go stale though.

vitorgalvao commented 3 years ago

Not sure what to do so the issue doesn't go stale though.

Try to find the cause or / and a solution. Is this an issue with homebrew or sudo? Can you run git bisect and find where the issue was introduced? What else could it be?

This is a volunteer-run project. If you dump a bug report and expect maintainers to do all the work of diagnosing and fixing, you’re at the mercy of when those volunteers have time and want to look at the particular bug you care about. Which might be never.

Do or find someone else to do the work or part of it. That’s how you get the resolution going.

Mazorius commented 3 years ago

For me this was fixed with the help of brew update-reset && brew update

harveymonster commented 3 years ago

Running brew update-reset && brew update seems to have fixed it for the first cask that needs to be upgraded or if the upgrade targets only a single cask. If I run brew upgrade multiple times, you can eventually get all upgrades installed. So at least I now have a workaround to get the upgrades.

github-actions[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

adaugherity commented 3 years ago

I haven't done enough cask upgrade operations to be 100% sure, but putting Set group_source dynamic in /etc/sudo.conf as described at https://bugzilla.sudo.ws/show_bug.cgi?id=946#c5 seems to have fixed it for me.

This is apparently the new default setting in sudo 1.9.6, but my system (10.15.17) still only has 1.9.5p2. I would encourage anyone else encountering this error to give this a try.