๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.bugs.dist
Article #5832

Bug#1155052: ditaa: Can't run ditaa on the command-line: syntax error near unexpected token

#5832
From: Joenio Marques da Costa
Date: Mon, 23 Nov 2026 20:10
35 lines
4876 bytes
Package: ditaa
Version: 0.10+ds1-2
Severity: important

Dear Maintainer,

When running ditaa from the command-line it fails with the following message.

    $ย ditaa
    /usr/bin/ditaa: line 1: $'PK\003\004': commande introuvable
    /usr/bin/ditaa: line 2: syntax error near unexpected token `)'
    /usr/bin/ditaa: line 2: Q]META-INF ...

The ditaa binary is a symlink to the ditaa.jar file:

    $ ls -l /usr/bin/ditaa
    lrwxrwxrwx 1 root root 24 18 out 01:54 /usr/bin/ditaa -> ../share/ditaa/ditaa.jar

A workaround is to run it using the java interpreter with the jar file as
argument, such as the example below.

    $ java -jar /usr/share/ditaa/ditaa.jar

Running like that ditaa works as expected. Not sure why it was working until
recently and now it's failing. Could it be related to binfmt-support?

    $ dpkg -l binfmt-support
    ii  binfmt-support   2.2.2-8   amd64          Support for extra binary formats

I'm running Debian testing.

-- System Information:
Debian Release: forky/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.10.9-amd64 (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages ditaa depends on:
ii  default-jre                     2:1.25-77
ii  default-jre-headless            2:1.25-77
ii  jarwrapper                      0.82
ii  junit4                          4.13.2-6
ii  libbatik-java                   1.20-1
ii  libcommons-cli-java             1.11.0-1
ii  libjericho-html-java            3.4+dfsg-1
ii  libxml-commons-external-java    1.4.01-6
ii  openjdk-17-jre [java9-runtime]  17.0.15+6-1
ii  openjdk-21-jre [java9-runtime]  21.0.13.0.3+1-1

ditaa recommends no packages.

ditaa suggests no packages.

-- no debconf information
Technical Details
Message-ID: <O2Iwp-dJDa-5@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!news-lon.pugleaf.net!srl.newsdeef.eu!news.corradoroberto.it!bofh.it!news.nic.it!robomod

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lon.pugleaf.net!srl.newsdeef.eu!news.corradoroberto.it!bofh.it!news.nic.it!robomod
From: Joenio Marques da Costa <joenio@joenio.me>
Newsgroups: linux.debian.bugs.dist
Subject: Bug#1155052: ditaa: Can't run ditaa on the command-line: syntax error near unexpected token
Date: Mon, 23 Nov 2026 21:10:01 +0100
Message-ID: <O2Iwp-dJDa-5@gated-at.bofh.it>
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Mon Nov 23 20:05:08 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.651
Reply-To: Joenio Marques da Costa <joenio@joenio.me>, 1155052@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: packages@qa.debian.org
X-Debian-Pr-Message: report 1155052
X-Debian-Pr-Package: ditaa
X-Debian-Pr-Source: ditaa
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
X-Mailer: reportbug 13.2.0+nmu1
X-Gnd-Sasl: joenio@joenio.me
X-Gnd-Cause: dmFkZTEXrFy0zPSvjNA/WrAjrIsmAGjjNgRqO8gz5SOf3lQI77W1nsfAi+b0JZdG8ttsLDy+ILuzdlrC9GwM/AO2NzddvKDJ3v8PSIGnuveX/uAiurn7nmF9FeWZjF3jHEDlWGEg1b/FmHUVAP8m7axu6N9DbghenWbtsjLvXnZPI4zyEJ8wb/6c3peDoymS80OlK3nprJ5DDEu/Xct44L01XleV5iifP0p9kNR40Q/xlfAHmFvM4cPG+Ak+rnnVrCojnHjmcIoLzVwznuYY075eU5JE2+Q04CsS8pIbxffLuSMNfq8lCN1ve9iA9bsOJH6UsAnsGJ7eZ+re5IPoHUPDfgiPfdCDCVhxt1ViiN/h0bBcLqI35VLopTwEw4tnuvH4mlGj0pM6zAjscQ3WJZGfcnfYZTvsLXbeYWIBX6dhRDollzQJVG6g6ip9TfjYUIAExKLpmO93PaNQNAx64ocRXvd6DvvEYmZ3l2iWNjq1eQ1H6EPR0iVbEzRRh/22h3POwxeoQE0d/sOwdFfb4wysLwTF5iNgUWta/v44H52cdEBBB5jzgTNDeR6yN7qcuh7w52I0Dla9hP9+M8erYVbMQa0uwAEHj5vN7GyNj/aZ9WJeS5x+37yqx54c6sRXHiyfkyMibmEJq2Zx89KcrxcmVm8rQJMM+bDyQerN/8LpuoMw5g
X-Gnd-State: clean
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2004540
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 35
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Mon, 23 Nov 2026 21:02:54 +0100
X-Original-Message-ID: <179546417484.2765447.5338791244326599220.reportbug@maelcum>