Ubuntu: CRC error during extraction of downloaded compressed tar. Tar file is intact


I have downloaded a compressed file from http://ds.arm.com/downloads/. File details are DS500-BN-00019-r5p0-21rel1.tgz(64 bit) When I try to extract this file using the following command

tar -zxvf DS500-BN-00019-r5p0-21rel1.tgz  

I receive the following error

gzip: stdin: invalid compressed data--crc error  tar: Child returned status 1  tar: Error is not recoverable: exiting now  

The same output I got if I try to view contents using "-tzf" option. In different ubuntu environment file extracts successfully. tar is failing to extract only in my ubuntu environment. If I use 7z, I observe the following failure message

7-Zip [64] 9.20  Copyright (c) 1999-2010 Igor Pavlov  2010-11-18  p7zip Version 9.20 (locale=en_IN,Utf16=on,HugeFiles=on,4 CPUs)  Processing archive: DS500-BN-00019-r5p0-21rel1.tgz  Extracting  DS500-BN-00019-r5p0-21rel1.tar     CRC Failed  Sub items Errors: 1  

This behavior is observed for all compressed files downloaded from internet. If I use compressed files from different ubuntu environment or from my system itself, I dont observe this behavior.

I suspect this is being observed only in my ubuntu environment. Kindly help me in resolving this issue.

Following are the environment details

Ubuntu 12.04  $ tar --version  tar (GNU tar) 1.26  ...  $ gzip --version  gzip 1.4  ...  

Kindly let me know if any more details are required.



gunzip DS500-BN-00019-r5p0-21rel1.tgz

Then the file becomes DS500-BN-00019-r5p0-21rel1.tar.

Then try

tar -xvf DS500-BN-00019-r5p0-21rel1.tar

If that doesn't work file may be corrupt. Try to find the file type by using the command

file DS500-BN-00019-r5p0-21rel1.tgz

Check the output and confirm whether it shows gzip compressed data? If not, try after downloading the file once again.

Hope this helps.


It could be that whatever you are using to download the files is detecting that they are compressed and is uncompressing them for you. Browsers will do that sort of (un)helpful thing. Run the file command on the file to see if it says

gzip compressed data, last modified:...  

which is correct, or just something like

POSIX tar archive (GNU)  

which means it has been uncompressed and so use tar xf without the z.

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Next Post »