Skip to content

Error installing cask anaconda: Cask 'anaconda' definition is invalid: invalid 'sha256' value: nil #205491

@dvyakumar

Description

@dvyakumar

Verification

Description of issue

the command was run on Manjaro OS, x86 arch

Command that failed

brew install --cask anaconda

Output of command with --verbose --debug

==> Downloading https://formulae.brew.sh/api/cask.jws.json
/usr/bin/env /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/shims/shared/curl --disable --cookie /dev/null --globoff --user-agent Linuxbrew/4.4.24-224-g68f0838\ \(Linux\;\ x86_64\ Manjaro\ Linux\)\ curl/8.12.1 --header Accept-Language:\ en --fail --remote-time --output /home/divyamsk/.cache/Homebrew/api/cask.jws.json --location --time-cond /home/divyamsk/.cache/Homebrew/api/cask.jws.json --disable --cookie /dev/null --globoff --show-error --user-agent Linuxbrew/4.4.24-224-g68f0838\ \(Linux\;\ x86_64\ Manjaro\ Linux\)\ curl/8.12.1 --header Accept-Language:\ en --fail --compressed --speed-limit 100 --speed-time 5 https://formulae.brew.sh/api/cask.jws.json
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/brew.rb (Cask::CaskLoader::FromAPILoader): loading anaconda
==> Cask::Installer#install
==> Printing caveats
==> Cask::Installer#fetch
/usr/bin/env /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/shims/shared/curl --disable --cookie /dev/null --globoff --show-error --user-agent Linuxbrew/4.4.24-224-g68f0838\ \(Linux\;\ x86_64\ Manjaro\ Linux\)\ curl/8.12.1 --header Accept-Language:\ en --retry 3 -V
/usr/bin/env /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/shims/shared/curl --disable --cookie /dev/null --globoff --show-error --user-agent Linuxbrew/4.4.24-224-g68f0838\ \(Linux\;\ x86_64\ Manjaro\ Linux\)\ curl/8.12.1 --header Accept-Language:\ en --retry 3 --fail --location --silent --head https://raw.githubusercontent.com/Homebrew/homebrew-cask/2b8c0f2d94c34816eef280b2949d6b5496037b98/Casks/a/anaconda.rb
/usr/bin/env /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/shims/shared/curl --disable --cookie /dev/null --globoff --show-error --user-agent Linuxbrew/4.4.24-224-g68f0838\ \(Linux\;\ x86_64\ Manjaro\ Linux\)\ curl/8.12.1 --header Accept-Language:\ en --retry 3 --fail --location --silent --head --request GET https://raw.githubusercontent.com/Homebrew/homebrew-cask/2b8c0f2d94c34816eef280b2949d6b5496037b98/Casks/a/anaconda.rb
==> Downloading https://raw.githubusercontent.com/Homebrew/homebrew-cask/2b8c0f2d94c34816eef280b2949d6b5496037b98/Casks/a/anaconda.rb
/usr/bin/env /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/shims/shared/curl --disable --cookie /dev/null --globoff --show-error --user-agent Linuxbrew/4.4.24-224-g68f0838\ \(Linux\;\ x86_64\ Manjaro\ Linux\)\ curl/8.12.1 --header Accept-Language:\ en --fail --connect-timeout 15 --retry 3 --remote-time --output /home/divyamsk/.cache/Homebrew/downloads/c7a7e3d94c11f34d8c95000c9204a9515f6068b3bda2f0e1e915fe60899724ad--anaconda.rb.incomplete --location https://raw.githubusercontent.com/Homebrew/homebrew-cask/2b8c0f2d94c34816eef280b2949d6b5496037b98/Casks/a/anaconda.rb
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  1416  100  1416    0     0    340      0  0:00:04  0:00:04 --:--:--   345
==> Verifying checksum for 'c7a7e3d94c11f34d8c95000c9204a9515f6068b3bda2f0e1e915fe60899724ad--anaconda.rb'
Error: Cask 'anaconda' definition is invalid: invalid 'sha256' value: nil
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/cask/dsl.rb:369:in `block in sha256'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/cask/dsl.rb:185:in `set_unique_stanza'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/cask/dsl.rb:354:in `sha256'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11933/lib/types/private/methods/call_validation.rb:179:in `bind_call'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11933/lib/types/private/methods/call_validation.rb:179:in `validate_call_skip_block_type'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11933/lib/types/private/methods/call_validation.rb:121:in `block in create_validator_slow_skip_block_type'
/home/divyamsk/.cache/Homebrew/api-source/Homebrew/homebrew-cask/2b8c0f2d94c34816eef280b2949d6b5496037b98/Cask/anaconda.rb:5:in `block in load'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/cask/cask.rb:115:in `instance_eval'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/cask/cask.rb:115:in `refresh'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/cask/cask.rb:108:in `config='
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/cask/cask.rb:84:in `initialize'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11933/lib/types/private/methods/call_validation.rb:179:in `bind_call'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11933/lib/types/private/methods/call_validation.rb:179:in `validate_call_skip_block_type'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11933/lib/types/private/methods/call_validation.rb:121:in `block in create_validator_slow_skip_block_type'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/cask/cask_loader.rb:48:in `new'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/cask/cask_loader.rb:48:in `cask'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11933/lib/types/private/methods/call_validation.rb:282:in `bind_call'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11933/lib/types/private/methods/call_validation.rb:282:in `validate_call'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11933/lib/types/private/methods/_methods.rb:277:in `block in _on_method_added'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/cask/cask_loader.rb:158:in `cask'
/home/divyamsk/.cache/Homebrew/api-source/Homebrew/homebrew-cask/2b8c0f2d94c34816eef280b2949d6b5496037b98/Cask/anaconda.rb:1:in `load'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/cask/cask_loader.rb:143:in `instance_eval'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/cask/cask_loader.rb:143:in `load'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11933/lib/types/private/methods/call_validation.rb:282:in `bind_call'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11933/lib/types/private/methods/call_validation.rb:282:in `validate_call'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11933/lib/types/private/methods/_methods.rb:277:in `block in _on_method_added'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/api/cask.rb:40:in `source_download'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11933/lib/types/private/methods/call_validation.rb:282:in `bind_call'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11933/lib/types/private/methods/call_validation.rb:282:in `validate_call'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11933/lib/types/private/methods/_methods.rb:277:in `block in _on_method_added'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/cask/installer.rb:772:in `load_cask_from_source_api!'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/cask/installer.rb:108:in `fetch'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11933/lib/types/private/methods/call_validation.rb:282:in `bind_call'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11933/lib/types/private/methods/call_validation.rb:282:in `validate_call'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11933/lib/types/private/methods/_methods.rb:277:in `block in _on_method_added'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/cask/installer.rb:147:in `install'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11933/lib/types/private/methods/call_validation.rb:282:in `bind_call'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11933/lib/types/private/methods/call_validation.rb:282:in `validate_call'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11933/lib/types/private/methods/_methods.rb:277:in `block in _on_method_added'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/cmd/install.rb:253:in `block in run'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/cmd/install.rb:242:in `each'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/cmd/install.rb:242:in `run'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11933/lib/types/private/methods/call_validation.rb:282:in `bind_call'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11933/lib/types/private/methods/call_validation.rb:282:in `validate_call'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11933/lib/types/private/methods/_methods.rb:277:in `block in _on_method_added'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/brew.rb:95:in `<main>'

