英文:
Updating cask Generic Artifact Source not found
问题
我正尝试更新我的Homebrew Java安装,不幸的是,我遇到了以下错误:
brew upgrade
==> Casks具有`auto_updates`或`version :latest`将不会升级
==> 正在升级1个过期的软件包:
java 13.0.2,8:d4173c853231432d94f001e99d882ca7 -> 14.0.2,12:205943a0976c4ed48cb16f1043c5c647
==> 正在升级java
==> 正在下载https://download.java.net/java/GA/jdk14.0.2/205943a0976c4ed48cb16f1043c5c647/12/GPL/openjdk-14.0.2_osx-x64_bin.tar.gz
已下载:/Users/omar/Library/Caches/Homebrew/downloads/4a16d10e8fdff3dd085a21e2ddd1d0ff91dba234c8c5f6588bff9752c845bebb--openjdk-14.0.2_osx-x64_bin.tar.gz
==> 正在验证Cask 'java'的SHA-256校验和。
==> 清除版本14.0.2,12:205943a0976c4ed48cb16f1043c5c647的Cask java的文件
错误:似乎通用构件源'/Library/Java/JavaVirtualMachines/openjdk-13.0.2.jdk'不存在。
英文:
I'm trying to update my homebrew java installation, i'm getting this error unfortunately
brew upgrade
==> Casks with `auto_updates` or `version :latest` will not be upgraded
==> Upgrading 1 outdated package:
java 13.0.2,8:d4173c853231432d94f001e99d882ca7 -> 14.0.2,12:205943a0976c4ed48cb16f1043c5c647
==> Upgrading java
==> Downloading https://download.java.net/java/GA/jdk14.0.2/205943a0976c4ed48cb16f1043c5c647/12/GPL/openjdk-14.0.2_osx-x64_bin.tar.gz
Already downloaded: /Users/omar/Library/Caches/Homebrew/downloads/4a16d10e8fdff3dd085a21e2ddd1d0ff91dba234c8c5f6588bff9752c845bebb--openjdk-14.0.2_osx-x64_bin.tar.gz
==> Verifying SHA-256 checksum for Cask 'java'.
==> Purging files for version 14.0.2,12:205943a0976c4ed48cb16f1043c5c647 of Cask java
Error: It seems the Generic Artifact source '/Library/Java/JavaVirtualMachines/openjdk-13.0.2.jdk' is not there.
答案1
得分: 4
修复方法是重新安装,使用 --no-quarantine
标志,我的情况如下:
brew cask reinstall --no-quarantine java
英文:
The fix is to reinstall with the --no-quarantine flag, in my case as so
brew cask reinstall --no-quarantine java
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论