Homebrew / homebrew-cask

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

Installer errors should suppress stack trace & bug report URL #66041

Closed getaaron closed 5 years ago

getaaron commented 5 years ago

General troubleshooting steps

Description of issue

Installing Acrobat Reader fails. The issue is in the source installer, not homebrew cask (same issue occurs when running the installer manually).

The error text from installer contains the most helpful error message, but it's bundled in between a bunch of irrelevant red text and a stack trace with a suggestion to file a bug report:

image

I suggest that if we download an installer successfully and it outputs an error, we can suppress the stack trace / prompt to file a bug and more prominently feature the installer error text.

This would match the error experience of running the GUI installer:

image

Command that failed

brew cask install adobe-acrobat-reader

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

âžś  ~ brew cask install adobe-acrobat-reader --force --verbose --debug
==> Cask::Installer#install
==> Printing caveats
==> Cask::Installer#fetch
==> Satisfying dependencies
==> Downloading
==> Downloading http://ardownload.adobe.com/pub/adobe/reader/mac/AcrobatDC/1901220034/AcroRdrDC_1901220034_MUI.dmg
/usr/bin/curl -q --show-error --user-agent Homebrew/2.1.7-6-gde5cd92\ \(Macintosh\;\ Intel\ Mac\ OS\ X\ 10.15\)\ curl/7.64.1 --location --silent --head --request GET http://ardownload.adobe.com/pub/adobe/reader/mac/AcrobatDC/1901220034/AcroRdrDC_1901220034_MUI.dmg
Already downloaded: /Users/aaron/Library/Caches/Homebrew/downloads/d7190f7f06da1c8a43c72cafa461e5860f71f91ca659e92781a91a856145d543--AcroRdrDC_1901220034_MUI.dmg
==> Checking quarantine support
/usr/bin/xattr
/usr/bin/swift /usr/local/Homebrew/Library/Homebrew/cask/utils/quarantine.swift
==> Quarantine is available.
==> Verifying Gatekeeper status of /Users/aaron/Library/Caches/Homebrew/downloads/d7190f7f06da1c8a43c72cafa461e5860f71f91ca659e92781a91a856145d543--AcroRdrDC_1901220034_MUI.dmg
/usr/bin/xattr -p com.apple.quarantine /Users/aaron/Library/Caches/Homebrew/downloads/d7190f7f06da1c8a43c72cafa461e5860f71f91ca659e92781a91a856145d543--AcroRdrDC_1901220034_MUI.dmg
==> /Users/aaron/Library/Caches/Homebrew/downloads/d7190f7f06da1c8a43c72cafa461e5860f71f91ca659e92781a91a856145d543--AcroRdrDC_1901220034_MUI.dmg is quarantined
==> Downloaded to -> /Users/aaron/Library/Caches/Homebrew/downloads/d7190f7f06da1c8a43c72cafa461e5860f71f91ca659e92781a91a856145d543--AcroRdrDC_1901220034_MUI.dmg
==> Verifying SHA-256 checksum for Cask 'adobe-acrobat-reader'.
==> Installing Cask adobe-acrobat-reader
==> Cask::Installer#stage
hdiutil imageinfo /Users/aaron/Library/Caches/Homebrew/downloads/d7190f7f06da1c8a43c72cafa461e5860f71f91ca659e92781a91a856145d543--AcroRdrDC_1901220034_MUI.dmg
==> Extracting primary container
==> Using container class UnpackStrategy::Dmg for /Users/aaron/Library/Caches/Homebrew/downloads/d7190f7f06da1c8a43c72cafa461e5860f71f91ca659e92781a91a856145d543--AcroRdrDC_1901220034_MUI.dmg
hdiutil attach -plist -nobrowse -readonly -noidme -mountrandom /var/folders/2z/trk5y_554b92vxkr25j6415m0000gp/T/d20190709-30686-efibqu /Users/aaron/Library/Caches/Homebrew/downloads/d7190f7f06da1c8a43c72cafa461e5860f71f91ca659e92781a91a856145d543--AcroRdrDC_1901220034_MUI.dmg
find . -print0
mkbom -s -i /var/folders/2z/trk5y_554b92vxkr25j6415m0000gp/T/20190709-30686-1uy5cit.list -- /var/folders/2z/trk5y_554b92vxkr25j6415m0000gp/T/20190709-30686-e8knr5.bom
ditto --bom /var/folders/2z/trk5y_554b92vxkr25j6415m0000gp/T/20190709-30686-e8knr5.bom -- /private/var/folders/2z/trk5y_554b92vxkr25j6415m0000gp/T/d20190709-30686-efibqu/dmg.iGdi3L /var/folders/2z/trk5y_554b92vxkr25j6415m0000gp/T/d20190709-30686-zvxt2s
diskutil eject /private/var/folders/2z/trk5y_554b92vxkr25j6415m0000gp/T/d20190709-30686-efibqu/dmg.iGdi3L
chmod +rw /var/folders/2z/trk5y_554b92vxkr25j6415m0000gp/T/d20190709-30686-zvxt2s/AcroRdrDC_1901220034_MUI.pkg
cp -p /var/folders/2z/trk5y_554b92vxkr25j6415m0000gp/T/d20190709-30686-zvxt2s/AcroRdrDC_1901220034_MUI.pkg /usr/local/Caskroom/adobe-acrobat-reader/19.012.20034/AcroRdrDC_1901220034_MUI.pkg
==> Verifying Gatekeeper status of /Users/aaron/Library/Caches/Homebrew/downloads/d7190f7f06da1c8a43c72cafa461e5860f71f91ca659e92781a91a856145d543--AcroRdrDC_1901220034_MUI.dmg
/usr/bin/xattr -p com.apple.quarantine /Users/aaron/Library/Caches/Homebrew/downloads/d7190f7f06da1c8a43c72cafa461e5860f71f91ca659e92781a91a856145d543--AcroRdrDC_1901220034_MUI.dmg
==> /Users/aaron/Library/Caches/Homebrew/downloads/d7190f7f06da1c8a43c72cafa461e5860f71f91ca659e92781a91a856145d543--AcroRdrDC_1901220034_MUI.dmg is quarantined
==> Propagating quarantine from /Users/aaron/Library/Caches/Homebrew/downloads/d7190f7f06da1c8a43c72cafa461e5860f71f91ca659e92781a91a856145d543--AcroRdrDC_1901220034_MUI.dmg to /usr/local/Caskroom/adobe-acrobat-reader/19.012.20034
/usr/bin/xattr -p com.apple.quarantine /Users/aaron/Library/Caches/Homebrew/downloads/d7190f7f06da1c8a43c72cafa461e5860f71f91ca659e92781a91a856145d543--AcroRdrDC_1901220034_MUI.dmg
/usr/bin/xargs -0 -- /bin/chmod -h u\+w
/usr/bin/xargs -0 -- /usr/bin/xattr -w -s com.apple.quarantine 0181\;5d2547d4\;Homebrew\\x20Cask\;E0446074-89C2-445D-B94A-772C6B428021
==> Creating metadata directory /usr/local/Caskroom/adobe-acrobat-reader/.metadata/19.012.20034/20190710021125.143.
==> Creating metadata subdirectory /usr/local/Caskroom/adobe-acrobat-reader/.metadata/19.012.20034/20190710021125.143/Casks.
==> Installing artifacts
==> 3 artifact/s defined
#<SortedSet:0x00007fa86f58fa60>
==> Installing artifact of class Cask::Artifact::Pkg
==> Running installer for adobe-acrobat-reader; your password may be necessary.
==> Package installers may write to any location; options such as --appdir are ignored.
/usr/bin/sudo -E -- env LOGNAME=aaron USER=aaron USERNAME=aaron /usr/sbin/installer -pkg /usr/local/Caskroom/adobe-acrobat-reader/19.012.20034/AcroRdrDC_1901220034_MUI.pkg -target / -verboseR
objc[31209]: Class SOExtensionServiceConnection is implemented in both /System/Library/PrivateFrameworks/AppSSO.framework/Versions/A/AppSSO (0x7fff8f077630) and /System/Library/Frameworks/AppSSO.framework/Versions/A/AppSSO (0x10e9d2af8). One of the two will be used. Which one is undefined.
objc[31209]: Class SORequestQueueItem is implemented in both /System/Library/PrivateFrameworks/AppSSO.framework/Versions/A/AppSSO (0x7fff8f077680) and /System/Library/Frameworks/AppSSO.framework/Versions/A/AppSSO (0x10e9d2b48). One of the two will be used. Which one is undefined.
objc[31209]: Class SORemoteExtensionContext is implemented in both /System/Library/PrivateFrameworks/AppSSO.framework/Versions/A/AppSSO (0x7fff8f0776f8) and /System/Library/Frameworks/AppSSO.framework/Versions/A/AppSSO (0x10e9d2bc0). One of the two will be used. Which one is undefined.
objc[31209]: Class SOExtension is implemented in both /System/Library/PrivateFrameworks/AppSSO.framework/Versions/A/AppSSO (0x7fff8f077720) and /System/Library/Frameworks/AppSSO.framework/Versions/A/AppSSO (0x10e9d2be8). One of the two will be used. Which one is undefined.
objc[31209]: Class SOAuthorizationParameters is implemented in both /System/Library/PrivateFrameworks/AppSSO.framework/Versions/A/AppSSO (0x7fff8f077770) and /System/Library/Frameworks/AppSSO.framework/Versions/A/AppSSO (0x10e9d2c38). One of the two will be used. Which one is undefined.
objc[31209]: Class SOExtensionManager is implemented in both /System/Library/PrivateFrameworks/AppSSO.framework/Versions/A/AppSSO (0x7fff8f0777c0) and /System/Library/Frameworks/AppSSO.framework/Versions/A/AppSSO (0x10e9d2c88). One of the two will be used. Which one is undefined.
objc[31209]: Class SOAuthorizationRequestParameters is implemented in both /System/Library/PrivateFrameworks/AppSSO.framework/Versions/A/AppSSO (0x7fff8f077810) and /System/Library/Frameworks/AppSSO.framework/Versions/A/AppSSO (0x10e9d2cd8). One of the two will be used. Which one is undefined.
objc[31209]: Class SORequestQueue is implemented in both /System/Library/PrivateFrameworks/AppSSO.framework/Versions/A/AppSSO (0x7fff8f077860) and /System/Library/Frameworks/AppSSO.framework/Versions/A/AppSSO (0x10e9d2d28). One of the two will be used. Which one is undefined.
objc[31209]: Class SOAuthorizationCredential is implemented in both /System/Library/PrivateFrameworks/AppSSO.framework/Versions/A/AppSSO (0x7fff8f0778b0) and /System/Library/Frameworks/AppSSO.framework/Versions/A/AppSSO (0x10e9d2d78). One of the two will be used. Which one is undefined.
objc[31209]: Class SODebugHints is implemented in both /System/Library/PrivateFrameworks/AppSSO.framework/Versions/A/AppSSO (0x7fff8f077900) and /System/Library/Frameworks/AppSSO.framework/Versions/A/AppSSO (0x10e9d2dc8). One of the two will be used. Which one is undefined.
objc[31209]: Class SOPreferences is implemented in both /System/Library/PrivateFrameworks/AppSSO.framework/Versions/A/AppSSO (0x7fff8f077978) and /System/Library/Frameworks/AppSSO.framework/Versions/A/AppSSO (0x10e9d2e40). One of the two will be used. Which one is undefined.
objc[31209]: Class SOConfigurationManager is implemented in both /System/Library/PrivateFrameworks/AppSSO.framework/Versions/A/AppSSO (0x7fff8f0779a0) and /System/Library/Frameworks/AppSSO.framework/Versions/A/AppSSO (0x10e9d2e68). One of the two will be used. Which one is undefined.
objc[31209]: Class SOAuthorizationRequest is implemented in both /System/Library/PrivateFrameworks/AppSSO.framework/Versions/A/AppSSO (0x7fff8f0779f0) and /System/Library/Frameworks/AppSSO.framework/Versions/A/AppSSO (0x10e9d2eb8). One of the two will be used. Which one is undefined.
objc[31209]: Class SOAuthorization is implemented in both /System/Library/PrivateFrameworks/AppSSO.framework/Versions/A/AppSSO (0x7fff8f077a40) and /System/Library/Frameworks/AppSSO.framework/Versions/A/AppSSO (0x10e9d2f08). One of the two will be used. Which one is undefined.
objc[31209]: Class SOExtensionViewService is implemented in both /System/Library/PrivateFrameworks/AppSSO.framework/Versions/A/AppSSO (0x7fff8f077ab8) and /System/Library/Frameworks/AppSSO.framework/Versions/A/AppSSO (0x10e9d2f80). One of the two will be used. Which one is undefined.
objc[31209]: Class SORemoteExtensionViewController is implemented in both /System/Library/PrivateFrameworks/AppSSO.framework/Versions/A/AppSSO (0x7fff8f077b08) and /System/Library/Frameworks/AppSSO.framework/Versions/A/AppSSO (0x10e9d2fd0). One of the two will be used. Which one is undefined.
objc[31209]: Class SOConfigurationHost is implemented in both /System/Library/PrivateFrameworks/AppSSO.framework/Versions/A/AppSSO (0x7fff8f077b30) and /System/Library/Frameworks/AppSSO.framework/Versions/A/AppSSO (0x10e9d2ff8). One of the two will be used. Which one is undefined.
objc[31209]: Class SOHostExtensionContext is implemented in both /System/Library/PrivateFrameworks/AppSSO.framework/Versions/A/AppSSO (0x7fff8f077ba8) and /System/Library/Frameworks/AppSSO.framework/Versions/A/AppSSO (0x10e9d3070). One of the two will be used. Which one is undefined.
objc[31209]: Class SOExtensionFinder is implemented in both /System/Library/PrivateFrameworks/AppSSO.framework/Versions/A/AppSSO (0x7fff8f077bd0) and /System/Library/Frameworks/AppSSO.framework/Versions/A/AppSSO (0x10e9d3098). One of the two will be used. Which one is undefined.
installer: Package name is Adobe Acrobat Reader DC (Continuous)
installer: Installing at base path /
installer:PHASE:Preparing for installation…
installer:PHASE:Preparing the disk…
installer:PHASE:Preparing Adobe Acrobat Reader DC (Continuous)…
installer:PHASE:Waiting for other installations to complete…
installer:PHASE:Configuring the installation…
installer:STATUS:
installer:%2.200000
installer:PHASE:Validating packages…
installer:%3.175000
installer:PHASE:Validating packages…
installer:%10.836124
installer:PHASE:Writing files…
installer:%30.093439
installer:PHASE:Writing files…
installer:%41.326872
installer:PHASE:Writing files…
installer:%51.287962
installer:PHASE:Optimizing system for installed software…
installer:%61.252384
installer:PHASE:Running package scripts…
installer:%62.051000
installer:PHASE:Running package scripts…
installer:%62.851712
installer:PHASE:Running package scripts…
installer:%63.658011
installer:PHASE:Running package scripts…
installer:%64.458048
installer:PHASE:Running package scripts…
installer:%65.257471
installer:PHASE:Running package scripts…
installer:%66.062905
installer:PHASE:Running package scripts…
installer:%69.550112
installer:PHASE:Moving items into place…
installer:PHASE:Validating packages…
installer:%97.750000
installer: The install failed. (The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance. An error occurred while running scripts from the package “AcroRdrDC_1901220034_MUI.pkg”.)
==> Purging files for version 19.012.20034 of Cask adobe-acrobat-reader
Error: Failure while executing; `/usr/bin/sudo -E -- env LOGNAME=aaron USER=aaron USERNAME=aaron /usr/sbin/installer -pkg /usr/local/Caskroom/adobe-acrobat-reader/19.012.20034/AcroRdrDC_1901220034_MUI.pkg -target / -verboseR` exited with 1. Here's the output:
objc[31209]: Class SOExtensionServiceConnection is implemented in both /System/Library/PrivateFrameworks/AppSSO.framework/Versions/A/AppSSO (0x7fff8f077630) and /System/Library/Frameworks/AppSSO.framework/Versions/A/AppSSO (0x10e9d2af8). One of the two will be used. Which one is undefined.
objc[31209]: Class SORequestQueueItem is implemented in both /System/Library/PrivateFrameworks/AppSSO.framework/Versions/A/AppSSO (0x7fff8f077680) and /System/Library/Frameworks/AppSSO.framework/Versions/A/AppSSO (0x10e9d2b48). One of the two will be used. Which one is undefined.
objc[31209]: Class SORemoteExtensionContext is implemented in both /System/Library/PrivateFrameworks/AppSSO.framework/Versions/A/AppSSO (0x7fff8f0776f8) and /System/Library/Frameworks/AppSSO.framework/Versions/A/AppSSO (0x10e9d2bc0). One of the two will be used. Which one is undefined.
objc[31209]: Class SOExtension is implemented in both /System/Library/PrivateFrameworks/AppSSO.framework/Versions/A/AppSSO (0x7fff8f077720) and /System/Library/Frameworks/AppSSO.framework/Versions/A/AppSSO (0x10e9d2be8). One of the two will be used. Which one is undefined.
objc[31209]: Class SOAuthorizationParameters is implemented in both /System/Library/PrivateFrameworks/AppSSO.framework/Versions/A/AppSSO (0x7fff8f077770) and /System/Library/Frameworks/AppSSO.framework/Versions/A/AppSSO (0x10e9d2c38). One of the two will be used. Which one is undefined.
objc[31209]: Class SOExtensionManager is implemented in both /System/Library/PrivateFrameworks/AppSSO.framework/Versions/A/AppSSO (0x7fff8f0777c0) and /System/Library/Frameworks/AppSSO.framework/Versions/A/AppSSO (0x10e9d2c88). One of the two will be used. Which one is undefined.
objc[31209]: Class SOAuthorizationRequestParameters is implemented in both /System/Library/PrivateFrameworks/AppSSO.framework/Versions/A/AppSSO (0x7fff8f077810) and /System/Library/Frameworks/AppSSO.framework/Versions/A/AppSSO (0x10e9d2cd8). One of the two will be used. Which one is undefined.
objc[31209]: Class SORequestQueue is implemented in both /System/Library/PrivateFrameworks/AppSSO.framework/Versions/A/AppSSO (0x7fff8f077860) and /System/Library/Frameworks/AppSSO.framework/Versions/A/AppSSO (0x10e9d2d28). One of the two will be used. Which one is undefined.
objc[31209]: Class SOAuthorizationCredential is implemented in both /System/Library/PrivateFrameworks/AppSSO.framework/Versions/A/AppSSO (0x7fff8f0778b0) and /System/Library/Frameworks/AppSSO.framework/Versions/A/AppSSO (0x10e9d2d78). One of the two will be used. Which one is undefined.
objc[31209]: Class SODebugHints is implemented in both /System/Library/PrivateFrameworks/AppSSO.framework/Versions/A/AppSSO (0x7fff8f077900) and /System/Library/Frameworks/AppSSO.framework/Versions/A/AppSSO (0x10e9d2dc8). One of the two will be used. Which one is undefined.
objc[31209]: Class SOPreferences is implemented in both /System/Library/PrivateFrameworks/AppSSO.framework/Versions/A/AppSSO (0x7fff8f077978) and /System/Library/Frameworks/AppSSO.framework/Versions/A/AppSSO (0x10e9d2e40). One of the two will be used. Which one is undefined.
objc[31209]: Class SOConfigurationManager is implemented in both /System/Library/PrivateFrameworks/AppSSO.framework/Versions/A/AppSSO (0x7fff8f0779a0) and /System/Library/Frameworks/AppSSO.framework/Versions/A/AppSSO (0x10e9d2e68). One of the two will be used. Which one is undefined.
objc[31209]: Class SOAuthorizationRequest is implemented in both /System/Library/PrivateFrameworks/AppSSO.framework/Versions/A/AppSSO (0x7fff8f0779f0) and /System/Library/Frameworks/AppSSO.framework/Versions/A/AppSSO (0x10e9d2eb8). One of the two will be used. Which one is undefined.
objc[31209]: Class SOAuthorization is implemented in both /System/Library/PrivateFrameworks/AppSSO.framework/Versions/A/AppSSO (0x7fff8f077a40) and /System/Library/Frameworks/AppSSO.framework/Versions/A/AppSSO (0x10e9d2f08). One of the two will be used. Which one is undefined.
objc[31209]: Class SOExtensionViewService is implemented in both /System/Library/PrivateFrameworks/AppSSO.framework/Versions/A/AppSSO (0x7fff8f077ab8) and /System/Library/Frameworks/AppSSO.framework/Versions/A/AppSSO (0x10e9d2f80). One of the two will be used. Which one is undefined.
objc[31209]: Class SORemoteExtensionViewController is implemented in both /System/Library/PrivateFrameworks/AppSSO.framework/Versions/A/AppSSO (0x7fff8f077b08) and /System/Library/Frameworks/AppSSO.framework/Versions/A/AppSSO (0x10e9d2fd0). One of the two will be used. Which one is undefined.
objc[31209]: Class SOConfigurationHost is implemented in both /System/Library/PrivateFrameworks/AppSSO.framework/Versions/A/AppSSO (0x7fff8f077b30) and /System/Library/Frameworks/AppSSO.framework/Versions/A/AppSSO (0x10e9d2ff8). One of the two will be used. Which one is undefined.
objc[31209]: Class SOHostExtensionContext is implemented in both /System/Library/PrivateFrameworks/AppSSO.framework/Versions/A/AppSSO (0x7fff8f077ba8) and /System/Library/Frameworks/AppSSO.framework/Versions/A/AppSSO (0x10e9d3070). One of the two will be used. Which one is undefined.
objc[31209]: Class SOExtensionFinder is implemented in both /System/Library/PrivateFrameworks/AppSSO.framework/Versions/A/AppSSO (0x7fff8f077bd0) and /System/Library/Frameworks/AppSSO.framework/Versions/A/AppSSO (0x10e9d3098). One of the two will be used. Which one is undefined.
installer: Package name is Adobe Acrobat Reader DC (Continuous)
installer: Installing at base path /
installer:PHASE:Preparing for installation…
installer:PHASE:Preparing the disk…
installer:PHASE:Preparing Adobe Acrobat Reader DC (Continuous)…
installer:PHASE:Waiting for other installations to complete…
installer:PHASE:Configuring the installation…
installer:STATUS:
installer:%2.200000
installer:PHASE:Validating packages…
installer:%3.175000
installer:PHASE:Validating packages…
installer:%10.836124
installer:PHASE:Writing files…
installer:%30.093439
installer:PHASE:Writing files…
installer:%41.326872
installer:PHASE:Writing files…
installer:%51.287962
installer:PHASE:Optimizing system for installed software…
installer:%61.252384
installer:PHASE:Running package scripts…
installer:%62.051000
installer:PHASE:Running package scripts…
installer:%62.851712
installer:PHASE:Running package scripts…
installer:%63.658011
installer:PHASE:Running package scripts…
installer:%64.458048
installer:PHASE:Running package scripts…
installer:%65.257471
installer:PHASE:Running package scripts…
installer:%66.062905
installer:PHASE:Running package scripts…
installer:%69.550112
installer:PHASE:Moving items into place…
installer:PHASE:Validating packages…
installer:%97.750000
installer: The install failed. (The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance. An error occurred while running scripts from the package “AcroRdrDC_1901220034_MUI.pkg”.)
Follow the instructions here:
  https://github.com/Homebrew/homebrew-cask#reporting-bugs
