Unable to Install Web UI on arm64 (Raspberry Pi, Debian 11 Bullseye)

I’ve installed Prometheus Alertmanager on my Raspberry Pi OS (debian 11 Bullseye arm64) using “sudo apt install prometheus-alertmanager”
going to localhost:9093 gives me:

Alertmanager
The Debian package of the alertmanager does not include a web application.

Please, use the amtool command-line application to obtain equivalent functionality.

Alternatively, you can build and deploy the UI yourself, by placing the generated files in /usr/share/prometheus/alertmanager/ui/, or by using the --web.ui-path option to point to a different path. The script located at /usr/share/prometheus/alertmanager/generate-ui.sh can automatically build and deploy the UI.

You can still use the HTTP API, and the special handlers:

/metrics
/-/reload
/-/healthy
/-/ready

So, I followed the instructions by running “sudo /usr/share/prometheus/alertmanager/generate-ui.sh”
This seemed to install a load of “stuff” and then ended with the following error:

Downloading Elm tools...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   660  100   660    0     0   1823      0 --:--:-- --:--:-- --:--:--  1823
100 10.4M  100 10.4M    0     0  3242k      0  0:00:03  0:00:03 --:--:-- 4589k
Compiling source code...
/usr/share/prometheus/alertmanager/generate-ui.sh: line 21: ./elm: cannot execute binary file: Exec format error

How do I resolve this?

The version I installed is:

pi@sysmon:/usr/share/prometheus/alertmanager/ui $ prometheus-alertmanager --version
alertmanager, version 0.21.0+ds (branch: debian/sid, revision: 0.21.0+ds-4+b5)
  build user:       team+pkg-go@tracker.debian.org
  build date:       20210718-09:41:12
  go version:       go1.15.9
  platform:         linux/arm64

Subsequent executions of the generate-ui.sh return the following:

pi@sysmon:/usr/share/prometheus/alertmanager/ui $ sudo /usr/share/prometheus/alertmanager/generate-ui.sh
Installing dependencies...
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
curl is already the newest version (7.74.0-1.3+deb11u1).
fonts-font-awesome is already the newest version (5.0.10+really4.7.0~dfsg-4.1).
golang-github-prometheus-alertmanager-dev is already the newest version (0.21.0+ds-4).
libjs-bootstrap4 is already the newest version (4.5.2+dfsg1-7).
uglifyjs is already the newest version (3.12.8-1).
The following package was automatically installed and is no longer required:
  libfuse2
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
Downloading Elm tools...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   660  100   660    0     0   1823      0 --:--:-- --:--:-- --:--:--  1823
100 10.4M  100 10.4M    0     0  3242k      0  0:00:03  0:00:03 --:--:-- 4589k
Compiling source code...
/usr/share/prometheus/alertmanager/generate-ui.sh: line 21: ./elm: cannot execute binary file: Exec format error

Any help much appreciated.

Thanks,
Richie