'tar: Unrecognized archive format error when trying to unpack flower_photos.tgz, TF tutorials on OSX
I'm trying to unpack the flower_photos.tgz after curling it using
curl -O http://download.tensorflow.org/example_../images/flower_photos.tgz
tar xzf flower_photos.tgz
This is from the image retraining tutorial for TensorFlow
Results from curling
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 127 100 127 0 0 255 0 --:--:-- --:--:-- --:--:-- 255
Then when I try to unpack
tar xzf flower_photos.tgz
tar: Unrecognized archive format
tar: Error exit delayed from previous errors.
Solution 1:[1]
try using the -L flag, i.e.
curl -OL http://download.tensorflow.org/example_../images/flower_photos.tgz
Solution 2:[2]
I solved this problem by downloading the file from safari and then copy the file to your directory. There is something wrong with the file download by command curl. Maybe you can try my method.
Solution 3:[3]
I had the same problem
tar: Error opening archive: Unrecognized archive format
In my case the actual file didn't exist anymore (checked by putting the link in the browser), so my tar file was actually an error page (probably 404 page).
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | whiletrue |
| Solution 2 | Yu Gu |
| Solution 3 | srv_ER |
