Sunday, November 18, 2018

java - gzip: stdin: unexpected end of file -> problem in extracting jdk-7u55-linux-x64.tar.gz




I have downloaded 'jdk-7u55-linux-x64.tar.gz'



When I execute following command to extract,



 sudo tar xvzf jdk-7u55-linux-x64.tar.gz


also tried,



sudo tar xvf jdk-7u55-linux-x64.tar.gz

sudo tar xf jdk-7u55-linux-x64.tar.gz
sudo tar -xvf jdk-7u55-linux-x64.tar.gz


But am getting error at last as,



gzip: stdin: unexpected end of file
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now



How to resolve this ?



Please don't use sudo unless necessary. If you are extracting this into a directory you have access to, there's no need for sudo.



Anyway, the error you're getting is usually due to an incomplete download. The archive ends before the expected footer of the gzipped file. It will probably work fine if you just download it again.


No comments:

Post a Comment

11.10 - Can't boot from USB after installing Ubuntu

I bought a Samsung series 5 notebook and a very strange thing happened: I installed Ubuntu 11.10 from a usb pen drive but when I restarted (...