# Failing to install mender-client on RPI4

**URL:** <https://hub.mender.io/t/failing-to-install-mender-client-on-rpi4/3291>\
**Category:** General Discussions\
**Tags:** mender-client, raspberry-pi-4\
**Created:** [March 3, 2021, 10:36am UTC](https://hub.mender.io/t/failing-to-install-mender-client-on-rpi4/3291 "2021-03-03T10:36:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aeagle](https://avatars.discourse-cdn.com/v4/letter/a/a9a28c/32.png) [@Aeagle](https://hub.mender.io/u/Aeagle)\
**Post date:** [March 3, 2021, 10:36am UTC](https://hub.mender.io/t/failing-to-install-mender-client-on-rpi4/3291/1 "2021-03-03T10:36:58Z")

</div>

Hello,

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](https://docs.mender.io/downloads#install-the-remote-terminal-client)),

But when trying to install it, as described [here](https://docs.mender.io/downloads#install-using-the-apt-repository), I’m getting the following error:

> ~ $ sudo add-apt-repository \
> 
> > "deb [arch=armhf] [https://downloads.mender.io/repos/debian](https://downloads.mender.io/repos/debian) \
> 
> > stable \
> 
> > main"
> 
> 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/SoftwareProperties.py”, line 109, in **init**
> 
> self.reload\_sourceslist()
> 
> File “/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py”, line 599, in reload\_sourceslist
> 
> self.distro.get\_sources(self.sourceslist)
> 
> File “/usr/lib/python3/dist-packages/aptsources/distro.py”, line 93, in get\_sources
> 
> (self.id, self.codename))
> 
> aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template for  
> Raspbian/buster

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

---

<div class="post-metadata">

**Author:** ![drewmoseley](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/drewmoseley/32/47_2.png) [@drewmoseley](https://hub.mender.io/u/drewmoseley)\
**Post date:** [March 3, 2021, 6:12pm UTC](https://hub.mender.io/t/failing-to-install-mender-client-on-rpi4/3291/2 "2021-03-03T18:12:26Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![FulcronZ](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/fulcronz/32/1094_2.png) [@FulcronZ](https://hub.mender.io/u/FulcronZ)\
**Post date:** [March 17, 2021, 4:55am UTC](https://hub.mender.io/t/failing-to-install-mender-client-on-rpi4/3291/3 "2021-03-17T04:55:32Z")

</div>

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] https://downloads.mender.io/repos/debian 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.

---

<div class="post-metadata">

**Author:** ![hunasdf](https://avatars.discourse-cdn.com/v4/letter/h/7bcc69/32.png) [@hunasdf](https://hub.mender.io/u/hunasdf)\
**Post date:** [March 27, 2021, 12:13pm UTC](https://hub.mender.io/t/failing-to-install-mender-client-on-rpi4/3291/4 "2021-03-27T12:13:27Z")

</div>

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

```
sudo echo "deb [arch=armhf] https://downloads.mender.io/repos/debian stable main" >> /etc/apt/sources.list
sudo apt update
sudo apt install mender-connect
```
