如何处理OSX中大文件的解压缩错误?


20

我从运行OS X 10.10.5的Mac上的raspberrypi.org网站上下载了最新的Raspbian映像。SHA-1校验和与网站上列出的一致。

当我尝试使用提取时unzip,出现以下错误

warning [2015-09-24-raspbian-jessie.zip]:  76 extra bytes at beginning or within zipfile
  (attempting to process anyway)
error [2015-09-24-raspbian-jessie.zip]:  reported length of central directory is
  -76 bytes too long (Atari STZip zipfile?  J.H.Holm ZIPSPLIT 1.1
  zipfile?).  Compensating...
   skipping: 2015-09-24-raspbian-jessie.img  need PK compat. v4.5 (can do v2.1)

note:  didn't find end-of-central-dir signature at end of central dir.
  (please check that you have transferred or created the zipfile in the
  appropriate BINARY mode and that you have compiled UnZip properly)

Answers:


29

我设法用焦油将它解压缩。

tar xzvf 2015-09-24-raspbian-jessie.zip

无需安装其他软件


1
魔法!是不需要的“Z” tar -xvf 2015-09-24-raspbian-jessie.zip
Milliways

7

也可以使用来解压缩ZIP文件ditto,无需安装软件:

ditto -x -k 2015-09-24-raspbian-jessie.zip .

为我工作。



2

这显然是OS X Archiver中的一个已知“错误”,它无法处理大于4 GB的zip。


是的,归档程序似乎会从中创建.cpgz文件(即“压缩的zip重新压缩”文件或有些奇怪的文件)。而且“ unzip”命令行对此也不起作用,但此处的其他答案似乎正常。奇怪的。(显然有些较大的文件是“ZIP64”格式?)stackoverflow.com/questions/32439742/...
rogerdpack
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.