/usr/local/Homebrew/Library/Homebrew/system_command.rb:109:in `assert_success'
/usr/local/Homebrew/Library/Homebrew/system_command.rb:52:in `run!'
/usr/local/Homebrew/Library/Homebrew/system_command.rb:29:in `run'
/usr/local/Homebrew/Library/Homebrew/system_command.rb:33:in `run!'
/usr/local/Homebrew/Library/Homebrew/cask/artifact/pkg.rb:59:in `block in run_installer'
/usr/local/Homebrew/Library/Homebrew/cask/artifact/pkg.rb:65:in `with_choices_file'
/usr/local/Homebrew/Library/Homebrew/cask/artifact/pkg.rb:52:in `run_installer'
/usr/local/Homebrew/Library/Homebrew/cask/artifact/pkg.rb:34:in `install_phase'
/usr/local/Homebrew/Library/Homebrew/cask/installer.rb:214:in `block in install_artifacts'
/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/2.3.0/set.rb:674:in `each'
/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/2.3.0/set.rb:674:in `each'
/usr/local/Homebrew/Library/Homebrew/cask/installer.rb:205:in `install_artifacts'
/usr/local/Homebrew/Library/Homebrew/cask/installer.rb:103:in `install'
/usr/local/Homebrew/Library/Homebrew/cask/cmd/install.rb:23:in `block in run'
/usr/local/Homebrew/Library/Homebrew/cask/cmd/install.rb:16:in `each'
/usr/local/Homebrew/Library/Homebrew/cask/cmd/install.rb:16:in `run'
/usr/local/Homebrew/Library/Homebrew/cask/cmd/abstract_command.rb:36:in `run'
/usr/local/Homebrew/Library/Homebrew/cask/cmd.rb:93:in `run_command'
/usr/local/Homebrew/Library/Homebrew/cask/cmd.rb:159:in `run'
/usr/local/Homebrew/Library/Homebrew/cask/cmd.rb:124:in `run'
/usr/local/Homebrew/Library/Homebrew/cmd/cask.rb:9:in `cask'
/usr/local/Homebrew/Library/Homebrew/brew.rb:102:in `<main>'
Error: Kernel.exit
/usr/local/Homebrew/Library/Homebrew/cask/cmd.rb:168:in `exit'
/usr/local/Homebrew/Library/Homebrew/cask/cmd.rb:168:in `rescue in run'
/usr/local/Homebrew/Library/Homebrew/cask/cmd.rb:147:in `run'
/usr/local/Homebrew/Library/Homebrew/cask/cmd.rb:124:in `run'
/usr/local/Homebrew/Library/Homebrew/cmd/cask.rb:9:in `cask'
/usr/local/Homebrew/Library/Homebrew/brew.rb:102:in `<main>'

