tzupdater在2020b和2020c版本中出现故障。

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

tzupdater failures with 2020b & 2020c

问题

今天,iana发布了2020b版时区数据库更新。Java的时间区域更新工具(2.3.1)来自Oracle无法修补OpenJDK 8u265。

$ java -jar tzupdater.jar -v -u -f -l file:tzdata-latest.tar.gz
使用 file:tzdata-latest.tar.gz 作为时区数据捆绑包的源。
java.home: /Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home/jre
java.vendor: AdoptOpenJDK
java.version: 1.8.0_265
tzupdater version 2.3.1-b02
JRE tzdata version: tzdata2020a
已将文件下载到 /var/folders/k4/d4wwf5sd71b0hnp7lvrv1wk40000gn/T/tz.tmp_6/tzdata.tar.gz
tzupdater工具将使用tzdata版本进行更新:tzdata2020b
源目录不包含源文件:pacificnew
$ echo $?
1

使用2020c更新

tzupdater工具将使用tzdata版本进行更新:tzdata2020c
源目录不包含源文件:africa

更新

这被Oracle识别为一个错误 https://bugs.openjdk.java.net/browse/JDK-8255747,并且已作为tzupdater发布2.3.2版本的一部分进行了修复-仍在等待发布。

英文:

Today iana released timezone db update for 2020b version. Java's tzupdater tool (2.3.1) from oracle fails to patch OpenJDK8u265.

$ java -jar tzupdater.jar -v -u -f -l file:tzdata-latest.tar.gz
Using file:tzdata-latest.tar.gz as source for tzdata bundle.
java.home: /Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home/jre
java.vendor: AdoptOpenJDK
java.version: 1.8.0_265
tzupdater version 2.3.1-b02
JRE tzdata version: tzdata2020a
Downloaded file to /var/folders/k4/d4wwf5sd71b0hnp7lvrv1wk40000gn/T/tz.tmp_6/tzdata.tar.gz
tzupdater tool would update with tzdata version: tzdata2020b
Source directory does not contain source file: pacificnew
$ echo $?
1

with 2020c update

tzupdater tool would update with tzdata version: tzdata2020c
Source directory does not contain source file: africa

Update

This was recognized as a bug by Oracle https://bugs.openjdk.java.net/browse/JDK-8255747 and it is fixed as part of tzupdater release 2.3.2 - still waiting for the release to be published.

答案1

得分: 2

我们遇到了相同的问题,我们曾经使用过 https://www.iana.org/time-zones/repository/tzdata-latest.tar.gz 这个链接,显然他们最近部署了一个新版本。

快速解决方法:尝试使用之前的版本:https://data.iana.org/time-zones/releases/tzdata2020a.tar.gz tzupdater在2020b和2020c版本中出现故障。

英文:

We had the same issue, we used to use the https://www.iana.org/time-zones/repository/tzdata-latest.tar.gz URL and they apparently deployed a new version recently.

Quick fix: Try to use the previous version: https://data.iana.org/time-zones/releases/tzdata2020a.tar.gz tzupdater在2020b和2020c版本中出现故障。

答案2

得分: 1

一个解决方法是,如果您需要这些更新,请从tar文件tzdata2020a.tar.gz中提取文件pacificnew,并将其添加到您想使用的tar文件中。

更新
时区更新程序2.3.2于今日发布。

英文:

A workaround if you need the updates is to take the file pacificnew from the tarfile tzdata2020a.tar.gz and add it to the tar file you want to use.

Update
Timezone Updater 2.3.2 was released today

答案3

得分: 1

这个问题已经在tzupdater 2.3.2版本中得到了解决,作为JDK-8254226的一部分。

英文:

This issue is fixed with tzupdater at version 2.3.2 as part of JDK-8254226

huangapple
  • 本文由 发表于 2020年10月8日 09:11:13
  • 转载请务必保留本文链接:https://go.coder-hub.com/64254417.html
匿名

发表评论

匿名网友

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

确定