I see the same error on 24.04 when I run epubcheck. /usr/bin/epubcheck
is a symlink to ../share/java/epubcheck.jar. That's a Java program, and
the shell doesn't know how to run those. I figured out a workaround,
which is to invoke epubcheck as:

java -cp /usr/share/java/epubcheck.jar com.adobe.epubcheck.tool.Checker
<name of epub file to check>

(Assuming that Java is installed and in your path.)

The odd thing for me is that I see this bug was reported on 20.04, but
epubcheck worked for me on that release. I did a clean install of 22.04
in 2022, and epubcheck worked on that. A couple of weeks ago, I upgraded
to 24.04, and tried to run epubcheck for the first time on that release
today.

Output from apt-cache policy epubcheck -

epubcheck:
  Installed: 4.2.6-2
  Candidate: 4.2.6-2
  Version table:
 *** 4.2.6-2 500
        500 http://gb.archive.ubuntu.com/ubuntu noble/universe amd64 Packages
        500 http://gb.archive.ubuntu.com/ubuntu noble/universe i386 Packages
        100 /var/lib/dpkg/status

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1968437

Title:
  Epubcheck binary does not execute

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/epubcheck/+bug/1968437/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to