Amazon web services 无法在linux计算机上解压缩.zip文件

Amazon web services 无法在linux计算机上解压缩.zip文件,amazon-web-services,amazon-ec2,zip,tar,Amazon Web Services,Amazon Ec2,Zip,Tar,我有一个大的~10GB压缩文件,它是使用标准Windows方法创建的(右键单击,选择“发送到压缩(压缩)文件夹”)。我可以把它解压缩到我的Macbook上 我正试图在EC2机器上解压它。我知道该文件是zip文件,因为当我运行file file.zip时,它会显示: file.zip: Zip archive data, at least v2.0 to extract 运行unzip返回以下错误: Archive: file.zip warning [file.zip]: 30827699

我有一个大的~10GB压缩文件,它是使用标准Windows方法创建的(右键单击,选择“发送到压缩(压缩)文件夹”)。我可以把它解压缩到我的Macbook上

我正试图在EC2机器上解压它。我知道该文件是zip文件,因为当我运行
file file.zip时,它会显示:

file.zip: Zip archive data, at least v2.0 to extract
运行
unzip
返回以下错误:

Archive:  file.zip
warning [file.zip]:  3082769992 extra bytes at beginning or within zipfile
(attempting to process anyway)
error [file.zip]:  start of central directory not found;
  zipfile corrupt.
  (please check that you have transferred or created the zipfile in the
  appropriate BINARY mode and that you have compiled UnZip properly)
运行
tar xvf file.zip
返回以下内容:

tar: This does not look like a tar archive
tar: Skipping to next header
tar: Archive contains `<{\204\027\333"D\344\210\321o\331' where numeric         off_t value expected
tar: Archive contains `S\354\202},F\3546\276[\265\273' where numeric     time_t value expected
tar: Archive contains ``3c\254\372$:e' where numeric uid_t value expected
tar: Archive contains `\265\306\025+ܫL\352' where numeric gid_t value expected
...etc
tar:这看起来不像tar归档
tar:跳到下一个标题

tar:Archive包含`实际上,7-zip应该可以很好地实现这一点,您可以通过以下方式安装它:

sudo apt-get install p7zip-full
然后,您可以按如下方式提取zip文件:

7z e file.zip

如果您的zip存档文件有88000个文件,并且您正在处理约10Gig的内容,那么您将需要一个支持扩展名的解压程序

您可以检查解压程序是否支持这样的zip64

$ unzip -v | grep -i zip64
        ZIP64_SUPPORT (archives using Zip64 for large files supported)
如果它没有ZIP64_支持,你就倒霉了。我怀疑你的解压不支持zip64


另一种方法是获得一个支持zip64的解压版本,或者使用一个替代程序,比如z-zip。

您的整个文件很可能没有压缩,您提前移动了它。至少这是我的问题。

谢谢你的回答。尝试了7-zip并走得更远,尽管最终还是失败了。对zip文件的初始扫描导致“ERRORS:Headers Error”(错误:头文件错误)。解压大部分时间(~75%)都是在说“Error:E_FAIL,Archives with ERRORS:1,Open ERRORS:1”之前完成的。我预计会有大约88000个文件,最后得到~55kOh!我没有空间了。这应该是一个评论,而不是答案。