> Source: [sk66616](https://support.checkpoint.com/results/sk/sk66616)

# sk66616 - 'tar: Unexpected EOF in archive' error when extracting compressed files

| Property | Value |
|----------|-------|
| Solution ID | sk66616 |
| Date Created | 2012-04-19 |
| Last Modified | 2013-03-16 |
| Technical Level | General |
| Products | Security Gateway, Security Management Server |
| Versions | R82.10, R82, R81.20, R82.20 |
| OS | Linux, Gaia |

## Symptoms

- '`tar: Unexpected EOF in archive`  
`
tar: Error is not recoverable: exiting now`'  
error when extracting compressed files (.tgz / tar.gz).

## Cause

Possible causes:

* The archive file is corrupt.
* The archive file was transferred via FTP or TFTP protocol in ASCII mode as opposed to Binary mode.

## Solution

Possible solutions:

* In order to check whether the archive file is corrupt, check its MD5 sum on the source machine and on the target machine, and compare the MD5 sums.  

* In order to check whether the issue was caused by wrong FTP/TFTP mode, transfer the archive in Binary mode.

---

# Agent Instructions

This content is from the Check Point Support Center (https://support.checkpoint.com), the official knowledge base for Check Point cybersecurity products.

## Navigating This Knowledge Base

- **Complete index**: [llms.txt](https://support.checkpoint.com/llms.txt)
- **All SK articles**: [SecureKnowledge Sitemap](https://support.checkpoint.com/sitemaps/secureknowledge-sitemap-index.xml)
- **SK article URL pattern**: `https://support.checkpoint.com/results/sk/{skId}`
- **Markdown responses**: AI bot User-Agents automatically receive `text/markdown` content
