首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >解压缩5GB压缩文件

解压缩5GB压缩文件
EN

Ask Ubuntu用户
提问于 2014-07-20 12:10:54
回答 1查看 7.1K关注 0票数 4

我这里有5GB的压缩文件,但我不知道如何解压缩。

我试过:

代码语言:javascript
复制
7z x file.zip 

返回:Error: Can not open file as archive

代码语言:javascript
复制
jar xvf file.zip 

返回:jar: error opening file.zip for reading: Value too large for defined data type

代码语言:javascript
复制
unzip file.zip 

返回:

代码语言:javascript
复制
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.
note:  file.zip may be a plain executable, not an archive
unzip:  cannot find zipfile directory in one of file.zip or
        file.zip.zip, and cannot find file.zip.ZIP, period.

这个文件看起来确实是一个zip归档文件:

代码语言:javascript
复制
$ file file.zip
file.zip: Zip archive data, at least v1.0 to extract

有什么想法吗?

谢谢。

EN

回答 1

Ask Ubuntu用户

回答已采纳

发布于 2014-07-20 13:21:22

这个文件看起来确实是一个zip归档文件。我不知道你为什么会遇到这个问题。这听起来像是unzip的一个限制,但这也是不太可能的。无论如何,一个可能的解决办法是使用zcat代替。但是,只有当压缩的数据是单个文件,而不是一堆文件和目录时,这才能按预期工作:

代码语言:javascript
复制
zcat file.zip > file.unzipped

当然,另一种选择是,该文件要么损坏(您说它不在您的评论中,但没有提供支持声明的证据),要么是更大的存档的一部分。如果没有关于文件本身的更多信息,我们将无能为力。

票数 2
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/500249

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档