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

博客介绍在Linux服务器下,使用rz上传压缩文件,用unzip命令解压zip包时,若报错说明文件上传或下载有丢失情况。解决办法是用sftp或scp重新上传文件到服务器,再用unzip或jar命令解压。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

在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

 

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值