Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I downloaded a big data file (others.tgz, some 30GB) from an ftp site. I did

tar -zxvf others.tgz

some files were extracted ( four files, where it is supposed to have 6 files ) after that it came out throwing the error,

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

Any suggestions please.

share|improve this question
    
"Unexpected EOF" means that the tarball isn't complete, or is corrupt. You'll have to redownload. –  Thomas W. Jan 3 at 5:33

1 Answer 1

It sounds like the file did not download correctly. You can check if the file sizes match. Even better, if the site provides one, you can check if the hashes match.

Unfortunately you will likely need to re-download the file.

share|improve this answer
    
I re-downloaded it and extracted. Same problem. What are these "hashes" to match. –  srinivasu u Jan 3 at 6:22
    
Some sites publish a the hash (usually MD5) of a file along with the download so you can easily check if the downloaded file matches the provided one. –  superdesk Jan 3 at 6:29
    
If downloading a second time didn't work, there is also the possibility that the original file has a problem. –  superdesk Jan 3 at 6:29
    
They did't have any such files. They provided the original data on our request. As you said, it seems original file is corrupted. We shall request them to prepare fresh archive and upload again. –  srinivasu u Jan 3 at 6:44

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.