Homebrew / homebrew-cask

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

Cask `microsoft-office` is broken? #102399

Closed rickygao closed 3 years ago

rickygao commented 3 years ago

Description of issue

I cannot {upgrade, uninstall, reinstall} the cask microsoft-office.

Command that failed

brew uninstall microsoft-office # also for upgrade and reinstall

Output of command with --verbose --debug

/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/pandoc.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/gh.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/cmake.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/popt.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/readline.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/aria2.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/v2ray.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/lz4.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/rsync.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/kotlin.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/xz.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/openjdk.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/libssh2.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/zstd.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/tcl-tk.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/xxhash.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/pcre2.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/openssl@1.1.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/node.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/cocoapods.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/git.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::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/ghostscript.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/pkg-config.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/libtiff.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/jpeg.rb
==> Uninstalling Cask microsoft-office
==> Uninstalling Cask microsoft-office
==> Uninstalling artifacts
==> 3 artifacts defined
#<SortedSet: {#<Cask::Artifact::Uninstall:0x00007fd77498d7a0 @cask=#<Cask::Cask:0x00007fd770b68358 @token="microsoft-office", @sourcefile_path=#<Pathname:/usr/local/Caskroom/microsoft-office/.metadata/16.46.21021202/20210218035024.862/Casks/microsoft-office.rb>, @tap=nil, @block=#<Proc:0x00007fd770b68290@/usr/local/Caskroom/microsoft-office/.metadata/16.46.21021202/20210218035024.862/Casks/microsoft-office.rb:1>, @default_config=#<Cask::Config:0x00007fd770b68268 @explicit={}>, @caskroom_path=#<Pathname:/usr/local/Caskroom/microsoft-office>, @metadata_master_container_path=#<Pathname:/usr/local/Caskroom/microsoft-office/.metadata>, @config=#<Cask::Config:0x00007fd770b8b0b0 @explicit={}, @default={:languages=>["zh-Hans-CN", "en-CN", "ja-CN"], :appdir=>#<Pathname:/Applications>, :colorpickerdir=>#<Pathname:/Users/gaoruijun/Library/ColorPickers>, :prefpanedir=>#<Pathname:/Users/gaoruijun/Library/PreferencePanes>, :qlplugindir=>#<Pathname:/Users/gaoruijun/Library/QuickLook>, :mdimporterdir=>#<Pathname:/Users/gaoruijun/Library/Spotlight>, :dictionarydir=>#<Pathname:/Users/gaoruijun/Library/Dictionaries>, :fontdir=>#<Pathname:/Users/gaoruijun/Library/Fonts>, :servicedir=>#<Pathname:/Users/gaoruijun/Library/Services>, :input_methoddir=>#<Pathname:/Users/gaoruijun/Library/Input Methods>, :internet_plugindir=>#<Pathname:/Users/gaoruijun/Library/Internet Plug-Ins>, :audio_unit_plugindir=>#<Pathname:/Users/gaoruijun/Library/Audio/Plug-Ins/Components>, :vst_plugindir=>#<Pathname:/Users/gaoruijun/Library/Audio/Plug-Ins/VST>, :vst3_plugindir=>#<Pathname:/Users/gaoruijun/Library/Audio/Plug-Ins/VST3>, :screen_saverdir=>#<Pathname:/Users/gaoruijun/Library/Screen Savers>}, @env={}>, @dsl=#<Cask::DSL:0x00007fd770b7aff8 @cask=#<Cask::Cask:0x00007fd770b68358 ...>, @token="microsoft-office", @version="16.46.21021202", @sha256=#<Checksum:0x00007fd770b7ac88 @hexdigest="587a3b13b587e25befbb4fb762e9f203e50ea1c621016e2552455bf0b3796673">, @url=#<URL:0x00007fd770b7a2d8 @uri=#<URI::HTTPS https://officecdn-microsoft-com.akamaized.net/pr/C1297A47-86C4-4C1F-97FA-950631F94777/MacAutoupdate/Microsoft_Office_16.46.21021202_Installer.pkg>, @verified="officecdn-microsoft-com.akamaized.net/pr/C1297A47-86C4-4C1F-97FA-950631F94777/MacAutoupdate/", @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=>"officecdn-microsoft-com.akamaized.net/pr/C1297A47-86C4-4C1F-97FA-950631F94777/MacAutoupdate/", :user_agent=>:default}, @from_block=false, @caller_location="/usr/local/Caskroom/microsoft-office/.metadata/16.46.21021202/20210218035024.862/Casks/microsoft-office.rb:5:in `block in load'">, @name=["Microsoft Office"], @homepage="https://products.office.com/mac/microsoft-office-for-mac/", @auto_updates=true, @conflicts_with={:cask=>#<Set: {"microsoft-word", "microsoft-excel", "microsoft-powerpoint", "microsoft-outlook", "onedrive"}>}, @depends_on={:cask=>["microsoft-auto-update"], :macos=>#<MacOSRequirement: version>="10.12" []>}, @artifacts=#<SortedSet: {...}>, @staged_path=#<Pathname:/usr/local/Caskroom/microsoft-office/16.46.21021202>, @language_eval=nil>>, @directives={:pkgutil=>["com.microsoft.package.DFonts", "com.microsoft.package.Frameworks", "com.microsoft.package.Microsoft_AutoUpdate.app", "com.microsoft.package.Microsoft_Excel.app", "com.microsoft.package.Microsoft_OneNote.app", "com.microsoft.package.Microsoft_Outlook.app", "com.microsoft.package.Microsoft_PowerPoint.app", "com.microsoft.package.Microsoft_Word.app", "com.microsoft.package.Proofing_Tools", "com.microsoft.pkg.licensing", "com.microsoft.OneDrive"], :delete=>["/Applications/Microsoft Excel.app", "/Applications/Microsoft OneNote.app", "/Applications/Microsoft Outlook.app", "/Applications/Microsoft PowerPoint.app", "/Applications/Microsoft Word.app", "/Applications/OneDrive.app"], :launchctl=>["com.microsoft.office.licensing.helper", "com.microsoft.office.licensingV2.helper", "com.microsoft.OneDriveStandaloneUpdater", "com.microsoft.OneDriveStandaloneUpdaterDaemon", "com.microsoft.OneDriveUpdaterDaemon"], :signal=>[]}>, #<Cask::Artifact::Pkg:0x00007fd77498ef10 @cask=#<Cask::Cask:0x00007fd770b68358 @token="microsoft-office", @sourcefile_path=#<Pathname:/usr/local/Caskroom/microsoft-office/.metadata/16.46.21021202/20210218035024.862/Casks/microsoft-office.rb>, @tap=nil, @block=#<Proc:0x00007fd770b68290@/usr/local/Caskroom/microsoft-office/.metadata/16.46.21021202/20210218035024.862/Casks/microsoft-office.rb:1>, @default_config=#<Cask::Config:0x00007fd770b68268 @explicit={}>, @caskroom_path=#<Pathname:/usr/local/Caskroom/microsoft-office>, @metadata_master_container_path=#<Pathname:/usr/local/Caskroom/microsoft-office/.metadata>, @config=#<Cask::Config:0x00007fd770b8b0b0 @explicit={}, @default={:languages=>["zh-Hans-CN", "en-CN", "ja-CN"], :appdir=>#<Pathname:/Applications>, :colorpickerdir=>#<Pathname:/Users/gaoruijun/Library/ColorPickers>, :prefpanedir=>#<Pathname:/Users/gaoruijun/Library/PreferencePanes>, :qlplugindir=>#<Pathname:/Users/gaoruijun/Library/QuickLook>, :mdimporterdir=>#<Pathname:/Users/gaoruijun/Library/Spotlight>, :dictionarydir=>#<Pathname:/Users/gaoruijun/Library/Dictionaries>, :fontdir=>#<Pathname:/Users/gaoruijun/Library/Fonts>, :servicedir=>#<Pathname:/Users/gaoruijun/Library/Services>, :input_methoddir=>#<Pathname:/Users/gaoruijun/Library/Input Methods>, :internet_plugindir=>#<Pathname:/Users/gaoruijun/Library/Internet Plug-Ins>, :audio_unit_plugindir=>#<Pathname:/Users/gaoruijun/Library/Audio/Plug-Ins/Components>, :vst_plugindir=>#<Pathname:/Users/gaoruijun/Library/Audio/Plug-Ins/VST>, :vst3_plugindir=>#<Pathname:/Users/gaoruijun/Library/Audio/Plug-Ins/VST3>, :screen_saverdir=>#<Pathname:/Users/gaoruijun/Library/Screen Savers>}, @env={}>, @dsl=#<Cask::DSL:0x00007fd770b7aff8 @cask=#<Cask::Cask:0x00007fd770b68358 ...>, @token="microsoft-office", @version="16.46.21021202", @sha256=#<Checksum:0x00007fd770b7ac88 @hexdigest="587a3b13b587e25befbb4fb762e9f203e50ea1c621016e2552455bf0b3796673">, @url=#<URL:0x00007fd770b7a2d8 @uri=#<URI::HTTPS https://officecdn-microsoft-com.akamaized.net/pr/C1297A47-86C4-4C1F-97FA-950631F94777/MacAutoupdate/Microsoft_Office_16.46.21021202_Installer.pkg>, @verified="officecdn-microsoft-com.akamaized.net/pr/C1297A47-86C4-4C1F-97FA-950631F94777/MacAutoupdate/", @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=>"officecdn-microsoft-com.akamaized.net/pr/C1297A47-86C4-4C1F-97FA-950631F94777/MacAutoupdate/", :user_agent=>:default}, @from_block=false, @caller_location="/usr/local/Caskroom/microsoft-office/.metadata/16.46.21021202/20210218035024.862/Casks/microsoft-office.rb:5:in `block in load'">, @name=["Microsoft Office"], @homepage="https://products.office.com/mac/microsoft-office-for-mac/", @auto_updates=true, @conflicts_with={:cask=>#<Set: {"microsoft-word", "microsoft-excel", "microsoft-powerpoint", "microsoft-outlook", "onedrive"}>}, @depends_on={:cask=>["microsoft-auto-update"], :macos=>#<MacOSRequirement: version>="10.12" []>}, @artifacts=#<SortedSet: {...}>, @staged_path=#<Pathname:/usr/local/Caskroom/microsoft-office/16.46.21021202>, @language_eval=nil>>, @path=#<Pathname:/usr/local/Caskroom/microsoft-office/16.46.21021202/Microsoft_Office_16.46.21021202_Installer.pkg>, @stanza_options={:choices=>[{"choiceIdentifier"=>"com.microsoft.autoupdate", "choiceAttribute"=>"selected", "attributeSetting"=>0}]}>, #<Cask::Artifact::Zap:0x00007fd77498c1e8 @cask=#<Cask::Cask:0x00007fd770b68358 @token="microsoft-office", @sourcefile_path=#<Pathname:/usr/local/Caskroom/microsoft-office/.metadata/16.46.21021202/20210218035024.862/Casks/microsoft-office.rb>, @tap=nil, @block=#<Proc:0x00007fd770b68290@/usr/local/Caskroom/microsoft-office/.metadata/16.46.21021202/20210218035024.862/Casks/microsoft-office.rb:1>, @default_config=#<Cask::Config:0x00007fd770b68268 @explicit={}>, @caskroom_path=#<Pathname:/usr/local/Caskroom/microsoft-office>, @metadata_master_container_path=#<Pathname:/usr/local/Caskroom/microsoft-office/.metadata>, @config=#<Cask::Config:0x00007fd770b8b0b0 @explicit={}, @default={:languages=>["zh-Hans-CN", "en-CN", "ja-CN"], :appdir=>#<Pathname:/Applications>, :colorpickerdir=>#<Pathname:/Users/gaoruijun/Library/ColorPickers>, :prefpanedir=>#<Pathname:/Users/gaoruijun/Library/PreferencePanes>, :qlplugindir=>#<Pathname:/Users/gaoruijun/Library/QuickLook>, :mdimporterdir=>#<Pathname:/Users/gaoruijun/Library/Spotlight>, :dictionarydir=>#<Pathname:/Users/gaoruijun/Library/Dictionaries>, :fontdir=>#<Pathname:/Users/gaoruijun/Library/Fonts>, :servicedir=>#<Pathname:/Users/gaoruijun/Library/Services>, :input_methoddir=>#<Pathname:/Users/gaoruijun/Library/Input Methods>, :internet_plugindir=>#<Pathname:/Users/gaoruijun/Library/Internet Plug-Ins>, :audio_unit_plugindir=>#<Pathname:/Users/gaoruijun/Library/Audio/Plug-Ins/Components>, :vst_plugindir=>#<Pathname:/Users/gaoruijun/Library/Audio/Plug-Ins/VST>, :vst3_plugindir=>#<Pathname:/Users/gaoruijun/Library/Audio/Plug-Ins/VST3>, :screen_saverdir=>#<Pathname:/Users/gaoruijun/Library/Screen Savers>}, @env={}>, @dsl=#<Cask::DSL:0x00007fd770b7aff8 @cask=#<Cask::Cask:0x00007fd770b68358 ...>, @token="microsoft-office", @version="16.46.21021202", @sha256=#<Checksum:0x00007fd770b7ac88 @hexdigest="587a3b13b587e25befbb4fb762e9f203e50ea1c621016e2552455bf0b3796673">, @url=#<URL:0x00007fd770b7a2d8 @uri=#<URI::HTTPS https://officecdn-microsoft-com.akamaized.net/pr/C1297A47-86C4-4C1F-97FA-950631F94777/MacAutoupdate/Microsoft_Office_16.46.21021202_Installer.pkg>, @verified="officecdn-microsoft-com.akamaized.net/pr/C1297A47-86C4-4C1F-97FA-950631F94777/MacAutoupdate/", @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=>"officecdn-microsoft-com.akamaized.net/pr/C1297A47-86C4-4C1F-97FA-950631F94777/MacAutoupdate/", :user_agent=>:default}, @from_block=false, @caller_location="/usr/local/Caskroom/microsoft-office/.metadata/16.46.21021202/20210218035024.862/Casks/microsoft-office.rb:5:in `block in load'">, @name=["Microsoft Office"], @homepage="https://products.office.com/mac/microsoft-office-for-mac/", @auto_updates=true, @conflicts_with={:cask=>#<Set: {"microsoft-word", "microsoft-excel", "microsoft-powerpoint", "microsoft-outlook", "onedrive"}>}, @depends_on={:cask=>["microsoft-auto-update"], :macos=>#<MacOSRequirement: version>="10.12" []>}, @artifacts=#<SortedSet: {...}>, @staged_path=#<Pathname:/usr/local/Caskroom/microsoft-office/16.46.21021202>, @language_eval=nil>>, @directives={:trash=>["~/Library/Application Scripts/com.microsoft.Excel", "~/Library/Application Scripts/com.microsoft.Office365ServiceV2", "~/Library/Application Scripts/com.microsoft.Outlook", "~/Library/Application Scripts/com.microsoft.Powerpoint", "~/Library/Application Scripts/com.microsoft.Word", "~/Library/Application Scripts/com.microsoft.errorreporting", "~/Library/Application Scripts/com.microsoft.onenote.mac", "~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.microsoft.excel.sfl*", "~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.microsoft.powerpoint.sfl*", "~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.microsoft.word.sfl*", "~/Library/Application Support/CrashReporter/Microsoft Error Reporting_*.plist", "~/Library/Application Support/Microsoft Update Assistant", "~/Library/Caches/com.microsoft.OneDriveStandaloneUpdater", "~/Library/Caches/com.plausiblelabs.crashreporter.data/com.microsoft.OneDriveStandaloneUpdater", "~/Library/Containers/com.microsoft.Excel", "~/Library/Containers/com.microsoft.Office365ServiceV2", "~/Library/Containers/com.microsoft.Outlook", "~/Library/Containers/com.microsoft.Powerpoint", "~/Library/Containers/com.microsoft.com.microsoft.RMS-XPCService", "~/Library/Containers/com.microsoft.Word", "~/Library/Containers/com.microsoft.errorreporting", "~/Library/Containers/com.microsoft.netlib.shipassertprocess", "~/Library/Containers/com.microsoft.onenote.mac", "~/Library/Group Containers/UBF8T346G9.Office", "~/Library/Group Containers/UBF8T346G9.OfficeOneDriveSyncIntegration", "~/Library/Group Containers/UBF8T346G9.OfficeOsfWebHost", "~/Library/Group Containers/UBF8T346G9.ms", "~/Library/Preferences/com.microsoft.Excel.plist", "~/Library/Preferences/com.microsoft.Outlook.plist", "~/Library/Preferences/com.microsoft.Powerpoint.plist", "~/Library/Preferences/com.microsoft.Word.plist", "~/Library/Saved Application State/com.microsoft.office.setupassistant.savedState"], :signal=>[]}>}>
==> Uninstalling artifact of class Cask::Artifact::Uninstall
==> Removing launchctl service com.microsoft.office.licensing.helper
/bin/launchctl list com.microsoft.office.licensing.helper
/usr/bin/sudo -E -- /bin/launchctl list com.microsoft.office.licensing.helper
==> Removing launchctl service com.microsoft.office.licensingV2.helper
/bin/launchctl list com.microsoft.office.licensingV2.helper
/usr/bin/sudo -E -- /bin/launchctl list com.microsoft.office.licensingV2.helper
==> Removing launchctl service com.microsoft.OneDriveStandaloneUpdater
/bin/launchctl list com.microsoft.OneDriveStandaloneUpdater
/usr/bin/sudo -E -- /bin/launchctl list com.microsoft.OneDriveStandaloneUpdater
==> Removing launchctl service com.microsoft.OneDriveStandaloneUpdaterDaemon
/bin/launchctl list com.microsoft.OneDriveStandaloneUpdaterDaemon
/usr/bin/sudo -E -- /bin/launchctl list com.microsoft.OneDriveStandaloneUpdaterDaemon
==> Removing launchctl service com.microsoft.OneDriveUpdaterDaemon
/bin/launchctl list com.microsoft.OneDriveUpdaterDaemon
/usr/bin/sudo -E -- /bin/launchctl list com.microsoft.OneDriveUpdaterDaemon
==> Uninstalling packages:
/usr/sbin/pkgutil --pkgs=com.microsoft.package.DFonts
com.microsoft.package.DFonts
/usr/sbin/pkgutil --files com.microsoft.package.DFonts
/usr/sbin/pkgutil --pkg-info-plist com.microsoft.package.DFonts
/usr/bin/sudo -E -- /usr/bin/xargs -0 -- /bin/bash -c set\ -euo\ pipefail'
''
'for\ path\ in\ \"\$\{@\}\"\;\ do'
'\ \ if\ \[\[\ -e\ \"\$\{path\}/.DS_Store\"\ \]\]\;\ then'
'\ \ \ \ /bin/rm\ -f\ \"\$\{path\}/.DS_Store\"'
'\ \ fi'
''
'\ \ \#\ Some\ packages\ leave\ broken\ symlinks\ around\;\ we\ clean\ them\ out\ before'
'\ \ \#\ attempting\ to\ \`rmdir\`\ to\ prevent\ extra\ cruft\ from\ accumulating.'
'\ \ /usr/bin/find\ \"\$\{path\}\"\ -mindepth\ 1\ -maxdepth\ 1\ -type\ l\ \!\ -exec\ /bin/test\ -e\ \{\}\ \\\;\ -delete'
''
'\ \ if\ \[\[\ -L\ \"\$\{path\}\"\ \]\]\;\ then'
'\ \ \ \ \#\ Delete\ directory\ symlink.'
'\ \ \ \ /bin/rm\ \"\$\{path\}\"'
'\ \ elif\ \[\[\ -d\ \"\$\{path\}\"\ \]\]\;\ then'
'\ \ \ \ \#\ Delete\ directory\ if\ empty.'
'\ \ \ \ /usr/bin/find\ \"\$\{path\}\"\ -maxdepth\ 0\ -type\ d\ -empty\ -exec\ /bin/rmdir\ \{\}\ \\\;'
'\ \ else'
'\ \ \ \ \#\ Try\ \`rmdir\`\ anyways\ to\ show\ a\ proper\ error.'
'\ \ \ \ /bin/rmdir\ \"\$\{path\}\"'
'\ \ fi'
'done'
' --
find: /private/tmp/com.microsoft.package.DFonts: No such file or directory
Error: Failure while executing; `/usr/bin/sudo -E -- /usr/bin/xargs -0 -- /bin/bash -c set\ -euo\ pipefail'
''
'for\ path\ in\ \"\$\{@\}\"\;\ do'
'\ \ if\ \[\[\ -e\ \"\$\{path\}/.DS_Store\"\ \]\]\;\ then'
'\ \ \ \ /bin/rm\ -f\ \"\$\{path\}/.DS_Store\"'
'\ \ fi'
''
'\ \ \#\ Some\ packages\ leave\ broken\ symlinks\ around\;\ we\ clean\ them\ out\ before'
'\ \ \#\ attempting\ to\ \`rmdir\`\ to\ prevent\ extra\ cruft\ from\ accumulating.'
'\ \ /usr/bin/find\ \"\$\{path\}\"\ -mindepth\ 1\ -maxdepth\ 1\ -type\ l\ \!\ -exec\ /bin/test\ -e\ \{\}\ \\\;\ -delete'
''
'\ \ if\ \[\[\ -L\ \"\$\{path\}\"\ \]\]\;\ then'
'\ \ \ \ \#\ Delete\ directory\ symlink.'
'\ \ \ \ /bin/rm\ \"\$\{path\}\"'
'\ \ elif\ \[\[\ -d\ \"\$\{path\}\"\ \]\]\;\ then'
'\ \ \ \ \#\ Delete\ directory\ if\ empty.'
'\ \ \ \ /usr/bin/find\ \"\$\{path\}\"\ -maxdepth\ 0\ -type\ d\ -empty\ -exec\ /bin/rmdir\ \{\}\ \\\;'
'\ \ else'
'\ \ \ \ \#\ Try\ \`rmdir\`\ anyways\ to\ show\ a\ proper\ error.'
'\ \ \ \ /bin/rmdir\ \"\$\{path\}\"'
'\ \ fi'
'done'
' --` exited with 1. Here's the output:
find: /private/tmp/com.microsoft.package.DFonts: No such file or directory

