chrootuid command not found

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

Introduction

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

chrootuid: command not found

or when using sudo you get the following error message

sudo: chrootuid: command not found

Solutions to chrootuid: command not found

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

In Ubuntu chrootuid is provided by chrootuid package.

chrootuid is:

Chrootuid makes it easy to run a network service at low privilege level and with restricted file system access. The daemons have access only to their own directory tree, and run under a low-privileged userid.

In the past it has been used to run the gopher and www (world-wide web) network. It can be used nowadays also for proxy servers. The arrangement greatly reduces the impact of possible loopholes in network software.

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

sudo apt-get -y install chrootuid

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

You can also use apt command to install chrootuid.

sudo apt -y install chrootuid

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

sudo aptitude install chrootuid

Summary

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