更新 Cask 通用构件源未找到。

huangapple go评论76阅读模式
英文:

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

huangapple
  • 本文由 发表于 2020年7月28日 22:32:54
  • 转载请务必保留本文链接:https://go.coder-hub.com/63136571.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定