ubuntu 下 tar解压是出错
2012-11-06 17:02
204 查看
tar -zxf apache-maven-2.2.1-bin.tar.gz 包提示错误信息如下:
解决方法:
file apache-maven-2.2.1-bin.tar.gz 查看文件类型,结果显示如下:
发现原来虽然文件名是gz,但是实际上不是。
原因定位:
我在下载maven包的时候,是直接执行
gzip: stdin: not in gzip format tar: Child returned status 1 tar: Error is not recoverable: exiting now
解决方法:
file apache-maven-2.2.1-bin.tar.gz 查看文件类型,结果显示如下:
file apache-maven-2.2.1-bin.tar.gz apache-maven-2.2.1-bin.tar.gz: HTML document text
发现原来虽然文件名是gz,但是实际上不是。
原因定位:
我在下载maven包的时候,是直接执行
wget http://www.apache.org/dyn/closer.cgi/maven/maven-2/2.2.1/binaries/apache-maven-2.2.1-bin.tar.gz[/code]
命令。在浏览器输入url,发现url并不是包的下载地址。重新找到maven包的下载地址,并重新下载就可以了。
相关文章推荐
- Ubuntu tar解压出错解决方案
- Ubuntu 下解压tar.xz方法
- Ubuntu将.tar.gz解压到指定目录
- ubuntu 下解压.tar.bz2文件
- 解压.tar.gz出错gzip: stdin: not in gzip format tar: /Child returned status 1 tar: Error is not recoverab
- 解压.tar.gz出错gzip: stdin: not in gzip format tar: /Child returned status 1 tar: Error is not recoverab
- 在solaris下解压tgz/tar.gz文件方法及出错解决方法
- Linux(Ubuntu) 下如何解压 .tar.gz 文件
- tar解压出错:gzip: stdin: unexpected end of file的解决办法
- tar命令解压.zip文件出错:gzip: stdin has more than one entry--rest ignored
- android 入门不顺啊,解压android_gingerbread_realv210_ver_1_0.tar.bz2出错
- tar解压出错
- Ubuntu下解压tar和deb
- ubuntu下面解压tar.gz包报错:tar命令报错: gzip: stdin: not in gzip format tar: Child returned status 1 tar: Error
- tar解压出错:gzip: stdin: unexpected end of file的解决
- linux下tar解压出错
- ubuntu 常用命令 tar 解压与压缩
- Ubuntu下解压tar软件包的方法
- Ubuntu下.tar.bz2和.tar.gz文件的解压命令
- ubuntu10.10 下解压android-ndk-r8-linux-x86.tar.bz2出错