У меня есть ZIP-файл, который действительно поврежден. Он содержит один файл в порядке, а второй - 0 байт и поврежден. Но когда я распаковываю его на своем Mac (двойной щелчок в поиске), он распаковывается, и я могу видеть файлы.
Когда я пытаюсь разархивировать его с помощью командной строки в Ubuntu, я получаю
zip@zip-test ~]# unzip test.zip
Archive: test.zip
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
unzip: cannot find zipfile directory in one of test.zip or
test.zip.zip, and cannot find test.zip.ZIP, period.
, который я также пробовал:
[zip@zip-test ~]# jar xvf test.zip
inflated: data-2014-07-25-08-55-10.gps
java.io.EOFException: Unexpected end of ZLIB input stream
at java.util.zip.InflaterInputStream.fill(InflaterInputStream.java:240)
at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:158)
at java.util.zip.ZipInputStream.read(ZipInputStream.java:163)
at java.util.zip.ZipInputStream.closeEntry(ZipInputStream.java:109)
at sun.tools.jar.Main.extractFile(Main.java:954)
at sun.tools.jar.Main.extract(Main.java:870)
at sun.tools.jar.Main.run(Main.java:260)
at sun.tools.jar.Main.main(Main.java:1167)
И, наконец, я пытался
[zip@zip-test ~]# 7za x test.zip
7-Zip (A) [64] 9.20 Copyright (c) 1999-2010 Igor Pavlov 2010-11-18
p7zip Version 9.20 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,1 CPU)
Processing archive: test.zip
Error: Can not open file as archive
Но так как я могу разархивировать его на Mac, похоже, должен быть какой-то способ заставить пакет разархивировать. Любые идеи о том, что еще попробовать?
РЕДАКТИРОВАТЬ: вы можете найти файл здесь: http://cl.ly/1n3G0z3q3G3u