我尝试解压缩 zip 文件,但出现错误:
$ unzip COCR2_100.zip
Archive: COCR2_100.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.
note: COCR2_100.zip may be a plain executable, not an archive
unzip: cannot find zipfile directory in one of COCR2_100.zip or
COCR2_100.zip.zip, and cannot find COCR2_100.zip.ZIP, period.
Run Code Online (Sandbox Code Playgroud)
我用谷歌搜索但没有找到解决方案。我想知道为什么会这样以及我应该如何解决它?谢谢!
zip 文件可以从COCR2_100下载。这是一个应用程序,这里是它的网站http://users.belgacom.net/chardic/cocr2.html。
我的操作系统是 10.10。
小智 207
试试这个优秀的解决方案:
jar xvf COCR2_100.zip
Run Code Online (Sandbox Code Playgroud)
脚步:
jar xvf在您的文件名前面键入,记住在文件名开头之前留有空格。新文件所在的位置各不相同,但通常找到它们的最佳技巧是在 Finder 中单击您的计算机名称,它应该会在所有文件的顶部显示最近的活动。
如果jar命令不可用,您可以fastjar通过在终端中粘贴以下内容进行安装:
sudo apt-get install fastjar
Run Code Online (Sandbox Code Playgroud)
小智 42
问题正是它所说的。解压缩找不到表示存档结束的代码行,因此:
PS 注意该程序是如何为 Windows 制作的。所以你需要 Wine(来自http://www.winehq.com或 Ubuntu 软件中心)来运行它。
Cam*_*mpa 34
使用7z解压缩对我有用:
7z x COCR2_100.zip
Run Code Online (Sandbox Code Playgroud)
通过 APT 安装apt install p7zip-full。
错误可能是由于混合存档类型引起的:
我注意到,当使用unzip, 但在gunzip(GNU)存档上时,我会收到此错误,例如
未找到中央目录结尾签名。该文件要么不是 zip 文件,要么构成多部分存档的一张磁盘。在后一种情况下,中央目录和 zip 文件注释将在此存档的最后一个磁盘上找到。解压缩:在 create_tables.sql.gz 或 create_tables.sql.gz.zip 之一中找不到 zipfile 目录,并且找不到 create_tables.sql.gz.ZIP,期间。”
gunzip在同一存档上使用没有错误。!!
小智 6
我今天遇到了类似的问题,并且在 dd 和 gunzip 方面取得了一些成功。尝试这个:
dd if=corrupt.zip | gunzip -f > xx.csv
Run Code Online (Sandbox Code Playgroud)
在我的情况下,我仍然收到“gunzip:stdin:文件意外结束”错误,但至少我有一些输出可以查看。