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

PDK cask failing to upgrade/reinstall - lots of 'Operation not permitted' #77993

Closed Mantene closed 4 years ago

Mantene commented 4 years ago

General troubleshooting steps

Description of issue

I am trying to upgrade/reinstall the pdk cask but it keeps failing toward the end.

Command that failed

brew cask reinstall pdk 

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

❯ brew cask reinstall pdk --force --verbose --debug
==> Cask::Installer#reinstall
==> Cask::Installer#install
==> Printing caveats
==> Caveats

    PDK binaries are installed in /opt/puppetlabs/pdk/bin, which is sourced by an /etc/paths.d entry.
    /opt/puppetlabs/pdk/bin may not be included in your current $PATH but should be included in new shells.

==> Cask::Installer#fetch
==> Downloading
==> Downloading https://downloads.puppet.com/mac/puppet/10.15/x86_64/pdk-1.17.0.0-1.osx10.15.dmg
/usr/bin/curl -q --globoff --show-error --user-agent Homebrew/2.2.7-8-g15d274b\ \(Macintosh\;\ Intel\ Mac\ OS\ X\ 10.15.4\)\ curl/7.68.0 --location --silent --head --request GET https://downloads.puppet.com/mac/puppet/10.15/x86_64/pdk-1.17.0.0-1.osx10.15.dmg
Already downloaded: /Users/mhood/Library/Caches/Homebrew/downloads/38ef982fd088d2c1f2ed98425f1f2871bc01d87c9dc3a35df56e5a2208a47e70--pdk-1.17.0.0-1.osx10.15.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/mhood/Library/Caches/Homebrew/downloads/38ef982fd088d2c1f2ed98425f1f2871bc01d87c9dc3a35df56e5a2208a47e70--pdk-1.17.0.0-1.osx10.15.dmg
/usr/bin/xattr -p com.apple.quarantine /Users/mhood/Library/Caches/Homebrew/downloads/38ef982fd088d2c1f2ed98425f1f2871bc01d87c9dc3a35df56e5a2208a47e70--pdk-1.17.0.0-1.osx10.15.dmg
==> /Users/mhood/Library/Caches/Homebrew/downloads/38ef982fd088d2c1f2ed98425f1f2871bc01d87c9dc3a35df56e5a2208a47e70--pdk-1.17.0.0-1.osx10.15.dmg is quarantined
==> Downloaded to -> /Users/mhood/Library/Caches/Homebrew/downloads/38ef982fd088d2c1f2ed98425f1f2871bc01d87c9dc3a35df56e5a2208a47e70--pdk-1.17.0.0-1.osx10.15.dmg
==> Verifying SHA-256 checksum for Cask 'pdk'.
hdiutil imageinfo -format /Users/mhood/Library/Caches/Homebrew/downloads/38ef982fd088d2c1f2ed98425f1f2871bc01d87c9dc3a35df56e5a2208a47e70--pdk-1.17.0.0-1.osx10.15.dmg
==> Installing Cask pdk
==> Cask::Installer#stage
==> Extracting primary container
==> Using container class UnpackStrategy::Dmg for /Users/mhood/Library/Caches/Homebrew/downloads/38ef982fd088d2c1f2ed98425f1f2871bc01d87c9dc3a35df56e5a2208a47e70--pdk-1.17.0.0-1.osx10.15.dmg
hdiutil attach -plist -nobrowse -readonly -noidme -mountrandom /var/folders/cq/5f_fnbc50c792_zgtyll3jsjkwns9t/T/d20200302-60555-15dawm /Users/mhood/Library/Caches/Homebrew/downloads/38ef982fd088d2c1f2ed98425f1f2871bc01d87c9dc3a35df56e5a2208a47e70--pdk-1.17.0.0-1.osx10.15.dmg
find . -print0
mkbom -s -i /var/folders/cq/5f_fnbc50c792_zgtyll3jsjkwns9t/T/20200302-60555-1665tpn.list -- /var/folders/cq/5f_fnbc50c792_zgtyll3jsjkwns9t/T/20200302-60555-e1jkcw.bom
ditto --bom /var/folders/cq/5f_fnbc50c792_zgtyll3jsjkwns9t/T/20200302-60555-e1jkcw.bom -- /private/var/folders/cq/5f_fnbc50c792_zgtyll3jsjkwns9t/T/d20200302-60555-15dawm/dmg.5rSSCH /var/folders/cq/5f_fnbc50c792_zgtyll3jsjkwns9t/T/d20200302-60555-17qf0u0
diskutil eject /private/var/folders/cq/5f_fnbc50c792_zgtyll3jsjkwns9t/T/d20200302-60555-15dawm/dmg.5rSSCH
chmod +rw /var/folders/cq/5f_fnbc50c792_zgtyll3jsjkwns9t/T/d20200302-60555-17qf0u0/pdk-1.17.0.0-1-installer.pkg
cp -p /var/folders/cq/5f_fnbc50c792_zgtyll3jsjkwns9t/T/d20200302-60555-17qf0u0/pdk-1.17.0.0-1-installer.pkg /usr/local/Caskroom/pdk/1.17.0.0/pdk-1.17.0.0-1-installer.pkg
==> Verifying Gatekeeper status of /Users/mhood/Library/Caches/Homebrew/downloads/38ef982fd088d2c1f2ed98425f1f2871bc01d87c9dc3a35df56e5a2208a47e70--pdk-1.17.0.0-1.osx10.15.dmg
/usr/bin/xattr -p com.apple.quarantine /Users/mhood/Library/Caches/Homebrew/downloads/38ef982fd088d2c1f2ed98425f1f2871bc01d87c9dc3a35df56e5a2208a47e70--pdk-1.17.0.0-1.osx10.15.dmg
==> /Users/mhood/Library/Caches/Homebrew/downloads/38ef982fd088d2c1f2ed98425f1f2871bc01d87c9dc3a35df56e5a2208a47e70--pdk-1.17.0.0-1.osx10.15.dmg is quarantined
==> Propagating quarantine from /Users/mhood/Library/Caches/Homebrew/downloads/38ef982fd088d2c1f2ed98425f1f2871bc01d87c9dc3a35df56e5a2208a47e70--pdk-1.17.0.0-1.osx10.15.dmg to /usr/local/Caskroom/pdk/1.17.0.0
/usr/bin/xattr -p com.apple.quarantine /Users/mhood/Library/Caches/Homebrew/downloads/38ef982fd088d2c1f2ed98425f1f2871bc01d87c9dc3a35df56e5a2208a47e70--pdk-1.17.0.0-1.osx10.15.dmg
/usr/bin/xargs -0 -- /bin/chmod -h u\+w
/usr/bin/xargs -0 -- /usr/bin/xattr -w com.apple.quarantine 0181\;5e5957df\;Homebrew\\x20Cask\;EA562E4A-CD62-4806-89FE-57B37BB6F053
==> Creating metadata directory /usr/local/Caskroom/pdk/.metadata/1.17.0.0/20200302132419.023.
==> Creating metadata subdirectory /usr/local/Caskroom/pdk/.metadata/1.17.0.0/20200302132419.023/Casks.
==> Installing artifacts
==> 3 artifact/s defined
#<SortedSet: {#<Cask::Artifact::Uninstall:0x00007fb3f19ecfd0 @cask=#<Cask::Cask:0x00007fb3f1861df0 @token="pdk", @sourcefile_path=#<Pathname:/usr/local/Homebrew/Library/Taps/puppetlabs/homebrew-puppet/Casks/pdk.rb>, @tap=#<Tap:0x00007fb3f10ad708 @user="puppetlabs", @repo="puppet", @name="puppetlabs/puppet", @full_name="puppetlabs/homebrew-puppet", @path=#<Pathname:/usr/local/Homebrew/Library/Taps/puppetlabs/homebrew-puppet>, @alias_table=nil, @alias_reverse_table=nil, @cask_dir=#<Pathname:/usr/local/Homebrew/Library/Taps/puppetlabs/homebrew-puppet/Casks>>, @block=#<Proc:0x00007fb3f1861b98@/usr/local/Homebrew/Library/Taps/puppetlabs/homebrew-puppet/Casks/pdk.rb:1>, @caskroom_path=#<Pathname:/usr/local/Caskroom/pdk>, @metadata_master_container_path=#<Pathname:/usr/local/Caskroom/pdk/.metadata>, @config=#<Cask::Config:0x00007fb3f19efc58 @explicit={}>, @dsl=#<Cask::DSL:0x00007fb3f19efaf0 @cask=#<Cask::Cask:0x00007fb3f1861df0 ...>, @token="pdk", @version="1.17.0.0", @sha256="cacf9bcf28c4d60964c78add21f5f918e357d17a4d26edfcdeaca5213ee23804", @depends_on={:macos=>#<MacOSRequirement: "macos" []>}, @url=#<URL:0x00007fb3f19eec40 @uri=#<URI::HTTPS https://downloads.puppet.com/mac/puppet/10.15/x86_64/pdk-1.17.0.0-1.osx10.15.dmg>, @user_agent=:default, @specs={}>, @artifacts=#<SortedSet: {...}>, @staged_path=#<Pathname:/usr/local/Caskroom/pdk/1.17.0.0>, @name=["Puppet Development Kit"], @homepage="https://github.com/puppetlabs/pdk", @caveats=#<Cask::DSL::Caveats:0x00007fb3f19ed7a0 @cask=#<Cask::Cask:0x00007fb3f1861df0 ...>, @command=SystemCommand, @built_in_caveats={}, @custom_caveats=["\n    PDK binaries are installed in /opt/puppetlabs/pdk/bin, which is sourced by an /etc/paths.d entry.\n    /opt/puppetlabs/pdk/bin may not be included in your current $PATH but should be included in new shells.\n"]>, @language=nil>>, @directives={:pkgutil=>"com.puppetlabs.pdk", :signal=>[]}>, #<Cask::Artifact::Pkg:0x00007fb3f19ee628 @cask=#<Cask::Cask:0x00007fb3f1861df0 @token="pdk", @sourcefile_path=#<Pathname:/usr/local/Homebrew/Library/Taps/puppetlabs/homebrew-puppet/Casks/pdk.rb>, @tap=#<Tap:0x00007fb3f10ad708 @user="puppetlabs", @repo="puppet", @name="puppetlabs/puppet", @full_name="puppetlabs/homebrew-puppet", @path=#<Pathname:/usr/local/Homebrew/Library/Taps/puppetlabs/homebrew-puppet>, @alias_table=nil, @alias_reverse_table=nil, @cask_dir=#<Pathname:/usr/local/Homebrew/Library/Taps/puppetlabs/homebrew-puppet/Casks>>, @block=#<Proc:0x00007fb3f1861b98@/usr/local/Homebrew/Library/Taps/puppetlabs/homebrew-puppet/Casks/pdk.rb:1>, @caskroom_path=#<Pathname:/usr/local/Caskroom/pdk>, @metadata_master_container_path=#<Pathname:/usr/local/Caskroom/pdk/.metadata>, @config=#<Cask::Config:0x00007fb3f19efc58 @explicit={}>, @dsl=#<Cask::DSL:0x00007fb3f19efaf0 @cask=#<Cask::Cask:0x00007fb3f1861df0 ...>, @token="pdk", @version="1.17.0.0", @sha256="cacf9bcf28c4d60964c78add21f5f918e357d17a4d26edfcdeaca5213ee23804", @depends_on={:macos=>#<MacOSRequirement: "macos" []>}, @url=#<URL:0x00007fb3f19eec40 @uri=#<URI::HTTPS https://downloads.puppet.com/mac/puppet/10.15/x86_64/pdk-1.17.0.0-1.osx10.15.dmg>, @user_agent=:default, @specs={}>, @artifacts=#<SortedSet: {...}>, @staged_path=#<Pathname:/usr/local/Caskroom/pdk/1.17.0.0>, @name=["Puppet Development Kit"], @homepage="https://github.com/puppetlabs/pdk", @caveats=#<Cask::DSL::Caveats:0x00007fb3f19ed7a0 @cask=#<Cask::Cask:0x00007fb3f1861df0 ...>, @command=SystemCommand, @built_in_caveats={}, @custom_caveats=["\n    PDK binaries are installed in /opt/puppetlabs/pdk/bin, which is sourced by an /etc/paths.d entry.\n    /opt/puppetlabs/pdk/bin may not be included in your current $PATH but should be included in new shells.\n"]>, @language=nil>>, @path=#<Pathname:/usr/local/Caskroom/pdk/1.17.0.0/pdk-1.17.0.0-1-installer.pkg>, @stanza_options={}>, #<Cask::Artifact::PostflightBlock:0x00007fb3f19ed3e0 @cask=#<Cask::Cask:0x00007fb3f1861df0 @token="pdk", @sourcefile_path=#<Pathname:/usr/local/Homebrew/Library/Taps/puppetlabs/homebrew-puppet/Casks/pdk.rb>, @tap=#<Tap:0x00007fb3f10ad708 @user="puppetlabs", @repo="puppet", @name="puppetlabs/puppet", @full_name="puppetlabs/homebrew-puppet", @path=#<Pathname:/usr/local/Homebrew/Library/Taps/puppetlabs/homebrew-puppet>, @alias_table=nil, @alias_reverse_table=nil, @cask_dir=#<Pathname:/usr/local/Homebrew/Library/Taps/puppetlabs/homebrew-puppet/Casks>>, @block=#<Proc:0x00007fb3f1861b98@/usr/local/Homebrew/Library/Taps/puppetlabs/homebrew-puppet/Casks/pdk.rb:1>, @caskroom_path=#<Pathname:/usr/local/Caskroom/pdk>, @metadata_master_container_path=#<Pathname:/usr/local/Caskroom/pdk/.metadata>, @config=#<Cask::Config:0x00007fb3f19efc58 @explicit={}>, @dsl=#<Cask::DSL:0x00007fb3f19efaf0 @cask=#<Cask::Cask:0x00007fb3f1861df0 ...>, @token="pdk", @version="1.17.0.0", @sha256="cacf9bcf28c4d60964c78add21f5f918e357d17a4d26edfcdeaca5213ee23804", @depends_on={:macos=>#<MacOSRequirement: "macos" []>}, @url=#<URL:0x00007fb3f19eec40 @uri=#<URI::HTTPS https://downloads.puppet.com/mac/puppet/10.15/x86_64/pdk-1.17.0.0-1.osx10.15.dmg>, @user_agent=:default, @specs={}>, @artifacts=#<SortedSet: {...}>, @staged_path=#<Pathname:/usr/local/Caskroom/pdk/1.17.0.0>, @name=["Puppet Development Kit"], @homepage="https://github.com/puppetlabs/pdk", @caveats=#<Cask::DSL::Caveats:0x00007fb3f19ed7a0 @cask=#<Cask::Cask:0x00007fb3f1861df0 ...>, @command=SystemCommand, @built_in_caveats={}, @custom_caveats=["\n    PDK binaries are installed in /opt/puppetlabs/pdk/bin, which is sourced by an /etc/paths.d entry.\n    /opt/puppetlabs/pdk/bin may not be included in your current $PATH but should be included in new shells.\n"]>, @language=nil>>, @directives={:postflight=>#<Proc:0x00007fb3f19ed480@/usr/local/Homebrew/Library/Taps/puppetlabs/homebrew-puppet/Casks/pdk.rb:41>}>}>
==> Installing artifact of class Cask::Artifact::Pkg
==> Running installer for pdk; your password may be necessary.
==> Package installers may write to any location; options such as --appdir are ignored.
/usr/bin/sudo -E -- /usr/bin/env LOGNAME=mhood USER=mhood USERNAME=mhood /usr/sbin/installer -pkg /usr/local/Caskroom/pdk/1.17.0.0/pdk-1.17.0.0-1-installer.pkg -target / -verboseR
Password:
installer: Package name is pdk
installer: Upgrading at base path /
installer:PHASE:Preparing for installation…
installer:PHASE:Preparing the disk…
installer:PHASE:Preparing pdk…
installer:PHASE:Waiting for other installations to complete…
installer:PHASE:Configuring the installation…
installer:STATUS:
installer:%2.200000
installer:PHASE:Validating packages…
installer:PHASE:Validating packages…
installer:PHASE:Validating packages…
installer:PHASE:Validating packages…
installer:PHASE:Validating packages…
installer:%3.175000
installer:PHASE:Validating packages…
installer:PHASE:Validating packages…
installer:PHASE:Validating packages…
installer:PHASE:Validating packages…
installer:PHASE:Validating packages…
installer:PHASE:Validating packages…
installer:PHASE:Validating packages…
installer:PHASE:Validating packages…
installer:PHASE:Validating packages…
installer:PHASE:Validating packages…
installer:PHASE:Validating packages…
installer:PHASE:Validating packages…
installer:PHASE:Validating packages…
installer:PHASE:Validating packages…
installer:PHASE:Validating packages…
installer:PHASE:Validating packages…
installer:PHASE:Validating packages…
installer:%4.010058
installer:PHASE:Writing files…
installer:%5.944753
installer:PHASE:Writing files…
installer:%6.779811
installer:PHASE:Writing files…
installer:PHASE:Writing files…
installer:%7.614869
installer:PHASE:Writing files…
installer:PHASE:Writing files…
installer:PHASE:Writing files…
installer:%8.449927
installer:PHASE:Writing files…
installer:PHASE:Writing files…
installer:%9.284985
installer:PHASE:Writing files…
installer:PHASE:Writing files…
installer:%12.625218
installer:PHASE:Writing files…
installer:%13.460276
installer:PHASE:Writing files…
installer:PHASE:Writing files…
installer:%14.295334
installer:PHASE:Writing files…
installer:PHASE:Writing files…
installer:%15.130392
installer:PHASE:Writing files…
installer:PHASE:Writing files…
installer:%15.965450
installer:PHASE:Writing files…
installer:%16.800509
installer:PHASE:Writing files…
installer:PHASE:Writing files…
installer:%17.635567
installer:PHASE:Writing files…
installer:PHASE:Writing files…
installer:%18.470625
installer:PHASE:Writing files…
installer:%20.140741
installer:PHASE:Writing files…
installer:PHASE:Writing files…
installer:PHASE:Writing files…
installer:%20.975799
installer:PHASE:Writing files…
installer:PHASE:Writing files…
installer:%21.810857
installer:PHASE:Writing files…
installer:PHASE:Writing files…
installer:PHASE:Writing files…
installer:%22.645916
installer:PHASE:Writing files…
installer:%23.480974
installer:PHASE:Writing files…
installer:%25.986148
installer:PHASE:Writing files…
installer:%26.821206
installer:PHASE:Writing files…
installer:%27.656264
installer:PHASE:Writing files…
installer:PHASE:Writing files…
installer:%28.491322
installer:PHASE:Writing files…
installer:%29.326381
installer:PHASE:Writing files…
installer:%30.161439
installer:PHASE:Writing files…
installer:%30.996497
installer:PHASE:Writing files…
installer:%31.831555
installer:PHASE:Writing files…
installer:%38.512020
installer:PHASE:Writing files…
installer:PHASE:Writing files…
installer:%39.347078
installer:PHASE:Writing files…
installer:PHASE:Writing files…
installer:%40.182136
installer:PHASE:Writing files…
installer:%41.017194
installer:PHASE:Writing files…
installer:PHASE:Writing files…
installer:%41.852253
installer:PHASE:Writing files…
installer:PHASE:Writing files…
installer:%42.687311
installer:PHASE:Writing files…
installer:PHASE:Writing files…
installer:%44.357427
installer:PHASE:Writing files…
installer:%46.027543
installer:PHASE:Writing files…
installer:PHASE:Writing files…
installer:%46.862601
installer:PHASE:Writing files…
installer:PHASE:Writing files…
installer:%47.697659
installer:PHASE:Writing files…
installer:PHASE:Writing files…
installer:%48.532718
installer:PHASE:Writing files…
installer:PHASE:Writing files…
installer:%49.367776
installer:PHASE:Writing files…
installer:PHASE:Writing files…
installer:%50.202834
installer:PHASE:Writing files…
installer:%51.037892
installer:PHASE:Writing files…
installer:PHASE:Writing files…
installer:%51.872950
installer:PHASE:Writing files…
installer:PHASE:Writing files…
installer:%54.378124
installer:PHASE:Writing files…
installer:PHASE:Writing files…
installer:%55.213183
installer:PHASE:Writing files…
installer:PHASE:Writing files…
installer:PHASE:Writing files…
installer:%56.048241
installer:PHASE:Writing files…
installer:%56.883299
installer:PHASE:Writing files…
installer:PHASE:Writing files…
installer:%57.718357
installer:PHASE:Writing files…
installer:%66.135005
installer:PHASE:Running package scripts…
installer:%68.108268
installer:PHASE:Registering package with system…
installer:%68.526330
installer:PHASE:Registering package with system…
installer:%68.574113
installer:PHASE:Registering package with system…
installer:PHASE:Registering package with system…
installer:%68.840267
installer:PHASE:Moving items into place…
installer:%69.255620
installer:PHASE:Moving items into place…
installer:%69.674098
installer:PHASE:Moving items into place…
installer:%70.092992
installer:PHASE:Moving items into place…
installer:%70.509043
installer:PHASE:Moving items into place…
installer:%70.928425
installer:PHASE:Moving items into place…
installer:%71.345369
installer:PHASE:Moving items into place…
installer:%71.760558
installer:PHASE:Moving items into place…
installer:%72.180514
installer:PHASE:Moving items into place…
installer:%72.594797
installer:PHASE:Moving items into place…
installer:%73.013233
installer:PHASE:Moving items into place…
installer:%73.432804
installer:PHASE:Moving items into place…
installer:%73.849181
installer:PHASE:Moving items into place…
installer:%74.268302
installer:PHASE:Moving items into place…
installer:%74.684612
installer:PHASE:Moving items into place…
installer:%75.099861
installer:PHASE:Moving items into place…
installer:%75.518721
installer:PHASE:Moving items into place…
installer:%75.938409
installer:PHASE:Moving items into place…
installer:%76.352971
installer:PHASE:Moving items into place…
installer:%76.771596
installer:PHASE:Moving items into place…
installer:%76.924694
installer:PHASE:Moving items into place…
installer:PHASE:Moving items into place…
installer:PHASE:Moving items into place…
installer:PHASE:Moving items into place…
installer:PHASE:Moving items into place…
installer:PHASE:Moving items into place…
installer:PHASE:Moving items into place…
installer:PHASE:Moving items into place…
installer:PHASE:Moving items into place…
installer:PHASE:Moving items into place…
installer:PHASE:Moving items into place…
installer:PHASE:Moving items into place…
installer:PHASE:Moving items into place…
installer:PHASE:Moving items into place…
installer:PHASE:Moving items into place…
installer:PHASE:Moving items into place…
installer:PHASE:Moving items into place…
installer:PHASE:Moving items into place…
installer:PHASE:Moving items into place…
installer:PHASE:Moving items into place…
installer:PHASE:Moving items into place…
installer:PHASE:Moving items into place…
installer:PHASE:Moving items into place…
installer:PHASE:Moving items into place…
installer:PHASE:Moving items into place…
installer:PHASE:Moving items into place…
installer:PHASE:Moving items into place…
installer:PHASE:Moving items into place…
installer:PHASE:Moving items into place…
installer:PHASE:Moving items into place…
installer:PHASE:Moving items into place…
installer:PHASE:Moving items into place…
installer:PHASE:Moving items into place…
installer:PHASE:Moving items into place…
installer:PHASE:Moving items into place…
installer:PHASE:Moving items into place…
installer:PHASE:Moving items into place…
installer:PHASE:Moving items into place…
installer:PHASE:Moving items into place…
installer:PHASE:Moving items into place…
installer:PHASE:Moving items into place…
installer:PHASE:Moving items into place…
installer:PHASE:Moving items into place…
installer:PHASE:Moving items into place…
installer:PHASE:Moving items into place…
installer:PHASE:Moving items into place…
installer:PHASE:Moving items into place…
installer:PHASE:Moving items into place…
installer:PHASE:Moving items into place…
installer:PHASE:Moving items into place…
installer:PHASE:Moving items into place…
installer:PHASE:Moving items into place…
installer:PHASE:Moving items into place…
installer:PHASE:Moving items into place…
installer:PHASE:Moving items into place…
installer:PHASE:Moving items into place…
installer:PHASE:Moving items into place…
installer:PHASE:Moving items into place…
installer:PHASE:Moving items into place…
installer:PHASE:Moving items into place…
installer:PHASE:Moving items into place…
installer:PHASE:Moving items into place…
installer:PHASE:Moving items into place…
installer:PHASE:Moving items into place…
installer:PHASE:Moving items into place…
installer:PHASE:Moving items into place…
installer:PHASE:Moving items into place…
installer:PHASE:Moving items into place…
installer:%77.183139
installer:PHASE:Running package scripts…
installer:%78.160819
installer:PHASE:Writing package receipts…
installer:%78.579196
installer:PHASE:Writing package receipts…
installer:%78.995318
installer:PHASE:Writing package receipts…
installer:%79.413860
installer:PHASE:Writing package receipts…
installer:%79.831170
installer:PHASE:Writing package receipts…
installer:%80.245979
installer:PHASE:Writing package receipts…
installer:PHASE:Validating packages…
installer:%97.750000
installer:STATUS:Running installer actions…
installer:STATUS:
installer:PHASE:Finishing the Installation…
installer:STATUS:
installer:%100.000000
installer:PHASE:The software was successfully installed.
installer: The upgrade was successful.
==> Installing artifact of class Cask::Artifact::PostflightBlock
/bin/chmod -R -- a\+rX /opt/puppetlabs/pdk
chmod: Unable to change file mode on /opt/puppetlabs/pdk/private/ruby/2.4.9/lib/ruby/site_ruby/2.4.0/rubygems: Operation not permitted
chmod: /opt/puppetlabs/pdk/private/ruby/2.4.9/lib/ruby/site_ruby/2.4.0/rubygems: Permission denied
chmod: Unable to change file mode on /opt/puppetlabs/pdk/private/ruby/2.4.9/lib/ruby/site_ruby/2.4.0/rubygems: Operation not permitted
chmod: Unable to change file mode on /opt/puppetlabs/pdk/private/ruby/2.4.9/lib/ruby/site_ruby/2.4.0/bundler: Operation not permitted
chmod: /opt/puppetlabs/pdk/private/ruby/2.4.9/lib/ruby/site_ruby/2.4.0/bundler: Permission denied
chmod: Unable to change file mode on /opt/puppetlabs/pdk/private/ruby/2.4.9/lib/ruby/site_ruby/2.4.0/bundler: Operation not permitted
chmod: Unable to change file mode on /opt/puppetlabs/pdk/private/ruby/2.4.9/lib/ruby/gems/2.4.0/gems/bundler-1.17.2: Operation not permitted
chmod: /opt/puppetlabs/pdk/private/ruby/2.4.9/lib/ruby/gems/2.4.0/gems/bundler-1.17.2: Permission denied
chmod: Unable to change file mode on /opt/puppetlabs/pdk/private/ruby/2.4.9/lib/ruby/gems/2.4.0/gems/bundler-1.17.2: Operation not permitted
chmod: Unable to change file mode on /opt/puppetlabs/pdk/private/ruby/2.5.7/lib/ruby/site_ruby/2.5.0/rubygems: Operation not permitted
chmod: /opt/puppetlabs/pdk/private/ruby/2.5.7/lib/ruby/site_ruby/2.5.0/rubygems: Permission denied
chmod: Unable to change file mode on /opt/puppetlabs/pdk/private/ruby/2.5.7/lib/ruby/site_ruby/2.5.0/rubygems: Operation not permitted
chmod: Unable to change file mode on /opt/puppetlabs/pdk/private/ruby/2.5.7/lib/ruby/site_ruby/2.5.0/bundler: Operation not permitted
chmod: /opt/puppetlabs/pdk/private/ruby/2.5.7/lib/ruby/site_ruby/2.5.0/bundler: Permission denied
chmod: Unable to change file mode on /opt/puppetlabs/pdk/private/ruby/2.5.7/lib/ruby/site_ruby/2.5.0/bundler: Operation not permitted
chmod: Unable to change file mode on /opt/puppetlabs/pdk/private/ruby/2.5.7/lib/ruby/gems/2.5.0/gems/bundler-1.17.2: Operation not permitted
chmod: /opt/puppetlabs/pdk/private/ruby/2.5.7/lib/ruby/gems/2.5.0/gems/bundler-1.17.2: Permission denied
chmod: Unable to change file mode on /opt/puppetlabs/pdk/private/ruby/2.5.7/lib/ruby/gems/2.5.0/gems/bundler-1.17.2: Operation not permitted
==> Purging files for version 1.17.0.0 of Cask pdk
Error: Failure while executing; `/bin/chmod -R -- a\+rX /opt/puppetlabs/pdk` exited with 1. Here's the output:
chmod: Unable to change file mode on /opt/puppetlabs/pdk/private/ruby/2.4.9/lib/ruby/site_ruby/2.4.0/rubygems: Operation not permitted
chmod: /opt/puppetlabs/pdk/private/ruby/2.4.9/lib/ruby/site_ruby/2.4.0/rubygems: Permission denied
chmod: Unable to change file mode on /opt/puppetlabs/pdk/private/ruby/2.4.9/lib/ruby/site_ruby/2.4.0/rubygems: Operation not permitted
chmod: Unable to change file mode on /opt/puppetlabs/pdk/private/ruby/2.4.9/lib/ruby/site_ruby/2.4.0/bundler: Operation not permitted
chmod: /opt/puppetlabs/pdk/private/ruby/2.4.9/lib/ruby/site_ruby/2.4.0/bundler: Permission denied
chmod: Unable to change file mode on /opt/puppetlabs/pdk/private/ruby/2.4.9/lib/ruby/site_ruby/2.4.0/bundler: Operation not permitted
chmod: Unable to change file mode on /opt/puppetlabs/pdk/private/ruby/2.4.9/lib/ruby/gems/2.4.0/gems/bundler-1.17.2: Operation not permitted
chmod: /opt/puppetlabs/pdk/private/ruby/2.4.9/lib/ruby/gems/2.4.0/gems/bundler-1.17.2: Permission denied
chmod: Unable to change file mode on /opt/puppetlabs/pdk/private/ruby/2.4.9/lib/ruby/gems/2.4.0/gems/bundler-1.17.2: Operation not permitted
chmod: Unable to change file mode on /opt/puppetlabs/pdk/private/ruby/2.5.7/lib/ruby/site_ruby/2.5.0/rubygems: Operation not permitted
chmod: /opt/puppetlabs/pdk/private/ruby/2.5.7/lib/ruby/site_ruby/2.5.0/rubygems: Permission denied
chmod: Unable to change file mode on /opt/puppetlabs/pdk/private/ruby/2.5.7/lib/ruby/site_ruby/2.5.0/rubygems: Operation not permitted
chmod: Unable to change file mode on /opt/puppetlabs/pdk/private/ruby/2.5.7/lib/ruby/site_ruby/2.5.0/bundler: Operation not permitted
chmod: /opt/puppetlabs/pdk/private/ruby/2.5.7/lib/ruby/site_ruby/2.5.0/bundler: Permission denied
chmod: Unable to change file mode on /opt/puppetlabs/pdk/private/ruby/2.5.7/lib/ruby/site_ruby/2.5.0/bundler: Operation not permitted
chmod: Unable to change file mode on /opt/puppetlabs/pdk/private/ruby/2.5.7/lib/ruby/gems/2.5.0/gems/bundler-1.17.2: Operation not permitted
chmod: /opt/puppetlabs/pdk/private/ruby/2.5.7/lib/ruby/gems/2.5.0/gems/bundler-1.17.2: Permission denied
chmod: Unable to change file mode on /opt/puppetlabs/pdk/private/ruby/2.5.7/lib/ruby/gems/2.5.0/gems/bundler-1.17.2: Operation not permitted

