Sample Header Ad - 728x90

Check tar file for errors

1 vote
2 answers
1979 views
If there any way to see if there is a problem with the .tar.bz2 file? As you can see, I can get a list of files, but neither xjvf nor xzvf works in this case. $ tar tf pytorch.20210702.tar.bz2 | head -n 5 pytorch/ pytorch/BUILD.bazel pytorch/requirements-flake8.txt pytorch/NOTICE pytorch/WORKSPACE $ tar xjvf pytorch.20210702.tar.bz2 bzip2: (stdin) is not a bzip2 file. tar: Child returned status 2 tar: Error is not recoverable: exiting now $ tar xzvf pytorch.20210702.tar.bz2 gzip: stdin: not in gzip format tar: Child returned status 1 tar: Error is not recoverable: exiting now
Asked by mahmood (1271 rep)
Mar 17, 2021, 09:30 AM
Last activity: Mar 17, 2021, 10:00 AM