Ubuntu下 eclipse 安装

eclipse安装文件:eclipse-jee-kepler-R-linux-gtk-x86_64.tar.gz

在安装eclipse时,遇到如下错误:
tar: This does not look like a tar archive
tar: Skipping to next header
tar: Exiting with failure status due to previous errors

一般而言tar -zxvf filename.tar.gz就可以打开.tar.gz文件

参照了Ubuntu Forum一个老外的解决方法,可以这样解决:
I searched on the net and found lots of people running into this bug. Here is a simple solution that works for me:
gzip -d file.tar.gz
and then do
tar -xf file.tar
And it extracts without errors.

上述方式已经验证通过。

tar打包压缩的命令:
tar -zcvf tryTar.tar.gz tryTar
-c 即compress 压缩
-z 用gzip压缩
解压 tar -zxvf tryTar.tar.gz
-x 解开一个压缩文件的命令
tar仅打包的命令:
tar -vf tryTar.tar.gz tryTar
不要参数c和z,即不压缩



你可能感兴趣的:(安装,eclispe)