解压缩文件时出错

用户名

解压缩文件时出现以下错误

unzip user_file_batch1.csv.zip

Archive:  user_file_batch1.csv
  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 user_file_batch1.csv or
        user_file_batch1.csv.zip, and cannot find user_file_batch1.csv.ZIP, period.

我相信此文件没有损坏,也不是多存档文件的一部分,因为使用Archive Utility可以将其解压缩。我试图将其重命名为,.zip但没有用。

的输出type file user_file_batch1.csv.zip

user_file_batch1.csv.zip: uuencoded or xxencoded text
吉勒斯“别再邪恶了”

您的文件具有.zip名称,但不是zip格式。重命名文件不会更改其内容,特别是不会神奇地将其转换为其他格式。

(或者,不完整的zip文件也可能发生相同的错误-但由于该Archive Utility起作用了,所以不是这种情况。)

运行file user_file_batch1.csv.zip以查看这是什么类型的文件。大概是Archive Utility可以理解的某种其他类型的存档。

user_file_batch1.csv.zip:uuencoded或xxencoded的文本

运行以下命令:

uudecode user_file_batch1.csv.zip

这将创建一个名称以表示的文件user_file_batch1.csv.zip如果要选择其他输出文件名:

uudecode -o user_file_batch1.csv.decoded user_file_batch1.csv.zip

此阶段的输出文件本身可以是存档。(实际上,这也许是一个zip。)file在此文件上再次运行该实用程序,以查看它是什么。如果选择自动文件名,则可能会提示。

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章