wrapper command not found

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

Introduction

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

wrapper: command not found

or when using sudo you get the following error message

sudo: wrapper: command not found

Solutions to wrapper: command not found

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

In Ubuntu wrapper is provided by service-wrapper package.

service-wrapper is:

The Java Service Wrapper makes very easy to install a Java Application as a daemon process on Unix systems. The Wrapper monitors a JVM (Java Virtual Machine) process and automatically restarts it if it that the JVM has crashed or hung. This process takes just a few seconds once the Wrapper has decided there is a problem. It also gives the ability to handle process priority.

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

sudo apt-get -y install service-wrapper

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

You can also use apt command to install service-wrapper.

sudo apt -y install service-wrapper

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

sudo aptitude install service-wrapper

Summary

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