Tar error: Unexpected EOF in archive
问题 I tar a directory full of JPEG images: tar cvfz myarchive.tar.gz mydirectory When I untar the archive: tar xvfz myarchive.tar.gz I get an error: tar: Unexpected EOF in archive Looking at the output, it fails in the middle of one particular JPEG image. What am I doing wrong? 回答1: Interesting. I have a few questions which may point out the problem. 1/ Are you untarring on the same platform as you're tarring on? They may be different versions of tar (e.g., GNU and old-unix)? If they're different