schroot command not found

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

Introduction

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

schroot: command not found

or when using sudo you get the following error message

sudo: schroot: command not found

Solutions to schroot: command not found

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

In Ubuntu schroot is provided by schroot package.

schroot is:

schroot allows users to execute commands or interactive shells in different chroots. Any number of named chroots may be created, and access permissions given to each, including root access for normal users, on a per-user or per-group basis. Additionally, schroot can switch to a different user in the chroot, using PAM for authentication and authorisation. All operations are logged for security.

Several different types of chroot are supported, including normal directories in the filesystem, and also block devices. Sessions, persistent chroots created on the fly from files (tar with optional compression) and Btrfs, ZFS, and LVM snapshots are also supported.

schroot supports kernel personalities, allowing the programs run inside the chroot to have a different personality. For example, running 32-bit chroots on 64-bit systems, or even running binaries from alternative operating systems such as SVR4 or Xenix.

schroot also integrates with sbuild, to allow building packages with all supported chroot types, including session-managed chroot types such as Btrfs, ZFS, and LVM snapshots.

schroot shares most of its options with dchroot, but offers vastly more functionality.

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

sudo apt-get -y install schroot

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

You can also use apt command to install schroot.

sudo apt -y install schroot

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

sudo aptitude install schroot

Summary

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