PKG-006: Mimetype file entry is missing or is not the first file in the archive.
An EPUB is a ZIP archive whose very first entry must be a file named mimetype. Reading systems look at the first bytes of the archive to recognise an EPUB, so a mimetype file in any other position is as good as missing.
Why it happens
- The EPUB was unzipped, edited and zipped again with a regular archive tool, which orders files alphabetically or by folder.
- A script built the archive and added META-INF or OEBPS before mimetype.
- The mimetype file was deleted while editing the unpacked book.
Fix it in E-BOOKA
Open the book on the EPUB checker and download it again from the editor. The exported file is written correctly, so this error does not come back. Run EPUBCheck again to confirm.
Open your EPUBFix it by hand
The ZIP archive itself. Re-create it with mimetype added first and stored without compression, then the rest.
Before
zip -r book.epub .After
zip -X0 book.epub mimetype
zip -rDX9 book.epub META-INF OEBPSFolder names after mimetype depend on the book; OEBPS is the most common.
Related: PKG-007
Checked with EPUBCheck 5.3.0, November 2026