Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 Ward Jan 3 '14 at 5:33

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 '14 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 '14 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 '14 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 '14 at 6:44

Your Answer


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.