Closed adilsoncarvalho closed 3 months ago
What is the output of brew info temurin@17
? Can you run brew untap homebrew/cask-versions
and try again?
Sure thing. Here they are:
> brew untap homebrew/cask-versions
Untapping homebrew/cask-versions...
Untapped (38 files, 79.4MB).
> brew info temurin@17
==> temurin@17: 17.0.11,9
https://adoptium.net/
Not installed
From: https://github.com/Homebrew/homebrew-cask/blob/HEAD/Casks/t/temurin@17.rb
==> Name
Eclipse Temurin Java Development Kit
==> Description
JDK from the Eclipse Foundation (Adoptium)
==> Artifacts
OpenJDK17U-jdk_aarch64_mac_hotspot_17.0.11_9.pkg (Pkg)
==> Analytics
install: 7,072 (30 days), 13,668 (90 days), 13,669 (365 days)
And I tried again to install. Same result.
> brew install temurin@17
==> Downloading https://formulae.brew.sh/api/formula.jws.json
############################################################################################################## 100.0%
==> Downloading https://formulae.brew.sh/api/cask.jws.json
############################################################################################################## 100.0%
==> Downloading https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.11%2B9/OpenJDK17U-jdk_aarch
Already downloaded: /Users/acarvalho/Library/Caches/Homebrew/downloads/e2ce3344fda7c421751d0e95669ec661b29c3edb46c29aa3edac482f55164a41--OpenJDK17U-jdk_aarch64_mac_hotspot_17.0.11_9.pkg
==> Installing Cask temurin@17
==> Running installer for temurin@17 with sudo; the password may be necessary.
Launch with elevated privileges
Password:
installer: Error - the package path specified was invalid: '/opt/homebrew/Caskroom/temurin@17/17.0.11,9/OpenJDK17U-jdk_aarch64_mac_hotspot_17.0.11_9.pkg'.
==> Purging files for version 17.0.11,9 of Cask temurin@17
Error: Failure while executing; `/usr/bin/sudo -u root -E LOGNAME=acarvalho USER=acarvalho USERNAME=acarvalho -- /usr/sbin/installer -pkg /opt/homebrew/Caskroom/temurin@17/17.0.11,9/OpenJDK17U-jdk_aarch64_mac_hotspot_17.0.11_9.pkg -target /` exited with 1. Here's the output:
installer: Error - the package path specified was invalid: '/opt/homebrew/Caskroom/temurin@17/17.0.11,9/OpenJDK17U-jdk_aarch64_mac_hotspot_17.0.11_9.pkg'.
You are using Homebrew version 4.3.6. A recent change in file copying (https://github.com/Homebrew/brew/pull/17373) was included in this release, which caused installation issues for some users. This change has since been reverted.
The fix has not yet been officially released, but you can resolve the issue by running brew update-reset
before trying again. This command will reset your Homebrew installation to track the latest changes.
This is released/fixed in Homebrew 4.3.7 now: https://github.com/Homebrew/brew/releases/tag/4.3.7
Verification
--force
.brew update-reset && brew update
and retried my command.brew doctor
, fixed as many issues as possible and retried my command.Description of issue
When trying to install temurin@17 and temurin@21, the installation fails.
I noticed that the packages versions
17.0.11_9
were converted to17.0.11,9
when generating the path to store the pkg, and it might be failing when creating the directory.Command that failed
brew install --verbose --debug --cask temurin@17
Output of command with
--verbose --debug
Output of
brew doctor
andbrew config
Output of
brew tap