unable to UNTAR a file

Hi frens,

I have to install samba on UNIX box
for that i have downloaded the samba file from netand now trying to untar that file and getting following error:

# tar -xvf samba-3.0.28a.tar.gz
UX:tar: ERROR: Directory checksum error

even i checked many times by again downloading the file to confirm the fresh file.

Please help me out to overcome this situation.

Nimish

*.gz means it's a compress file, uncompress file first!

try this:

tar -zxvf samba-3.0.28a.tar.gz
1 Like

Not necessarily :slight_smile:
File extensions do not work as in Windows.
I would suggest you to check what kind of file is this way:

file samba-3.0.28a.tar.gz

Regards.

This depends on the tar version you are using.

Another option would be:

gunzip -c samba-3.0.28a.tar.gz | tar xvf -

Regards.

The -z option is found in GNU tar for example but not on a lot of other implmentations./

gzcat samba-3.0.28a.tar.gz | tar xvfp -