Linux使用解压命令unzip报错:unzip: cannot find zipfile directory in one of xxx.zip

在linux服务器下使用rz上传压缩文件,用unzip命令解压zip包

#xxx.zip 压缩的包名
unzip xxx.zip 

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

报这种错误说明在文件上传或下载的过程中出现了文件丢失的情况,需要使用sftp或scp重新上传文件到服务器,然后使用unzip命令或jar命令解压压缩文件

#方法一
unzip xxx.zip

#方法二
jar -xvf xxx.zip

 

你可能感兴趣的:(Linux,linux)