Reputation: 1874
Performing following steps:-
After 5th step I get the error:-
gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
What could be the problem? On my local Mac machine same commands work.
Upvotes: 3
Views: 2325
Reputation: 87
Did you tried to list it (shouldn't work) ?
tar -ztf version-$SHA.tar.gz
To Gunzip it ?
gunzip version-$SHA.tar.gz
To untar it if it is not gzipped ?
tar xf version-$SHA.tar.gz
Tried to bunzip ?
tar xjf version-$SHA.tar.gz
Tried to unzip ?
unzip version-$SHA.tar.gz
The file isn't not empty (an empty tar is around 10Kio) ?
ls -lk version-$SHA.tar.gz
If neither work, could you do this :
file version-$SHA.tar.gz
Upvotes: 1
Reputation: 372
Quote from the manpage:
--format= Format of the resulting archive: tar or zip. If this option is not given, and the output file is specified, the format is inferred from the filename if possible (e.g. writing to "foo.zip" makes the output to be in the zip format). Otherwise the output format is tar.
So you got probably a .tar file which not compressed, but just named .tar.gz.
Try without the -z parameter.
Upvotes: 3