The tar: error is not recoverable: exiting now error occurs when the tar command encounters a problem it cannot recover from. As a result, it exits immediately.
To fix the error, you must perform unzip and untar separately.
Why the error occurs
Here are two possible reasons:
- The input or output file specified in the command is invalid or does not exist.
- Another reason is that the files being archived or extracted have insufficient permissions.
- You might have specified incorrect path references. Check the path and see if it is correct. Specify the archive name before the directory.
- Check the syntax of the tar command and ensure that you specify the correct input and output files.
- Ensure that the input and output files have the appropriate permissions and that you have the necessary permissions to access them.
- Check the integrity of the files being archived or extracted. If any files are corrupt or damaged, it can cause tar to encounter errors.
- Try running the tar command with the verbose option (-v) to get a more detailed output that can help you identify the cause of the error.
- It’s possible your tar file is not zipped. I just had this same error, but I only had a plain old tar file. So try just removing the z from your flags. The z flag unzips your tar file and whatever commands you requested with other flags.
I hope this helps!