未找到更新 cask Generic Artifact Source

Updating cask Generic Artifact Source not found

我正在尝试更新我的自制程序 java 安装,不幸的是我遇到了这个错误

 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.

修复方法是使用 --no-quarantine 标志重新安装,在我的情况下是这样

brew cask reinstall --no-quarantine java