无法在Linux计算机上解压缩.zip文件

时间:2019-05-07 22:23:26

标签: amazon-web-services amazon-ec2 zip tar

我有一个〜10GB的大zip文件,该文件是使用标准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

有人知道怎么回事吗?

3 个答案:

答案 0 :(得分:0)

实际上,7-zip应该可以解决这个问题,您可以通过以下方式安装它:

sudo apt-get install p7zip-full

然后,您可以按以下步骤提取zip文件:

7z e file.zip

答案 1 :(得分:0)

如果您的zip存档中有88,000个文件,并且您要处理的内容约为10Gig,则需要一个支持 zip64 扩展名的解压缩程序。

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

$ unzip -v | grep -i zip64
        ZIP64_SUPPORT (archives using Zip64 for large files supported)

如果没有 ZIP64_SUPPORT ,则表示您不走运。我怀疑您的解压缩不支持 zip64

替代方法是获取不支持 zip64 的unzip版本或使用其他程序,例如z-zip。

答案 2 :(得分:0)

您的整个文件很可能没有压缩,并且您过早地移动了它。至少这是我的问题。