Skip to content
EPUBCheck · Package and ZIP container

PKG-025

Updated:

EPUBCheck PKG-025 is an error message: “Publication resource must not be located in the META-INF directory.” A file of the publication (a chapter, image or stylesheet) is stored inside META-INF, a folder reserved for container files such as container.xml.

The official message

Publication resource must not be located in the META-INF directory

Default severity
Error. The EPUB breaks a rule of the specification and is invalid. Stores and Send to Kindle may reject it, and EPUBCheck exits with status 1.
EPUBCheck version
5.4.0

Typical causes

How to fix it

  • Move the file out of META-INF, into the folder that holds the rest of the content.
  • Update the manifest and every reference, and the rootfile path in container.xml if you moved the package document.

Terms used here

Other PKG messages

  • PKG-024 Uncommon EPUB file extension.
  • PKG-026 Obfuscated resource must be a Font Core Media Type (was declared as "…" in "…").
  • PKG-027 Could not extract EPUB ZIP content, probably due to file names not encoded in UTF-8.
  • PKG-022 Wrong file extension for image. The image is a "…" file but has the file extension "…".
  • PKG-021 Corrupted image file encountered.
  • PKG-017 Uncommon EPUB file extension.

Message text and severity from EPUBCheck 5.4.0 (W3C, BSD-3-Clause). Explanation by EPUBLab.

FAQ

What does EPUBCheck PKG-025 mean?

EPUBCheck PKG-025 is an error message: “Publication resource must not be located in the META-INF directory.” A file of the publication (a chapter, image or stylesheet) is stored inside META-INF, a folder reserved for container files such as container.xml.

Is PKG-025 an error?

PKG-025 is reported as error by default. The EPUB breaks a rule of the specification and is invalid. Stores and Send to Kindle may reject it, and EPUBCheck exits with status 1.