Bug#863102: epubcheck: exec format error

Teemu Ikonen tpikonen at gmail.com
Sat Sep 21 07:19:33 BST 2024


I'm also seeing this bug.

Since /usr/bin/epubcheck is a symlink to /usr/share/java/epubcheck.jar 
and running

    java -jar /usr/share/java/epubcheck.jar

runs epubcheck fine, I think the obvious solution is to replace the 
symlink with a small shell script.
Here's a suggestion:

    #!/bin/sh

    exec java -jar /usr/share/java/epubcheck.jar "$@"

The executable permissions should also be removed from the jar-file. 
Having jar as an executable format may have worked at some point, but 
not any more.



More information about the pkg-java-maintainers mailing list