strelaysrv command not found

In this troubleshooting guide we learn how to fix strelaysrv command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

strelaysrv: command not found

or when using sudo you get the following error message

sudo: strelaysrv: command not found

Solutions to strelaysrv: command not found

How To Fix strelaysrv: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu strelaysrv is provided by syncthing-relaysrv package.

syncthing-relaysrv is:

Syncthing is an application that lets you synchronize your files across multiple devices. This means the creation, modification or deletion of files on one machine will automatically be replicated to your other devices. Syncthing does not upload your data to the cloud but exchanges your data across your machines as soon as they are online at the same time.

Syncthing relies on a network of community-contributed relay servers. Anyone can run a relay server, and it will automatically join the relay pool and be available to Syncthing users.

This package contains the relay server binary: strelaysrv.

To fix this problem, we can install more using the command below.

sudo apt-get -y install syncthing-relaysrv

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install syncthing-relaysrv.

sudo apt -y install syncthing-relaysrv

Or if you have aptitude installed you can use the following command.

sudo aptitude install syncthing-relaysrv

Summary

In this tutorial we learn how to fix strelaysrv command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.