Cannot install gimp, undefined method 'major_minor' for nil
### `brew config` AND `brew doctor` output OR `brew gist-logs <formula>` link
```shell
$ brew config
HOMEBREW_VERSION: 5.1.7
ORIGIN: https://github.com/Homebrew/brew
HEAD: 3aae056b8d072624255bc8fd27febb7f327b2265
Last commit: 6 days ago
Branch: stable
Core tap JSON: 23 Apr 15:52 UTC
HOMEBREW_PREFIX: /home/linuxbrew/.linuxbrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_DISPLAY: :0
HOMEBREW_DOWNLOAD_CONCURRENCY: 40
HOMEBREW_FORBID_PACKAGES_FROM_PATHS: set
HOMEBREW_MAKE_JOBS: 20
Homebrew Ruby: 4.0.2 => /home/linuxbrew/Homebrew/Library/Homebrew/vendor/portable-ruby/4.0.2_1/bin/ruby
CPU: 20-core 64-bit alderlake
Clang: 22.1.4
Git: 2.53.0 => /bin/git
Curl: 8.18.0 => /bin/curl
Kernel: Linux 7.0.0-14-generic x86_64 GNU/Linux
OS: Ubuntu 26.04 LTS (resolute)
Host glibc: 2.43
Host libstdc++: 6.0.35
/usr/bin/gcc: 15.2.0
/usr/bin/ruby: 3.3.8
glibc: N/A
gcc@12: N/A
gcc: N/A
xorg: N/A
$ brew doctor
Your system is ready to brew.
```
### Verification
- [x] My `brew doctor` output says `Your system is ready to brew.` and am still able to reproduce my issue.
- [x] I ran `brew update` and am still able to reproduce my issue.
- [x] I have resolved all warnings from `brew doctor` and that did not fix my problem.
- [x] I searched for recent similar issues at https://github.com/Homebrew/homebrew-core/issues?q=is%3Aissue and found no duplicates.
- [x] My issue is not about a failure to build a formula from source.
### What were you trying to do (and why)?
Install gimp.
```sh
$ brew update && brew upgrade && brew cleanup
$ brew install gimp
==> Fetching downloads for: gimp
✔︎ API Source gimp.rb Verified 1.8KB/ 1.8KB
✔︎ Cask gimp (3.2.4) Verified 244.6MB/244.6MB
Error: Cask 'gimp' definition is invalid: undefined method 'major_minor' for nil
```
### What happened (include all command output)?
```
Error: Cask 'gimp' definition is invalid: undefined method 'major_minor' for nil
```
### What did you expect to happen?
clean installation
### Step-by-step reproduction instructions (by running `brew` commands)
```shell
$ brew update && brew upgrade && brew cleanup
$ brew install gimp
```
1 条评论