Ubuntu系统下解压.zip文件报错的解决方案
1.没有安装解压工具
下载unzip,在终端执行
sudo apt-get install unzip
2.文件太大,需要使用jar进行解压
在要解压的文件目录下打开终端,输入
jar xvf xxxx.zip (xxxx为要解压的文件名)
如果报:jar:Command not found
则用yam进行安装
yum -y install java-1.6.0-openjdk-devel
安装完成后再次运行
jar xvf xxxx.zip
3.文件下载或上传时出现错误
如果前两种方法尝试以后还是报下面这种错误,那应该就是下载或上传时文件出现了错误。我在解压.zip类型的文件时遇到下面这种错误
Archive: data.zip
End-of-central-directorysignature not found. Either thisfile is not
a zipfile, or itconstitutes one disk of a multi-partarchive. In the
latter case the centraldirectory and zipfile comment will be found on
the last disk(s) of thisarchive.
unzip: cannot find zipfiledirectory in one of bbs.zip or
data.zip.zip,and cannot find data.zip.ZIP, period.
查了很多资料,前两种方法也都尝试了很多次结果还是不行,最后进行一次下载是在网速很快的情况下进行的,下载完成后解压成功,如果你下载时网速很慢,下载完成后无法解压可以考虑重新下载或上传。
“如有错误,欢迎指正。”