Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2309142
  • 博文数量: 276
  • 博客积分: 5998
  • 博客等级: 大校
  • 技术积分: 5175
  • 用 户 组: 普通用户
  • 注册时间: 2010-12-24 14:43
文章分类

全部博文(276)

文章存档

2014年(25)

2013年(11)

2012年(69)

2011年(167)

2010年(4)

分类: LINUX

2011-10-18 11:19:45

尝试 unzip wget 过来的压缩文件:

unzip bbs.zip

提示如下错误:

Archive: bbs.zip 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. unzip: cannot find zipfile directory in one of bbs.zip or bbs.zip.zip, and cannot find bbs.zip.ZIP, period.

刚开始以为是 wget 过程中因为超时续传导致文件部分信息丢失,就很傻很天真的重新下了一次,2.5G 啊,真够可以的。
结果你知道的,仍然是同样或类似的错误(什么签名没找到,什么文件头信息,文件尾信息等等)。

哦,等等,2.5G,是不是文件太大了?
Google 之,发现有人说:

一般在linux下解压zip文件,直接用系统默认的extract here就可以进行解压。
(默认使用的是 unzip)

可是如果压缩文件.zip是大于2G的,那unzip就无法使用了。这是由于C库中long类型数据所能表示的文件偏移在32位机子上只能有2G。

所以如果要解压大文件,需要使用7zip。

啊哈,那下载安装 7zip(上文说的安装方法对 9.13 无效):

wget http://downloads.sourceforge.net/project/p7zip/p7zip/9.13/p7zip_9.13_src_all.tar.bz2?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fp7zip%2Ffiles%2F&ts=1283040874&use_mirror=voxel tar -jxvf p7zip_9.13_src_all.tar.bz2 cd p7zip_9.13 make make install

然后使用:

7za x bbs.zip

成功了。

参考:

阅读(17390) | 评论(0) | 转发(1) |
给主人留下些什么吧!~~