How to Fix tar: error is not recoverable: exiting now

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:

  1. The input or output file specified in the command is invalid or does not exist.
  2. Another reason is that the files being archived or extracted have insufficient permissions.

Alternate solutions

  1. You might have specified incorrect path references. Check the path and see if it is correct. Specify the archive name before the directory.
  2. Check the syntax of the tar command and ensure that you specify the correct input and output files.
  3. Ensure that the input and output files have the appropriate permissions and that you have the necessary permissions to access them.
  4. Check the integrity of the files being archived or extracted. If any files are corrupt or damaged, it can cause tar to encounter errors.
  5. 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.
  6. 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!

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.