Comments (6)
@karianna Thanks, that pointed me to the information I needed.
It seems my version of adoptopenjdk8
is version 8,292:b10
(note the colon). So I loaded up:
/usr/local/Caskroom/adoptopenjdk8/.metadata/8,292:b10/20210813163759.546/Casks/adoptopenjdk8.rb`
in a text editor. I tried initially to remove the url
(and subsequent verified
) stanza, but there was still one for pkg
and I wasn't sure if that was needed. So instead I opted to just do a hardcoded replace.
{version.after_comma.before_colon}
→292
{version.after_comma.after_colon}
and{version.after_colon}
→b10
.
Therefore, I changed
url "https://github.com/AdoptOpenJDK/openjdk8-binaries/releases/download/jdk#{version.before_comma}u#292-#b10/OpenJDK#{version.before_comma}U-jdk_x64_mac_hotspot_#{version.before_comma}u#292#b10.pkg"
to
url "https://github.com/AdoptOpenJDK/openjdk8-binaries/releases/download/jdk#{version.before_comma}u#292#b10/OpenJDK#{version.before_comma}U-jdk_x64_mac_hotspot_#{version.before_comma}u#292#b10.pkg"
and
pkg "OpenJDK#{version.before_comma}U-jdk_x64_mac_hotspot_#{version.before_comma}u#{version.after_comma.before_colon}#{version.after_comma.after_colon}.pkg"
to
pkg "OpenJDK#{version.before_comma}U-jdk_x64_mac_hotspot_#{version.before_comma}u#292#b10.pkg"
After these changes, brew uninstall adoptopenjdk8
worked properly and appears to have correctly removed the cask.
from homebrew-openjdk.
What does brew doctor
tell you?
from homebrew-openjdk.
Nothing in relation to adoptopenjdk8
. Here's the results in its entirety (following brew uninstall adoptopenjdk8
with the same results as above):
% brew doctor
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!
Warning: Unbrewed dylibs were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected dylibs:
/usr/local/lib/libGeoIP.1.dylib
Warning: Unbrewed '.la' files were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected '.la' files:
/usr/local/lib/[libGeoIP.la](http://libgeoip.la/)
Warning: Unbrewed static libraries were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected static libraries:
/usr/local/lib/libGeoIP.a
from homebrew-openjdk.
I think the cask is using old syntax Try brew cleanup
first and then the uninstall again. If that fails do the uninstall but use --force
from homebrew-openjdk.
I tried brew cleanup
(which didn't post anything relevant), then brew uninstall
, then brew uninstall --force
. The latter two failed with the same error.
% brew cleanup
Warning: Skipping abseil: most recent version 20230802.1 not installed
Warning: Skipping coreutils: most recent version 9.4 not installed
Warning: Skipping freetype: most recent version 2.13.2 not installed
Warning: Skipping gauge: most recent version 1.5.4 not installed
Warning: Skipping glib: most recent version 2.78.0 not installed
Warning: Skipping harfbuzz: most recent version 8.2.0 not installed
Warning: Skipping jpeg-turbo: most recent version 3.0.0 not installed
Warning: Skipping libgpg-error: most recent version 1.47 not installed
Warning: Skipping libksba: most recent version 1.6.4 not installed
Warning: Skipping libxcb: most recent version 1.16 not installed
Warning: Skipping mysql: most recent version 8.1.0 not installed
Warning: Skipping openapi-generator: most recent version 7.0.1 not installed
Warning: Skipping openjdk: most recent version 20.0.2 not installed
Warning: Skipping openjdk@11: most recent version 11.0.20.1 not installed
Warning: Skipping [email protected]: most recent version 1.1.1w not installed
Warning: Skipping protobuf: most recent version 24.3 not installed
Warning: Skipping sqlite: most recent version 3.43.1 not installed
Warning: Skipping zlib: most recent version 1.3 not installed
% brew uninstall adoptopenjdk8
Error: Cask 'adoptopenjdk8' is unreadable: undefined method `before_colon' for "292:b10":Cask::DSL::Version
Did you mean? before_comma
% brew uninstall adoptopenjdk8 --force
Error: Cask 'adoptopenjdk8' is unreadable: undefined method `before_colon' for "292:b10":Cask::DSL::Version
Did you mean? before_comma
%
from homebrew-openjdk.
Homebrew/homebrew-cask#145073 gives some advice on removing the line from a cask with this type of error. laternatively something like:
sudo rm /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask-versions/Casks/adoptopenjdk8.rb may work
from homebrew-openjdk.
Related Issues (20)
- Provide native builds for M1 Apple Silicon (ARM) Macs in Homebrew HOT 1
- adoptopenjdk cask does not exist HOT 3
- auto_updater.sh github action having errors
- Do you wish to rename this formula to temurin? HOT 2
- Support for OpenJDK from Adoptium HOT 3
- JDK 17 support HOT 1
- OpenJDK 17? HOT 4
- Is there a way to install new minor update of the jdk11? HOT 11
- Homebrew openjdk install issue HOT 3
- adoptopenjdk/openjdk warming HOT 1
- reporting WARNING: `appcast` stanza is deprecated! --> use `livecheck` stanza instead HOT 1
- Calling the `appcast` stanza is deprecated! HOT 1
- Warning: Calling the `appcast` stanza is deprecated! Use the `livecheck` stanza instead. HOT 2
- Warning: Calling the appcast stanza is deprecated! HOT 3
- Warning: Calling the `appcast` stanza is deprecated! Use the `livecheck` stanza instead
- Calling the `appcast` stanza is deprecated! Use the `livecheck` stanza instead. HOT 2
- `appcast` stanza is deprecated - use `livecheck` instead HOT 1
- PS install/uninstall has Error: Cask 'adoptopenjdk8' definition is invalid: 'appcast' stanza HOT 1
- adoptopenjdk-jre HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from homebrew-openjdk.