Archive: ****** End-of-central-directory signature not found. Either this file is not a zipfile, or it constitutes
Archive: demoApi.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 dis
在使用unzip解压 *.zip文件时,提示上面的错误,一般情况下,有两种可能导致该错误,
第一种:unzip命令无法打开它
第二种:该压缩包不完整
我们先来解决第一种:
对于unzip命令无效的情况,我们可以使用
用jar 来解
$ jar xvf abc.zip
如果出现
jar:Command not found
要用yum下载
$ yum -y install java-1.6.0-openjdk-devel
安装时间也就两三分钟
安装完毕再次运行
再次运行
$ jar xvf *.zip
即可。
但多数并不是unzip不可用,而是出现了压缩包不完整的情况。
接下来,我们来看第二种情况,压缩包不完整
我的虚拟机是centos7,我直接把压缩包拖进虚拟机的,在解压的时候,碰到了上面的错误,在网上找答案,说是用jar解压即可,我就试了试,确实能解压,但是,内容不完整,,,,,,
于是,我看了下虚拟机里面的压缩包的大小,又看了看windows下的压缩包大小,尴尬了。。。。Windows下压缩包大概90M,拖进虚拟机后只有13M。。。。。
知道了原因所在,解决就有了方向,即得保证两压缩包大小一致
我这里使用的是 FileZilla ,下载它,安装它,然后连接服务器,结果又报错了。。。
状态: 尝试连接“ECONNREFUSED - 连接被服务器拒绝”失败。
不过已经有前人遇到了,并替我们解决了,解决办法:
文件-->站点管理器中新建站点然后选择SFTP协议,输入用户名密码点击连接即可。

接着

面板

此时再把文件拖过去,就可以保证文件的大小一致性。
再次使用unzip即可。
总结:有时候问题的出现可能不是unzip不能用,而是文件本身的问题,好了,我又帮你解决了一个坑,省的你下载了jar,解压后才发现根本不是unzip的问题。先检查文件的完整性,再决定你是否真的需要jar,unzip这个锅背的莫名其妙啊。
Archive: ****** End-of-central-directory signature not found. Either this file is not a zipfile, or it constitutes的更多相关文章
- invalid END header (bad central directory offset) 异常解决方法
今天版本升级时,一个ear包在传到aix下,weblogic后启动出现 invalid END header (bad central directory offset) 后来才发下是文件传输中出现了 ...
- win10 pro eclipse maven: Cannot read lifecycle mapping metadata for artifact org.apache.maven.plugins:mav invalid END header (bad central directory offset)
Error:Cannot read lifecycle mapping metadata for artifact org.apache.maven.plugins:mav ... invalid E ...
- Error generating final archive: Unable to get debug signature key
在调试程序时,发生下面的错误: Error generating final archive: Unable to get debug signature key 解决办法: 删除下面的文件: C:\ ...
- Hive:org.apache.hadoop.hdfs.protocol.NSQuotaExceededException: The NameSpace quota (directories and files) of directory /mydir is exceeded: quota=100000 file count=100001
集群中遇到了文件个数超出限制的错误: 0)昨天晚上spark 任务突然抛出了异常:org.apache.hadoop.hdfs.protocol.NSQuotaExceededException: T ...
- rmmod: can't change directory to '/lib/modules': No such file or directory
[root@iTOP-4412]# mount /dev/sda1 /mnt/udisk/ [root@iTOP-4412]# insmod /mnt/udisk/linux/hello.ko [ ...
- CMake error:System Error:No such file or directory CMake error:Could not open file for write in copy operation xxxx.ros_Config.cmake.tmp.
微型电脑或嵌入式与电脑还是有点不同的,在微型电脑上ros indigo 版本下利用catkin编译如果你遇到如下错误: CMake error:System Error:No such file or ...
- [转载]rmmod: can't change directory to '/lib/modules': No such file or directory
转载网址:http://blog.csdn.net/chengwen816/article/details/8781096 在我新移植的kernel(3.4.2)和yaffs2文件中,加载新编译的内核 ...
- maven导入项目时出现“Cannot read lifecycle mapping metadata …… invalid END header (bad central directory offset)pom”错误的解决方法
出现该错误是因为jar包版本不匹配,比如linux上的jar包导入到windows上了.可以将.m2\repository的org.apache.maven.plugins删掉然后让maven重新下载 ...
- 【C# IO 操作】 Path 路径类 |Directory类 |DirectoryInfo 类|DriveInfo类|File类|FileInfo类|FileStream类
Directory类 Directory类 是一个静态类,常用的地方为创建目录和目录管理. 一下来看看它提供的操作. 1.CreateDirectory 根据指定路径创建目录.有重载,允许一次过创建多 ...
随机推荐
- FJOI2020 游记
Day -1 啥都不会,药丸 看了看统考题,好难,爆零的节奏 文化课OI双爆炸 尽力吧 Day 0 花三个多小时才到考场 福州真的好热 签到 在小礼堂待了一会,顺便给手机充了电 四点试机,今年用了新系 ...
- 557反转字符串中的单词III
class Solution: # 定义一个反转字符串的函数. def str_rever(self,s): length = len(s) s1 = '' for index in range(le ...
- Python编程进阶,Python如何实现多进程?
进程part1 一.进程介绍 1.获取子父进程 2.进程的基本使用 2.创建带有参数的进程 3.进程之间的数据彼此隔离 4.多个进程之间的异步并发 二.join 1.基本语法 2.使用自定义类的方法创 ...
- 【Spring注解驱动开发】AOP核心类解析,这是最全的一篇了!!
写在前面 昨天二狗子让我给他讲@EnableAspectJAutoProxy注解,讲到AnnotationAwareAspectJAutoProxyCreator类的源码时,二狗子消化不了了.这不,今 ...
- 【转】ANDROID LOLLIPOP SCREEN CAPTURE AND SHARING
https://datatheorem.github.io/android/2014/12/26/android-screencapture/ https://www.youtube.com/watc ...
- 大概是win里最方便快捷的截图+拾色软件——Snipaste
Snipaste 是一个简单而又强大的截图工具,还可以让你将截图贴回到屏幕上!按下 F1 截图快捷键来开始截图,再按 F3贴图快捷键,截图就在桌面置顶显示了.对比文字,对比表格,对比图片,就这么简单! ...
- Roads in the North (树的直径)
Building and maintaining roads among communities in the far North is an expensive business. With thi ...
- ElasticSearch7.6.1 安装及其head插件安装
本来打算写一篇ES和Solr的差别的,后来想想算了简单说说吧, 如果是对已存在数据建立完成索引的情况下,Solr更快 一但进行索引的操作的时候,Solr的IO是阻塞的 对于大数据量的实时检索,还是El ...
- Mybatis源码学习第六天(核心流程分析)之Executor分析(补充)
补充上一章没有讲解的三个Executor执行器; 还是贴一下之前的代码吧;我发现其实有些分析注释还是写在代码里面比较好,方便大家理解,之前是我的疏忽,不好意思 @Override public < ...
- 用Nginx将web请求引导到本机两个tomcat
如何在本机启动两个tomcat请参考:https://www.cnblogs.com/xiandedanteng/p/12100461.html 而Nginx这边,将\conf\nginx.conf ...