EPUB OCF container
The EPUB container must expose the package document through the expected container structure, including META-INF/container.xml and the packaged resources it points to.
EPUB error guide
How PKG_006 EPUB mimetype errors affect KDP uploads and when rebuilding the ZIP container can fix them.
PKG_006: Mimetype file entry is missing or is not the first file in the archive.
The book content is present, but EPUBCheck fails because the ZIP container was built in the wrong order.
Plain English
An EPUB is a ZIP file with strict packaging rules. The mimetype entry must be first and stored without compression.
This usually happens after manually zipping a folder, using a generic archive tool, or re-exporting from a tool that changed package order.
User checklist
These checks keep the repair decision tied to the EPUB package instead of guessing from a generic error code.
Standards context
The EPUB container must expose the package document through the expected container structure, including META-INF/container.xml and the packaged resources it points to.
EPUBCheck evaluates EPUB 2 and EPUB 3 publications against official EPUB specifications and reports structure, package, markup, and reference problems.
Repairability
This is usually repairable by rebuilding the EPUB ZIP container with the mimetype file first and uncompressed.
If the archive is corrupted, encrypted, or missing core package files, container rebuild alone is not enough.
Before: mimetype is missing or compressed after other ZIP entries. After: mimetype is first and contains application/epub+zip.
Next step
The same error code can come from different files and different causes. Uploading the EPUB lets the report show the affected path and whether the fix is deterministic.
Upload EPUB to scan