/usr/local/Homebrew/Library/Homebrew/system_command.rb:247:in `assert_success!'
/usr/local/Homebrew/Library/Homebrew/system_command.rb:63:in `run!'
/usr/local/Homebrew/Library/Homebrew/system_command.rb:38:in `run'
/usr/local/Homebrew/Library/Homebrew/system_command.rb:42:in `run!'
/usr/local/Homebrew/Library/Homebrew/cask/pkg.rb:138:in `rmdir'
/usr/local/Homebrew/Library/Homebrew/cask/pkg.rb:56:in `uninstall'
/usr/local/Homebrew/Library/Homebrew/cask/artifact/abstract_uninstall.rb:319:in `block (2 levels) in uninstall_pkgutil'
/usr/local/Homebrew/Library/Homebrew/cask/artifact/abstract_uninstall.rb:317:in `each'
/usr/local/Homebrew/Library/Homebrew/cask/artifact/abstract_uninstall.rb:317:in `block in uninstall_pkgutil'
/usr/local/Homebrew/Library/Homebrew/cask/artifact/abstract_uninstall.rb:316:in `each'
/usr/local/Homebrew/Library/Homebrew/cask/artifact/abstract_uninstall.rb:316:in `uninstall_pkgutil'
/usr/local/Homebrew/Library/Homebrew/cask/artifact/abstract_uninstall.rb:76:in `dispatch_uninstall_directive'
/usr/local/Homebrew/Library/Homebrew/cask/artifact/uninstall.rb:15:in `block in uninstall_phase'
/usr/local/Homebrew/Library/Homebrew/cask/artifact/uninstall.rb:14:in `each'
/usr/local/Homebrew/Library/Homebrew/cask/artifact/uninstall.rb:14:in `uninstall_phase'
/usr/local/Homebrew/Library/Homebrew/cask/installer.rb:470:in `block in uninstall_artifacts'
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/set.rb:777:in `each'
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/set.rb:777:in `each'
/usr/local/Homebrew/Library/Homebrew/cask/installer.rb:467:in `uninstall_artifacts'
/usr/local/Homebrew/Library/Homebrew/cask/installer.rb:416:in `uninstall'
/usr/local/Homebrew/Library/Homebrew/cask/cmd/uninstall.rb:51:in `block in uninstall_casks'
/usr/local/Homebrew/Library/Homebrew/cask/cmd/uninstall.rb:39:in `each'
/usr/local/Homebrew/Library/Homebrew/cask/cmd/uninstall.rb:39:in `uninstall_casks'
/usr/local/Homebrew/Library/Homebrew/cmd/uninstall.rb:70:in `uninstall'
/usr/local/Homebrew/Library/Homebrew/brew.rb:122:in `<main>'

Output of 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.17/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.6.0/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-6.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.2/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.2-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.1/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
/Library/Ruby/Site/2.6.0
/Library/Ruby/Site/2.6.0/x86_64-darwin20
/Library/Ruby/Site/2.6.0/universal-darwin20
/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-darwin20
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/vendor_ruby/2.6.0/universal-darwin20
/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-darwin20
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/universal-darwin20
/usr/local/Homebrew/Library/Homebrew
/usr/bin/xattr
/usr/bin/swift /usr/local/Homebrew/Library/Homebrew/cask/utils/quarantine.swift
==> Homebrew Version
3.0.7
==> macOS
11.2.2
==> SIP
Enabled
==> Homebrew Cask Staging Location
/usr/local/Caskroom
==> Homebrew Cask Taps:
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask (3866 casks)
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask-fonts (1713 casks)
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask-drivers (177 casks)
/usr/bin/xattr
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!

Warning: "config" scripts exist outside your system or Homebrew directories.
`./configure` scripts often look for *-config scripts to determine if
software packages are installed, and which additional flags to use when
compiling and linking.

Having additional scripts in your path can confuse software installed via
Homebrew if the config script overrides a system or Homebrew-provided
script of the same name. We found the following "config" scripts:
  /Users/gaoruijun/miniconda3/bin/python3-config
  /Users/gaoruijun/miniconda3/bin/ncursesw6-config
  /Users/gaoruijun/miniconda3/bin/python3.8-config

Output of brew tap

dart-lang/dart
gelraen/autoremove
homebrew/cask
homebrew/cask-drivers
homebrew/cask-fonts
homebrew/core
homebrew/services
rickygao commented 3 years ago

I doubt that it is a problem with the uninstallation script, and should this line be removed? Could anyone tell how the uninstallation script of the cask microsoft-office works?

Additional information:

I tried to fix it by remove /usr/local/Caskroom/microsoft-office manually, and install it again, but everything was the same.

byteranger commented 3 years ago

I ran into the same problem this weekend. Digging into it more today, I could get past the error by $ mkdir /private/tmp/com.microsoft. package.DFonts which then lead to the same error with /private/tmp/com.microsoft.package.Frameworks. There were no Microsoft related entries in that tmp directory and imagine it would hit that for each subsequent line after the one pointed out by @rickygao . Realizing its probably a bug within brew (but not wanting to learn the internals right now) I tried a brew update. That fixed the issue for me.

rickygao commented 3 years ago

I ran into the same problem this weekend. Digging into it more today, I could get past the error by $ mkdir /private/tmp/com.microsoft. package.DFonts which then lead to the same error with /private/tmp/com.microsoft.package.Frameworks. There were no Microsoft related entries in that tmp directory and imagine it would hit that for each subsequent line after the one pointed out by @rickygao . Realizing its probably a bug within brew (but not wanting to learn the internals right now) I tried a brew update. That fixed the issue for me.

Great! It is fixed thanks to a brew update.

rickygao commented 3 years ago

Fixed and closed.