autopkgtest-virt-schroot command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
autopkgtest-virt-schroot: command not found
or when using sudo you get the following error message
sudo: autopkgtest-virt-schroot: command not found
Solutions to autopkgtest-virt-schroot: command not found
How To Fix autopkgtest-virt-schroot: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu autopkgtest-virt-schroot is provided by autopkgtest package.
autopkgtest is:
autopkgtest runs tests on binary packages. The tests are run on the package as installed on a testbed system (which may be found via a virtualisation or containment system). The tests are expected to be supplied in the corresponding Debian source package.
See autopkgtest(1) and /usr/share/doc/autopkgtest. Depending on which virtualization server you want to use, you need to install additional packages (schroot, lxc, lxd, or qemu-system)
For generating tests of well-known source packages such as Perl and Ruby libraries you should install the autodep8 package.
To fix this problem, we can install more using the command below.
sudo apt-get -y install autopkgtest
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install autopkgtest.
sudo apt -y install autopkgtest
Or if you have aptitude installed you can use the following command.
sudo aptitude install autopkgtest
Summary
In this tutorial we learn how to fix autopkgtest-virt-schroot command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.