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

Tom*_*omb 5 zip tar amazon-ec2 amazon-web-services

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

我正在尝试在 EC2 机器上解压缩它。我知道该文件是一个 zip 文件,因为当我运行file file.zip它时说:

file.zip: Zip archive data, at least v2.0 to extract
Run Code Online (Sandbox Code Playgroud)

运行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)
Run Code Online (Sandbox Code Playgroud)

运行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
Run Code Online (Sandbox Code Playgroud)

有谁知道可能会出什么问题?

Ofi*_*fir 6

实际上,7-zip 应该可以做到这一点,您可以通过以下方式安装它:

sudo apt-get install p7zip-full
Run Code Online (Sandbox Code Playgroud)

然后,您可以按如下方式解压缩 zip 文件:

7z e file.zip
Run Code Online (Sandbox Code Playgroud)