Reputation: 141
I'm trying to download a dataset from here for my machine learning project
the data file appears to be tar but not extracting properly.
tar -xvf SNAKE_ALL.tar
tar: This does not look like a tar archive
tar: Exiting with failure status due to previous errors
tried
gzip -dc SNAKE_ALL.tar | tar -xf -
gzip: SNAKE_ALL.tar: not in gzip format
tar: This does not look like a tar archive
tar: Exiting with failure status due to previous errors
and
file SNAKE_ALL.tar
SNAKE_ALL.tar: HTML document, ASCII text
link to data:https://data.mendeley.com/datasets/v88xfw5wyx/1
Upvotes: 0
Views: 16787
Reputation: 11
You have to use curl -JLO
to download the file. With curl -O
it just downloads an HTML file sometimes.
Upvotes: 1
Reputation: 11
It appears to be corrupted. Note that the file size is 0 bytes.
Upvotes: 1
Reputation: 5530
It's not a tar file. The download fails and the ".tar" file you get is really a html fail saying:
"
403 ForbiddenYou don't have permission to access /public/snake_toxins/SNAKE_ALL.tar on this server.
Next time you get something like this run the commman:
file SNAKE_ALL.tar to see what kind of file it really is.
Upvotes: 2