Output of brew doctor and brew config

brew doctor                                                                                                     
Your system is ready to brew.

brew config                                                                                                        
HOMEBREW_VERSION: 4.4.24-224-g68f0838
ORIGIN: https://github.com/Homebrew/brew.git
HEAD: 68f0838fc9cf2a2ca4c2752d1212f11b5db250f8
Last commit: 58 minutes ago
Branch: master
Core tap JSON: 18 Mar 11:35 UTC
HOMEBREW_PREFIX: /home/linuxbrew/.linuxbrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_DISPLAY: :0
HOMEBREW_MAKE_JOBS: 32
HOMEBREW_SORBET_RUNTIME: set
Homebrew Ruby: 3.3.7 => /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/portable-ruby/3.3.7/bin/ruby
CPU: 32-core 64-bit alderlake
Clang: 19.1.7
Git: 2.48.1 => /bin/git
Curl: 8.12.1 => /bin/curl
Kernel: Linux 6.12.17-1-MANJARO x86_64 GNU/Linux
OS: Manjaro Linux (Zetar)
Host glibc: 2.41
/usr/bin/gcc: 14.2.1
/usr/bin/ruby: N/A
glibc: N/A
gcc@11: N/A
gcc: 14.2.0_1
xorg: N/A

Output of brew tap

brew tap
# (no output)

Metadata

Metadata

Assignees

Labels

staleIssue which has not received any feedback for some time.

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions