#863102 epubcheck: exec format error

#863102#5
Date:
2017-05-21 19:25:42 UTC
From:
To:
%  epubcheck
zsh: exec format error: epubcheck

I assume that, in one way or the other, a non-ARM executable is
embedded in the package.

#863102#8
Date:
2022-03-12 16:44:45 UTC
From:
To:
Could you send me the output of:

% type epubcheck

and then:

% file /usr/bin/epubcheck

I would be interested also in the output (head) of:

% strace epubcheck

Thanks

#863102#13
Date:
2024-07-31 09:27:40 UTC
From:
To:
Could it be that, seven years later, I am having the same problem?

$ epubcheck -h > /tmp/log 2>&1
Gives an exit code 2 and here is the output of the log:
/usr/bin/epubcheck: ligne 1: $'PK\003\004' : commande introuvable
/usr/bin/epubcheck: ligne 8: erreur de syntaxe près du symbole inattendu « ( »
/usr/bin/epubcheck: ligne 8: `��&�'gs��g��ٚ���qPKمlT�D�E�.5(META-INF/maven/org.w3c/epubcheck/pom.xml�ks�6���W������$;�5=�fkǏƩ7��nқ~?�J�]ڒ�#)��L����c��&���% ���ϷIL��T\�/6���
��PD<��������i��ѓa&�%5�T�ؘk��AB�Y�ӌ�s�9�ގ��-�b0wo��onn����lkk;�}|z��Ti��V)���T�T��dF�aܪ�=���xc�d0LD���v�#350��I�g'�����0(0G��Sj�,���j8P����?��5e����@��K*�A=���<t����Ivw�{��h�\�������5S?��8K�"�h\���D�sFB��N��#���[�úE�<!�����OK,�ԼB��	#2O	E�h͈�"Ef	p���������E�5��$�I���N`c��GhZ��q=�'>����v�d�1+�ͨ��=M �1i����B���B���#��&�v(��yB��a���J�M�j���Z<��W�*���b���/�ɎwSP'

$ file /usr/bin/epubcheck
/usr/bin/epubcheck: symbolic link to ../share/java/epubcheck.jar
$ file /usr/share/java/epubcheck.jar
/usr/share/java/epubcheck.jar: Zip archive data, at least v1.0 to
extract, compression method=store

It may be worth noting that this was working alright until recently.
Then I installed calibre, which I think did upgrade a number of
packages. Could it be that the kernel new how to execute Java files and
dooes no longer know  how to do that?

#863102#18
Date:
2024-09-21 06:19:33 UTC
From:
To:
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.