Reputation: 203
I am trying to untar a zip folder I downloaded of a Bioinformatics tool but I am repeatedly getting the truncated tar archive error. What am I doing wrong. http://ncrna-pred.com/premiRNA.html
Click on the source code on this link and you will be able to download the tar file. I use ubuntu 14.04. Thank you.
Gave the command
tar -xvzf HeteroMirPred.tar.gz
and got the error
gzip: stdin: not in gzip format
tar: Child returned status 1
tar:Error is not recoverable: exiting now
Upvotes: 1
Views: 20046
Reputation: 15613
The file has a .gz
suffix but is not actually compressed.
You may check this with the file
command:
$ file HeteroMirPred.tar.gz
HeteroMirPre.tar.gz: POSIX tar archive
Just drop the z
from the flags to tar
:
$ tar xvf HeteroMirPred.tar.gz
Upvotes: 2
Reputation: 1038830
That's not a tar file but a zipped tar. So make sure you are unzipping it correctly:
tar -xvzf HeteroMirPred.tar.gz
Upvotes: 1