Last active
December 5, 2019 19:40
-
-
Save juanplopes/310a03b42aed5d1873a035389a42dbd6 to your computer and use it in GitHub Desktop.
Update tzdata
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# On Ubuntu: make sure you have lzip and gawk installed | |
tmp_dir=$(mktemp -d -t tzdata-XXXXXXXXXX) | |
cd $tmp_dir | |
wget https://cdn.azul.com/tools/ziupdater1.0.2.2-jse8+7-any_jvm.tar.gz | |
wget https://data.iana.org/time-zones/releases/tzdb-2019c.tar.lz | |
tar zfxv ziupdater*.tar.gz | |
tar lfxv tzdb-2019c.tar.lz | |
cd tzdb-2019c/ | |
make tarballs | |
cd ../ | |
sudo java -jar ziupdater*.jar -l file://$tmp_dir/tzdb-2019c/tzdata2019c-rearguard.tar.gz |
O make falhou. Qual OS você está usando?
To usando o ubuntu 18.04.3 LTS
Dá um sudo apt install lzip
, só por desencargo.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Valeu Juan, eu tentei rodar aqui mas tive um problema com o make
awk -v DATAFORM=`expr main.zi : '\(.*\).zi'` -f ziguard.awk \ africa antarctica asia australasia europe northamerica southamerica etcetera systemv factory backward >main.zi.out malloc(): memory corruption Aborted (core dumped) Makefile:619: recipe for target 'main.zi' failed make: *** [main.zi] Error 134 Exception in thread "main" java.io.FileNotFoundException: /tmp/tzdata-5pIcvb4iJq/tzdb-2019c/tzdata2019c-rearguard.tar.gz (No such file or directory) at java.base/java.io.FileInputStream.open0(Native Method) at java.base/java.io.FileInputStream.open(FileInputStream.java:219) at java.base/java.io.FileInputStream.<init>(FileInputStream.java:157) at org.ziupdater.main.UpdateHelper.unpackTzdataFiles(UpdateHelper.java:237) at org.ziupdater.main.UpdateHelper.updateTzdata(UpdateHelper.java:162) at org.ziupdater.main.Main.updateVersion(Main.java:123) at org.ziupdater.main.Main.main(Main.java:140)