sv command not found

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

Introduction

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

sv: command not found

or when using sudo you get the following error message

sudo: sv: command not found

Solutions to sv: command not found

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

In Ubuntu sv 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 sv command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.