Thursday, May 23, 2013

tar error

download a foo.tar.gz

unzip foo.tar.gz

tar -xzf foo.tar  get the error:

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now

solution:
I changed the foo.tar.gz to foo.tar then tar -zxf foo.tar to get the untarred folder.

source: https://bbs.archlinux.org/viewtopic.php?id=98278
Maybe it's just a simple tar archive and not gzipped and tar does detect this but file roller does not. Have you tried renaming it to archname.tar and then installing it -- maybe gzipping it in between?

No comments:

Post a Comment