Failing to install mender-client on RPI4


I have just seen the Remote Terminal add-on, and wanted to give it a try.
I have a raspberrypi 4, OS version: Raspbian GNU/Linux 10 (buster), with mender installed, but without mender-client.

I saw that the remote terminal add-on requires mender-client, installed using the APT repository (Link),

But when trying to install it, as described here, I’m getting the following error:

~ $ sudo add-apt-repository \

"deb [arch=armhf] \

stable \


Traceback (most recent call last):

File “/usr/bin/add-apt-repository”, line 95, in

sp = SoftwareProperties(options=options)

File “/usr/lib/python3/dist-packages/softwareproperties/”, line 109, in init


File “/usr/lib/python3/dist-packages/softwareproperties/”, line 599, in reload_sourceslist


File “/usr/lib/python3/dist-packages/aptsources/”, line 93, in get_sources

(, self.codename))

aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template for

Any chance it is not supported?
Or maybe I’m missing anything?

I’ve never seen that error myself. Two possibilities come to mind.

  1. Are you running a 64-bit version of the OS? If so you will need the arm64 instructions from that same link.
  2. Is it possible you have a copy/paste error, adding a newline or some such?

I also had the exactly same issue, but I solved it by adding the repo to /etc/apt/source.list directly.
Hope this helps.

sudo echo "deb [arch=armhf] stable main" >> /etc/apt/source.list
sudo apt update
sudo apt install mender-connect

Then, you can edit /etc/mender/mender-connect.conf and restart the service.

sudo vi /etc/mender/mender-connect.conf
sudo systemctl restart mender-connect

There might be something wrong between the apt-add-repository and Mender’s repo configuration, so the apt-add-repository cannot parse correctly.

1 Like

If I change /etc/apt/source.list to /etc/apt/sources.list, it is working for me. Thanks!

sudo echo "deb [arch=armhf] stable main" >> /etc/apt/sources.list
sudo apt update
sudo apt install mender-connect