Linux uses the decompression command unzip to report an error: unzip: cannot find zipfile directory in one of xxx.zip

Use rz to upload the compressed file under the linux server, and use the unzip command to decompress the zip package

#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.

Reporting this error means that the file is lost during file upload or download, you need to use sftp or scp to re-upload the file to the server , and then use the unzip command or jar command to decompress the compressed file

#方法一
unzip xxx.zip
 
#方法二
jar -xvf xxx.zip

Guess you like

Origin blog.csdn.net/qq_39237205/article/details/129000058