runsv command not found

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

Introduction

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

runsv: command not found

or when using sudo you get the following error message

sudo: runsv: command not found

Solutions to runsv: command not found

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

In Ubuntu runsv is provided by runit package.

runit is:

runit is a collection of tools to provide system-wide service supervision and to manage services. Contrary to sysv init, it not only cares about starting and stopping services, but also supervises the service daemons while they are running. Amongst other things, it provides a reliable interface to send signals to service daemons without the need for pid-files, and a log facility with automatic log file rotation and disk space limits.

runit service supervision can run under sysv init, systemd or replace the init system completely. Complete init replacement is provided by ‘runit-init’ package. Users that want to take advantage of runit supervision under systemd or sysv init can directly install the ‘runit-run’ package.

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

sudo apt-get -y install runit

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

You can also use apt command to install runit.

sudo apt -y install runit

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

sudo aptitude install runit

Summary

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