tar.gz get an error

Asked by Ramy Al-AShram

i need to unzip a file with an extension tar.gz

i write :
sudo tar xvfz <file>.tar.gz -C /opt

i get this error

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

can anyone help me in this

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Ramy Al-AShram
Solved:
Last query:
Last reply:
Revision history for this message
Christoph Langner (chrissss) said :
#1

Are you sure that the file you want to extract is intact? I think the download didn't went like it should.

Revision history for this message
Ralph Janke (txwikinger) said :
#2

Thanks for your question.

Your tar.gz file is corrupt, very probable truncated. You need to download the file again or get it from a backup or something like that.

Hope this helps.

Revision history for this message
Ramy Al-AShram (ramyashram) said :
#3

thanks