解决Linux使用解压命令unzip报错:unzip:cannot find zipfile directory in one of xxx.zip问题
Linux unzip:cannot find zipfile directory in one of xxx.zip
在linux服务器下使用rz上传压缩文件,用unzip命令解压zip包
#xxx.zip 压缩的包名
unzip xxx.zipArchive: 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远程拷贝报错not a regular file问题
这篇文章主要介绍了解决linux远程拷贝报错not a regular file问题,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐教2023-12-12


最新评论