Ric*_*Man 10 command-line zip 20.04
我需要解压一个大约6GB的文件。但是,我无法右键单击(它会给出“空存档”的错误)或在终端中执行此操作,后者显示以下内容:
$ ls
fhs-3.0.pdf IDrive Tese.zip 'Transport Studies of Dual-Gated ABC and ABA Trilayer Graphene: Band Gap Opening and Band Structure Tuning in Very Large Perpendicular Electric Fields - Zou.pdf'
$ unzip Tese.zip
Archive: Tese.zip
warning [Tese.zip]: 4294967296 extra bytes at beginning or within zipfile
(attempting to process anyway)
file #1: bad zipfile offset (local header sig): 4294967296
(attempting to re-compensate)
extracting: Tese/.DS_Store
error: not enough memory for bomb detection
$ jar xvf Tese.zip
java.util.zip.ZipException: only DEFLATED entries can have EXT descriptor
at java.base/java.util.zip.ZipInputStream.readLOC(ZipInputStream.java:313)
at java.base/java.util.zip.ZipInputStream.getNextEntry(ZipInputStream.java:125)
at jdk.jartool/sun.tools.jar.Main.extract(Main.java:1361)
at jdk.jartool/sun.tools.jar.Main.run(Main.java:409)
at jdk.jartool/sun.tools.jar.Main.main(Main.java:1681)
Run Code Online (Sandbox Code Playgroud)
我不认为该文件已损坏,因为我最近在 Mac 中解压缩了同一个文件。
我的电脑有 15 GB RAM 和 2 GB 交换内存。
Fer*_*big 23
Java仅支持ZIP格式的文件,不支持ZIP64。zip简单的命令也是如此
Zip 文件的大小限制为 4GB 减 1 字节,Zip64 的大小限制为 16 EB 减 1 字节。当大小大于支持的大小时,MacOS 会生成 zip64 文件。您的桌面环境提供的工具可能具有相同的限制
您需要适当的工具来读取 zip64 文件。在命令行上ditto可以读取这些文件,而在 Java 上,您可以使用Apache Commons Compress
HuH*_*uHa 14
unzip和两个工具都jar明确告诉您该文件已损坏:
miguel@...$ unzip Tese.zip
...
warning [Tese.zip]: 4294967296 extra bytes at beginning or within zipfile
(attempting to process anyway)
file #1: bad zipfile offset (local header sig): 4294967296
(attempting to re-compensate)
Run Code Online (Sandbox Code Playgroud)
miguel@...$ jar xvf Tese.zip
java.util.zip.ZipException: only DEFLATED entries can have EXT
...
Run Code Online (Sandbox Code Playgroud)
如果您可以在 Mac 上解压缩它,则某些 Mac 软件可能会创建该 ZIP 文件,但可能采用非标准格式(就 ZIP 文件标准化而言),只有某些 Mac 软件可以理解。
您可以尝试再次访问该 Mac,将其解压缩,然后从中创建一个压缩的 tar 文件,然后将该 tar 文件带到您的 PC 并解压。
您可以unzip通过运行unzip -v并检查ZIP64_SUPPORT. 以下是我在 Ubuntu 设置中得到的信息。注意它确实有ZIP64_SUPPORT
如果您的unzip不显示ZIP64_SUPPORT,则您需要更新版本的unzip。
或者,如果您unzip确实遇到ZIP64_SUPPORT问题,则是其他问题。您能否分享有关如何创建 zip 文件的任何详细信息?该 zip 文件是否可以在任何地方公开获取?
$ unzip -v
$ unzip -v
UnZip 6.00 of 20 April 2009, by Debian. Original by Info-ZIP.
Latest sources and executables are at ftp://ftp.info-zip.org/pub/infozip/ ;
see ftp://ftp.info-zip.org/pub/infozip/UnZip.html for other sites.
Compiled with gcc 9.2.0 for Unix (Linux ELF).
UnZip special compilation options:
ACORN_FTYPE_NFS
COPYRIGHT_CLEAN (PKZIP 0.9x unreducing method not supported)
SET_DIR_ATTRIB
SYMLINKS (symbolic links supported, if RTL and file system permit)
TIMESTAMP
UNIXBACKUP
USE_EF_UT_TIME
USE_UNSHRINK (PKZIP/Zip 1.x unshrinking method supported)
USE_DEFLATE64 (PKZIP 4.x Deflate64(tm) supported)
UNICODE_SUPPORT [wide-chars, char coding: UTF-8] (handle UTF-8 paths)
LARGE_FILE_SUPPORT (large files over 2 GiB supported)
ZIP64_SUPPORT (archives using Zip64 for large files supported)
USE_BZIP2 (PKZIP 4.6+, using bzip2 lib version 1.0.8, 13-Jul-2019)
VMS_TEXT_CONV
WILD_STOP_AT_DIR
[decryption, version 2.11 of 05 Jan 2007]
UnZip and ZipInfo environment options:
UNZIP: [none]
UNZIPOPT: [none]
ZIPINFO: [none]
ZIPINFOOPT: [none]
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
5544 次 |
| 最近记录: |