Cannot open display!

Hello, a new installation on an older (2013) Supermicro workstation here :

                     ./o.                  nik@Phronesis
                   ./sssso-                -------------
                 `:osssssss+-              OS: EndeavourOS Linux x86_64
               `:+sssssssssso/.            Host: Supermicro X9DAi
             `-/ossssssssssssso/.          Kernel: 6.11.9-arch1-1
           `-/+sssssssssssssssso+:`        Uptime: 2 hours, 47 mins
         `-:/+sssssssssssssssssso+/.       Packages: 939 (pacman)
       `.://osssssssssssssssssssso++-      Shell: bash 5.2.37
      .://+ssssssssssssssssssssssso++:     Resolution: 3840x2160
    .:///ossssssssssssssssssssssssso++:    WM: sway
  `:////ssssssssssssssssssssssssssso+++.   Terminal: terminology
`-////+ssssssssssssssssssssssssssso++++-   Terminal Font: Source Code Pro
 `..-+oosssssssssssssssssssssssso+++++/`   CPU: Intel Xeon E5-2680 v2 (40) @ 3.600GHz
   ./++++++++++++++++++++++++++++++/:.     GPU: NVIDIA Quadro K2000D
  `:::::::::::::::::::::::::------``       Memory: 4828MiB / 257892MiB

I am trying to install and run various tools, like the AKM (see also : AKM, EndeavourOS tools) but I get

$ akm
==> Config file /etc/akm.conf read.
==> Info: detecting available kernel packages.

(yad:142833): Gtk-WARNING **: 07:01:00.549: cannot open display:
/usr/bin/akm: line 468: : command not found

I use Wayland + Sway, just fine it seems. I have read some similar/same error message here After updating system and changing kernel to zen one, system not booting - #5 by tankas yet it’s a different use-case.

Any ideas to fix this ? Thank you.

Please show the output of

echo $DISPLAY
echo $WAYLAND_DISPLAY

Note that akm is a simple wrapper for pacman, so instead you can install and uninstall kernel packages on the command line.