homebrew-cask: Intel Power Gadget failed proper download
General troubleshooting steps
- I have retried my command with
--forceand the issue is still present. - I have checked the instructions for reporting bugs.
- None of the templates was appropriate for my issue, or I’m not sure.
- I ran
brew update-reset && brew updateand retried my command. - I ran
brew doctor, fixed as many issues as possible and retried my command. - I understand that if I ignore these instructions, my issue may be closed without review.
Description of issue
brew cask install --require-sha --verbose --force --debug intel-power-gadget
Downloaded file extension is missing (.dmg) and placing a correctly downloaded version into the cache doesn’t force the install either.
wget is able to properly grab the disk-image from the command below.
wget https://software.intel.com/file/655065/download\?\#.dmg
I’ve tried playing with the cask but I’m not entirely sure what is causing the messed up file name.
Command that failed
brew cask install --require-sha --verbose --force --debug intel-power-gadget
Output of command with --force --verbose --debug
==> Hbc::Installer#install
==> Printing caveats
==> Caveats
To install and/or use intel-power-gadget you may need to enable their kernel extension in
System Preferences → Security & Privacy → General
For more information refer to vendor documentation or the Apple Technical Note:
https://developer.apple.com/library/content/technotes/tn2459/_index.html
==> Hbc::Installer#fetch
==> Satisfying dependencies
==> Downloading
==> Downloading https://software.intel.com/file/655065/download?#.dmg
/usr/bin/curl -q --show-error --user-agent Homebrew/1.7.1-175-g3bce1c7\ \(Macintosh\;\ Intel\ Mac\ OS\ X\ 10.13.6\)\ curl/7.54.0 --silent --head --write-out \%\{redirect_url\} --output /dev/null https://software.intel.com/file/655065/download\?\#.dmg
==> Downloading from https://software.intel.com/sites/default/files/managed/b1/ed/Intel%C2%AE%20Power%20Gadget%203.5.3.dmg
/usr/bin/curl -q --show-error --user-agent Homebrew/1.7.1-175-g3bce1c7\ \(Macintosh\;\ Intel\ Mac\ OS\ X\ 10.13.6\)\ curl/7.54.0 --fail --location --remote-time --continue-at - --output /Users/USER/Library/Caches/Homebrew/Cask/intel-power-gadget--3.5.3,655065.incomplete https://software.intel.com/sites/default/files/managed/b1/ed/Intel\%C2\%AE\%20Power\%20Gadget\%203.5.3.dmg
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 5120k 100 5120k 0 0 3564k 0 0:00:01 0:00:01 --:--:-- 3565k
==> Downloaded to -> /Users/USER/Library/Caches/Homebrew/Cask/intel-power-gadget--3.5.3,655065
==> Verifying download
==> Determining which verifications to run for Cask intel-power-gadget
==> Checking for verification class Hbc::Verify::Checksum
==> 1 verifications defined
Hbc::Verify::Checksum
==> Running verification of class Hbc::Verify::Checksum
==> Verifying checksum for Cask intel-power-gadget
==> SHA256 checksums match
==> Installing Cask intel-power-gadget
==> Hbc::Installer#stage
hdiutil imageinfo /Users/USER/Library/Caches/Homebrew/Cask/intel-power-gadget--3.5.3,655065
==> Extracting primary container
==> Using container class UnpackStrategy::Uncompressed for /Users/USER/Library/Caches/Homebrew/Cask/intel-power-gadget--3.5.3,655065
cp -p /Users/USER/Library/Caches/Homebrew/Cask/intel-power-gadget--3.5.3,655065 /usr/local/Caskroom/intel-power-gadget/3.5.3,655065/download
==> Creating metadata directory /usr/local/Caskroom/intel-power-gadget/.metadata/3.5.3,655065/20180808171446.822.
==> Creating metadata subdirectory /usr/local/Caskroom/intel-power-gadget/.metadata/3.5.3,655065/20180808171446.822/Casks.
==> Installing artifacts
==> 2 artifact/s defined
#<SortedSet:0x00007f8a8151eda8>
==> Installing artifact of class Hbc::Artifact::Pkg
==> Running installer for intel-power-gadget; your password may be necessary.
==> Package installers may write to any location; options such as --appdir are ignored.
==> Purging files for version 3.5.3,655065 of Cask intel-power-gadget
Error: pkg source file not found: 'Install Intel Power Gadget.pkg'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/artifact/pkg.rb:40:in `run_installer'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/artifact/pkg.rb:31:in `install_phase'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/installer.rb:192:in `block in install_artifacts'
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/set.rb:674:in `each'
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/set.rb:674:in `each'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/installer.rb:184:in `install_artifacts'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/installer.rb:90:in `install'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli/install.rb:20:in `block in run'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli/install.rb:14:in `each'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli/install.rb:14:in `run'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli/abstract_command.rb:33:in `run'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli.rb:91:in `run_command'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli.rb:157:in `run'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli.rb:122:in `run'
/usr/local/Homebrew/Library/Homebrew/cmd/cask.rb:7:in `cask'
/usr/local/Homebrew/Library/Homebrew/brew.rb:87:in `<main>'
Error: Kernel.exit
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli.rb:162:in `exit'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli.rb:162:in `rescue in run'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli.rb:145:in `run'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli.rb:122:in `run'
/usr/local/Homebrew/Library/Homebrew/cmd/cask.rb:7:in `cask'
/usr/local/Homebrew/Library/Homebrew/brew.rb:87:in `<main>'
Output of brew cask doctor
==> Homebrew-Cask Version
Homebrew-Cask 1.7.1-175-g3bce1c7
Homebrew/homebrew-cask (git revision 1752b0; last commit 2018-08-08)
==> macOS
10.13.6
==> SIP
Enabled
==> Java
10.0.2, 1.8.0_172
==> Homebrew-Cask Install Location
<NONE>
==> Homebrew-Cask Staging Location
/usr/local/Caskroom
==> Homebrew-Cask Cached Downloads
~/Library/Caches/Homebrew/Cask (1 files, 5MB)
==> Homebrew-Cask Taps:
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask (4019 casks)
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask-versions (192 casks)
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask-eid (11 casks)
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask-fonts (1164 casks)
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask-drivers (152 casks)
==> Contents of $LOAD_PATH
/Library/Ruby/Gems/2.3.0/gems/did_you_mean-1.0.0/lib
/Library/Ruby/Site/2.3.0
/Library/Ruby/Site/2.3.0/x86_64-darwin17
/Library/Ruby/Site/2.3.0/universal-darwin17
/Library/Ruby/Site
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/vendor_ruby/2.3.0
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/vendor_ruby/2.3.0/x86_64-darwin17
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/vendor_ruby/2.3.0/universal-darwin17
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/vendor_ruby
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/x86_64-darwin17
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/universal-darwin17
/usr/local/Homebrew/Library/Homebrew/cask/lib
/usr/local/Homebrew/Library/Homebrew
==> Environment Variables
LC_ALL="en_US.UTF-8"
PATH="/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/Homebrew/Library/Homebrew/shims/scm"
SHELL="/usr/local/bin/zsh"
Output of brew tap
beeftornado/rmtree
homebrew/bundle
homebrew/cask
homebrew/cask-drivers
homebrew/cask-eid
homebrew/cask-fonts
homebrew/cask-versions
homebrew/core
homebrew/livecheck
homebrew/services
vitorgalvao/tiny-scripts
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 22 (21 by maintainers)
@Jahhein Casks can contain so many types of software, it’s hard to say. But the vast majority (
apps,fonts, and the like) shouldn’t be affected as we move those to their respective directories on the system.You’ll lose the record of them being installed with HBC, though. Meaning
brew cask upgradeand similar won’t include them until you overwrite them with cask versions (brew cask reinstall --force).