Debian Trixie: mlat install fails

Hi!
After updating my raspberry to trixie I noticed feeding adsbx did not work anymore. Rerunning axfeed.sh gives the following error:

Installing mlat-client to virtual environment
34
36
38
Traceback (most recent call last):
File “/usr/local/share/adsbexchange/mlat-client-git/setup.py”, line 25, in
from setuptools import setup, Extension
ModuleNotFoundError: No module named ‘setuptools’

Feeding adsb data works, but mlat doesn’t.
Does the adsbx install-script need to be updated to work with Trixie? If not, what else can I try?
Thank you.

1 Like

Yes, actually it affects anything that uses python 3.12 or later. As a hackaround, you could (probably manually) apply this change to script /usr/local/share/adsbexchange/git/update.sh and then run that script. You may also need to (first) apt install pkg-config if it’s not already installed.

Hi! Thanks for the hint, it worked :slight_smile:

Would be great is adsbx could update the install script though.

1 Like

Great! I’ve dropped in a reminder that this needs attention, especially since Trixie is out. Thanks!

1 Like

That bug is still present in Ubuntu 24.04 with python 3.12:

root@lamiska-server:/tmp# curl -L -o /tmp/axupdate.sh https://www.adsbexchange.com/feed-update.sh
root@lamiska-server:/tmp# sudo bash /tmp/axupdate.sh

...

Installing mlat-client to virtual environment

34
36
38
Traceback (most recent call last):
  File "/usr/local/share/adsbexchange/mlat-client-git/setup.py", line 25, in <module>
    from setuptools import setup, Extension
ModuleNotFoundError: No module named 'setuptools'
48
50
60
70
readsb version: 3.14.1631 adsbexchange git: eea98b1 (committed: Mon Jun 17 09:18:43 2024 -0700)

Feed client already installed, git hash:
eea98b13b453779b9fe75b6783f4e6b129f2dff0

82
92
94
96
100
---------------------
---------------------

When trying to start adsbexchange-mlat.service :

2025-09-24T18:50:55.129800+01:00 lamiska-server adsbexchange-mlat[1298567]: /usr/local/share/adsbexchange/adsbexchange-mlat.sh: line 26: /usr/local/share/adsbexchange/venv/bin/mlat-client: No such file or directory
2025-09-24T18:50:55.131966+01:00 lamiska-server systemd[1]: adsbexchange-mlat.service: Main process exited, code=exited, status=127/n/a
2025-09-24T18:50:55.132243+01:00 lamiska-server systemd[1]: adsbexchange-mlat.service: Failed with result 'exit-code'.
root@lamiska-server:/tmp# stat /usr/local/share/adsbexchange/venv/bin/mlat-clientstat: cannot statx ‘/usr/local/share/adsbexchange/venv/bin/mlat-client’: No such file or directory

I have a fresh install of Raspberry Pi OS Trixie Lite on a Pi 4 that that can see aircraft using tar1090 after further installs following the associated instructions at Automatic installation for readsb · wiedehopf/adsb-scripts Wiki · GitHub

My next step was to obtain mlat and feed adsbexchange using axfeed.sh, but it failed in the same manner as it did for Greysky as referenced in his opening post above. Unfortunately, the bash.sh script referenced by Dseven’s post as a possible solution for the problem, also failed. It appears that the main reason is because the script is meant for installations feeding adsb.lol.

I am playing a long shot here, and I don’t expect miracles, but is there a similar update script or other solution available for only feeding adsbexhange? Thanks.

Not sure what script you’re referring to (about being meant for adsb.lol), but anyway, try this as a workaround (after the failure occurs):

#!/bin/bash

set -euo pipefail

apt update
apt install pkg-config curl patch

cd /usr/local/share/adsbexchange/git

git checkout update.sh
curl https://github.com/wiedehopf/feed/commit/846627840c528d5feccae1c2408b573babe1c258.patch | patch -p1

bash /usr/local/share/adsbexchange/git/update.sh

I thank you very much for taking the time to come up with a script that would solve the problem, and hopefully it will help anyone in the future with the same problem. In my case however, since I did not have the skills to solve this on my own, I did a reinstall using bookworm rather than remain off line. My ADSB Pi has been back in service for almost two weeks now. Still, it would be nice to upgrade, and if I have some free time after the first of the year,I will take it off line and give your script a try, Thanks again,

I’m sorry to be such a noob here!!!

I’m Ok with SSH and applying terminal commands but I can’t really work out what to paste in to apply this fix. Where it reads “(probably manually) apply this change 68 to script /usr/local/share/adsbexchange/git/update.sh”, whilst I know how to edit the script, I can’t work what I’m supposed to replace in the script.

the ‘68’ reference takes me to a Github page but I’m not sure how tro figure out which bits I need or how to export it?

Is there anyone who could reply with a ready-to-paste text version of the modified script please? My feed is up and reporting fine, but I’m not showing on the map. This did originally work when I first set up about 18 months ago, but I’m guessing a Pythoh update has broken it but ADSB EXchange are just ignoring the problem as they never answered my email a couple of months ago asking for help despite me providing a free freed to them.

For inot itds a Pi 5 - PRETTY_NAME=“Debian GNU/Linux 13 (trixie)”
NAME=“Debian GNU/Linux”
VERSION_ID=“13”
VERSION=“13 (trixie)”
VERSION_CODENAME=trixie
DEBIAN_VERSION_FULL=13.3

Many thanks

(I did try the later instructions but got an access denied message?)

phil@Pi5:~ $ #!/bin/bash
phil@Pi5:~ $ set -euo pipefail
phil@Pi5:~ $ apt update
Error: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)
Error: Unable to lock directory /var/lib/apt/lists/
Warning: Problem unlinking the file /var/cache/apt/pkgcache.bin - RemoveCaches (13: Permission denied)
Warning: Problem unlinking the file /var/cache/apt/srcpkgcache.bin - RemoveCaches (13: Permission denied)

The script (starting with #!/bin/bash) would need to be saved in a file, say /tmp/fix-adsbx.sh, and executed as root, with sudo bash /tmp/fix-adsbx.sh

Or just copy/paste this one-liner into your ssh session:

curl -sSL https://gist.githubusercontent.com/dseven/a9a9be3c094f575f11ea48783fd41474/raw/adsbx-mlat-py312.sh | sudo bash
1 Like

Perfect, you are a SuperHero , your one-liner it fixed it! thankyou soooo much for making this such a painless fix !!

!Hopefully, ADSB EXchange will update its instructions one day ..poor show considering we supply this data for free… sigh

1 Like