Output of brew cask doctor

==> Homebrew Version
2.1.7-6-gde5cd92
==> macOS
10.15
==> SIP
Enabled
==> Java
12.0.1
==> Gatekeeper support
Enabled
==> Homebrew Cask Install Location
<NONE>
==> Homebrew Cask Staging Location
/usr/local/Caskroom
==> Homebrew Cask Taps:
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask (3561 casks)
==> Contents of $LOAD_PATH
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/simplecov-cobertura-1.3.1/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/ruby-macho-2.2.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/rubocop-rspec-1.33.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/rubocop-performance-1.4.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/rubocop-0.72.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/unicode-display_width-1.6.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/ruby-progressbar-1.10.1/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/rspec-wait-0.0.9/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/rspec-retry-0.6.1/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/rspec-its-1.3.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/rspec-3.8.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/rspec-mocks-3.8.1/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/rspec-expectations-3.8.4/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/rspec-core-3.8.1/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/rspec-support-3.8.2/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/ronn-0.7.3/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/rdiscount-2.2.0.1/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/extensions/universal-darwin-18/2.3.0/rdiscount-2.2.0.1
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/rainbow-3.0.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/plist-3.5.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/parser-2.6.3.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/parallel_tests-2.29.1/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/parallel-1.17.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/mustache-1.1.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/mechanize-2.7.6/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/webrobots-0.1.2/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/ntlm-http-0.1.1/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/nokogiri-1.10.3/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/extensions/universal-darwin-18/2.3.0/nokogiri-1.10.3
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/mini_portile2-2.4.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/net-http-persistent-3.0.1/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/net-http-digest_auth-1.4.1/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/mime-types-3.2.2/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/mime-types-data-3.2019.0331/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/jaro_winkler-1.5.3/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/extensions/universal-darwin-18/2.3.0/jaro_winkler-1.5.3
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/http-cookie-1.0.3/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/hpricot-0.8.6/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/extensions/universal-darwin-18/2.3.0/hpricot-0.8.6
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/domain_name-0.5.20180417/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/unf-0.1.4/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/unf_ext-0.0.7.6/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/extensions/universal-darwin-18/2.3.0/unf_ext-0.0.7.6
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/diff-lcs-1.3/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/coveralls-0.8.23/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/thor-0.20.3/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/term-ansicolor-1.7.1/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/tins-1.20.3/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/simplecov-0.16.1/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/simplecov-html-0.10.2/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/docile-1.3.2/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/json-2.2.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/extensions/universal-darwin-18/2.3.0/json-2.2.0
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/connection_pool-2.2.2/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/backports-3.15.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/ast-2.4.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/activesupport-5.2.3/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/tzinfo-1.2.5/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/thread_safe-0.3.6/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/minitest-5.11.3/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/i18n-1.6.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/concurrent-ruby-1.1.5/lib
/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/site_ruby/2.3.0
/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/site_ruby/2.3.0/x86_64-darwin13
/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/site_ruby
/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/vendor_ruby/2.3.0
/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/vendor_ruby/2.3.0/x86_64-darwin13
/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/vendor_ruby
/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/2.3.0
/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/2.3.0/x86_64-darwin13
/usr/local/Homebrew/Library/Homebrew
==> Environment Variables
LC_ALL="en_US.UTF-8"
PATH="/usr/local/Homebrew/Library/Homebrew/shims/scm:/usr/bin:/bin:/usr/sbin:/sbin"
SHELL="/bin/zsh"

Output of brew tap

homebrew/cask
homebrew/core
vitorgalvao commented 5 years ago

We never know which information will be useful. Changing that on the basis of the install stanza is more code (thus more complexity) for little benefit.