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

Gnucash latest dmg install fails with a url error #87183

Closed ankit-jha closed 4 years ago

ankit-jha commented 4 years ago

General troubleshooting steps

Description of issue

brew cask reinstall gnucash fails with url error The command is trying to download from incorrect url. Incorrect url : (https://github.com/Gnucash/gnucash/releases/download/4.1/Gnucash-Intel-4.1-1.dmg) Correct url : (https://github.com/Gnucash/gnucash/releases/download/4.1/Gnucash-Intel-4.1-2.dmg)

Command that failed

brew cask reinstall gnucash

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

==> Downloading https://github.com/Gnucash/gnucash/releases/download/4.1/Gnucash-Intel-4.1-1.dmg
##O#- #
curl: (22) The requested URL returned error: 404 Not Found
Error: Download failed on Cask 'gnucash' with message: Download failed: https://github.com/Gnucash/gnucash/releases/download/4.1/Gnucash-Intel-4.1-1.dmg

Output of brew cask doctor

==> Homebrew Version
2.4.9-293-g56ed27a
==> macOS
10.15.5
==> SIP
Enabled
==> Java
11.0.8
==> Homebrew Cask Staging Location
/usr/local/Caskroom
==> Homebrew Cask Taps:
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask (3639 casks)
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask-fonts (1546 casks)
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask-drivers (155 casks)
/usr/local/Homebrew/Library/Taps/adoptopenjdk/homebrew-openjdk (37 casks)
==> $LOAD_PATHS
/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.42.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/rubocop-performance-1.7.1/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/plist-3.5.0/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/
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/activesupport-6.0.3.2/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/zeitwerk-2.4.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/tzinfo-1.2.7/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/i18n-1.8.5/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby
/Library/Ruby/Site/2.6.0
/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/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/universal-darwin19
/usr/local/Homebrew/Library/Homebrew
==> Cask Environment Variables:
BUNDLE_PATH
CHRUBY_VERSION
GEM_HOME
GEM_PATH
HOMEBREW_CASK_OPTS
LC_ALL
PATH
RBENV_VERSION
RUBYLIB
RUBYOPT
RUBYPATH
SHELL

Output of brew tap

adoptopenjdk/openjdk
homebrew/cask
homebrew/cask-drivers
homebrew/cask-fonts
homebrew/core
universal-ctags/universal-ctags
relgames commented 4 years ago

Still not working:

 ~ brew cask install gnucash
==> Downloading https://github.com/Gnucash/gnucash/releases/download/4.1/Gnucash-Intel-4.1-2.dmg
##O#- #
curl: (22) The requested URL returned error: 404 Not Found
Error: Download failed on Cask 'gnucash' with message: Download failed: https://github.com/Gnucash/gnucash/releases/download/4.1/Gnucash-Intel-4.1-2.dmg
ankit-jha commented 4 years ago

Still not working:

 ~ brew cask install gnucash
==> Downloading https://github.com/Gnucash/gnucash/releases/download/4.1/Gnucash-Intel-4.1-2.dmg
##O#- #
curl: (22) The requested URL returned error: 404 Not Found
Error: Download failed on Cask 'gnucash' with message: Download failed: https://github.com/Gnucash/gnucash/releases/download/4.1/Gnucash-Intel-4.1-2.dmg

Unfortunately, they have changed the url again Correct url : https://github.com/Gnucash/gnucash/releases/download/4.1/Gnucash-Intel-4.1-4.dmg