Ubuntu下 eclipse 安裝

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

在安裝eclipse時,遇到以下錯誤:
tar: This does not look like a tar archive
tar: Skipping to next header
tar: Exiting with failure status due to previous errors eclipse

通常而言tar -zxvf filename.tar.gz就能夠打開.tar.gz文件 this

參照了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. spa

上述方式已經驗證經過。 ip

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,即不壓縮
相關文章
相關標籤/搜索