Follow the instructions here:
  https://github.com/Homebrew/homebrew-cask#reporting-bugs
/usr/local/Homebrew/Library/Homebrew/system_command.rb:176:in `assert_success!'
/usr/local/Homebrew/Library/Homebrew/system_command.rb:53: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/staged.rb:11:in `set_permissions'
/usr/local/Homebrew/Library/Taps/puppetlabs/homebrew-puppet/Casks/pdk.rb:42:in `block (2 levels) in load'
/usr/local/Homebrew/Library/Homebrew/cask/artifact/abstract_flight_block.rb:41:in `instance_eval'
/usr/local/Homebrew/Library/Homebrew/cask/artifact/abstract_flight_block.rb:41:in `abstract_phase'
/usr/local/Homebrew/Library/Homebrew/cask/artifact/abstract_flight_block.rb:24:in `install_phase'
/usr/local/Homebrew/Library/Homebrew/cask/installer.rb:218:in `block in install_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:209:in `install_artifacts'
/usr/local/Homebrew/Library/Homebrew/cask/installer.rb:101:in `install'
/usr/local/Homebrew/Library/Homebrew/cask/installer.rb:127:in `reinstall'
/usr/local/Homebrew/Library/Homebrew/cask/cmd/reinstall.rb:13:in `block in run'
/usr/local/Homebrew/Library/Homebrew/cask/cmd/reinstall.rb:7:in `each'
/usr/local/Homebrew/Library/Homebrew/cask/cmd/reinstall.rb:7:in `run'
/usr/local/Homebrew/Library/Homebrew/cask/cmd/abstract_command.rb:36:in `run'
/usr/local/Homebrew/Library/Homebrew/cask/cmd.rb:92:in `run_command'
/usr/local/Homebrew/Library/Homebrew/cask/cmd.rb:158:in `run'
/usr/local/Homebrew/Library/Homebrew/cask/cmd.rb:123:in `run'
/usr/local/Homebrew/Library/Homebrew/cmd/cask.rb:9:in `cask'
/usr/local/Homebrew/Library/Homebrew/brew.rb:103:in `<main>'
Error: Kernel.exit
/usr/local/Homebrew/Library/Homebrew/cask/cmd.rb:167:in `exit'
/usr/local/Homebrew/Library/Homebrew/cask/cmd.rb:167:in `rescue in run'
/usr/local/Homebrew/Library/Homebrew/cask/cmd.rb:146:in `run'
/usr/local/Homebrew/Library/Homebrew/cask/cmd.rb:123:in `run'
/usr/local/Homebrew/Library/Homebrew/cmd/cask.rb:9:in `cask'
/usr/local/Homebrew/Library/Homebrew/brew.rb:103:in `<main>'
    ~                                                                                                                                                                                                                                                           1 ✘  took 2m 0s 

Output of brew cask doctor

❯ brew cask doctor
==> Homebrew Version
2.2.7-8-g15d274b
==> macOS
10.15.4
==> SIP
Enabled
==> Java
1.8.0_221
==> xattr issues
<NONE>
==> Gatekeeper support
Enabled
==> Homebrew Cask Install Location
<NONE>
==> Homebrew Cask Staging Location
/usr/local/Caskroom
==> Homebrew Cask Taps:
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask (3543 casks)
/usr/local/Homebrew/Library/Taps/puppetlabs/homebrew-puppet (8 casks)
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask-drivers (145 casks)
/usr/local/Homebrew/Library/Taps/caskroom/homebrew-versions (164 casks)
/usr/local/Homebrew/Library/Taps/caskroom/homebrew-cask (3543 casks)
==> Contents of $LOAD_PATH
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/ruby-macho-2.2.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/rubocop-rspec-1.38.1/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/rubocop-performance-1.5.2/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/rubocop-0.80.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/unicode-display_width-1.6.1/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/ruby-progressbar-1.10.1/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/rspec-wait-0.0.9/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/rspec-retry-0.6.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-3.9.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/rspec-mocks-3.9.1/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/rspec-expectations-3.9.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/rspec-core-3.9.1/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/rspec-support-3.9.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/rdiscount-2.2.0.1/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/extensions/universal-darwin-19/2.6.0/rdiscount-2.2.0.1
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/rainbow-3.0.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/plist-3.5.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/parser-2.7.0.2/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/parallel_tests-2.31.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/parallel-1.19.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/mechanize-2.7.6/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/webrobots-0.1.2/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/ntlm-http-0.1.1/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/nokogiri-1.10.8/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/extensions/universal-darwin-19/2.6.0/nokogiri-1.10.8
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/mini_portile2-2.4.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/net-http-persistent-3.1.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/net-http-digest_auth-1.4.1/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/mime-types-3.3.1/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/mime-types-data-3.2019.1009/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/jaro_winkler-1.5.4/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/extensions/universal-darwin-19/2.6.0/jaro_winkler-1.5.4
/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/universal-darwin-19/2.6.0/hpricot-0.8.6
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/domain_name-0.5.20190701/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/unf-0.1.4/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/unf_ext-0.0.7.6/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/extensions/universal-darwin-19/2.6.0/unf_ext-0.0.7.6
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/diff-lcs-1.3/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/coveralls-0.8.23/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/thor-1.0.1/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/term-ansicolor-1.7.1/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/tins-1.24.1/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../../../../../../../../Library/Ruby/Gems/2.6.0/gems/sync-0.5.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/simplecov-0.16.1/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/simplecov-html-0.10.2/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/docile-1.3.2/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/json-2.3.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/extensions/universal-darwin-19/2.6.0/json-2.3.0
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/connection_pool-2.2.2/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/ast-2.4.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/activesupport-6.0.2.1/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/zeitwerk-2.2.2/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/tzinfo-1.2.6/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/thread_safe-0.3.6/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/minitest-5.14.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/i18n-1.8.2/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby
/Library/Ruby/Gems/2.6.0/gems/bigdecimal-2.0.0/lib
/Library/Ruby/Gems/2.6.0/extensions/universal-darwin-19/2.6.0/bigdecimal-2.0.0
/Library/Ruby/Site/2.6.0
/Library/Ruby/Site/2.6.0/x86_64-darwin19
/Library/Ruby/Site/2.6.0/universal-darwin19
/Library/Ruby/Site
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/vendor_ruby/2.6.0
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/vendor_ruby/2.6.0/x86_64-darwin19
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/vendor_ruby/2.6.0/universal-darwin19
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/vendor_ruby
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/x86_64-darwin19
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/universal-darwin19
/usr/local/Homebrew/Library/Homebrew
==> Environment Variables
LC_ALL="en_US.UTF-8"
PATH="/usr/local/Homebrew/Library/Homebrew/shims/scm:/usr/bin:/bin:/usr/sbin:/sbin"
SHELL="/bin/zsh"

Output of brew tap

❯ brew tap
buo/cask-upgrade
caskroom/cask
caskroom/versions
getantibody/tap
homebrew/bundle
homebrew/cask
homebrew/cask-drivers
homebrew/core
homebrew/services
puppetlabs/puppet
sandreas/tap
varenc/ffmpeg
vitorgalvao commented 4 years ago

Can you install it manually?

no-response[bot] commented 4 years ago

This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.