首页 > 系统相关 >linux服务器解压缩zip文件时报错End-of-central-directory signature not found

linux服务器解压缩zip文件时报错End-of-central-directory signature not found

时间:2023-03-02 13:56:24浏览次数:43  
标签:google End zip kermit user80 found p7zip

在向服务器上传一个windows上压缩的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。但这样的方式是成功处理过的。详细报错如下: 

kermit@user80:~/test_files$ sudo unzip google.zip 
Archive:  google.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.
note:  google.zip.ZIP may be a plain executable, not an archive
unzip:  cannot find zipfile directory in one of google.zip or google.zip.ZIP, and cannot find google.zip.ZIP, period. 

    unzip的功能还是有些局限的,这里的解决办法就是看你在windows下使用的压缩软件,比如是使用7-zip还是使用的tar。我这里使用的是7-zip进行的文件压缩,网上有说使用jar进行解压的办法解决的,有说使用7-zip解压的办法解决的。经过使用,如果是用7-zip压缩的就使用以下方法解压缩:

#下载p7zip_9.13_src_all.tar.bz2压缩包解压安装
kermit@user80:~/ wget http://downloads.sourceforge.net/project/p7zip/p7zip/9.13/p7zip_9.13_src_all.tar.bz2?r=http://sourceforge.net/projects/p7zip/files/&ts=1283040874&use_mirror=voxel
kermit@user80:~/ tar -jxvf p7zip_9.13_src_all.tar.bz2
kermit@user80:~/ cd p7zip_9.13
kermit@user80:~/ make;make install
#安装完成,使用7za进行解压
kermit@user80:~/ 7za x data.zip 

    使用的非7-zip压缩的话如果出现问题就使用jar试试解决吧: 

kermit@user80:~/ jar xvf google.zip
jar:Command not found
kermit@user80:~/ yum -y install java-1.6.0-openjdk-devel
kermit@user80:~/ jar xvf google.zip

标签:google,End,zip,kermit,user80,found,p7zip
From: https://www.cnblogs.com/lantingg/p/17171540.html

相关文章

  • kendoDropDownList - valuePrimitive
    valuePrimitive默认为false;为true时将选中项(Item)中绑定字段的值赋给View-Model字段 columns中{field:"CableGroup",title:"XXX",width:"190px",editor:groupE......
  • error MSB8020: The build tools for v142 (Platform Toolset = 'v142') cannot be fo
    多个VS版本编译报错:错误1errorMSB8020:Thebuildtoolsforv142(PlatformToolset='v142')cannotbefound.Tobuildusingthev142buildtools,pleaseinst......
  • EBS Form Builder:app_field.clear_dependent_fields和APP_FIELD.set_dependent_field
    用途:可以调用APP_FIELD.clear_dependent_fields和APP_FIELD.set_dependent_field来将两个(或多个)Item建立关联,当一个为空时,另一个不可录入,反正,可录入,且父ItemField变化......
  • kendoGrid - number属性列bug
    AddedTotalQty:{type:"number",validation:{required:true}},编辑该列,默认带出2位小数,如数据源的数据为2位小数,则可以正常显示;如数据源的数据为三位小数,则会自动......
  • win10如何彻底关闭自带defender杀毒软件【教程详解】
    windowsdefender是win10系统自带的杀毒软件,有的时候我们需要关闭它才能运行某些软件,而网上的一些针对关闭win10自带的杀毒软件的方法似乎并没有什么效果,下面就来教大家彻......
  • 基于Opendaylight的SFC部署及实验
    ps使用命令行下载慢的化可以先下载到本地,之后手动安装安装双系统【Ubuntu安装详细教程】https://www.bilibili.com/video/BV1CG4y1h7bx/?share_source=copy_web&vd_s......
  • BlendFunc——图形学混合方式
     1、根据 纹理 是否alpha预乘,决定混合方式voidSprite::updateBlendFunc(void){CCASSERT(!_batchNode,"CCSprite:updateBlendFuncdoesn't......
  • java使用gzip压缩和解压
    代码如下:publicclassGZipUtils{publicstaticfinalintBUFFER=1024;publicstaticfinalStringEXT=".gz";publicstaticvoidmain(String[]args)......
  • 如何解决7z: command not found问题
    7z是一种常见的压缩文件格式,如果你想要压缩或解压缩7z文件,你需要在你的系统上安装p7zip和p7zip-full。但是,有时候你会发现当你尝试运行7z或7za命令时,它会显示“bash:7z:c......
  • [gym102769D]Defend City
    以下描述部分方向代指该方向的塔,建议画图理解不妨假设左下的塔数\(\ge2\),这些塔覆盖区域构成阶梯形考虑阶梯的交点,若其被左上/右下覆盖,则总可以去掉其中一个左下换言之......