debspawn command not found

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

Introduction

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

debspawn: command not found

or when using sudo you get the following error message

sudo: debspawn: command not found

Solutions to debspawn: command not found

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

In Ubuntu debspawn is provided by debspawn package.

debspawn is:

Debspawn is a tool to build Debian packages in an isolated environment, using systemd-nspawn containers. By using containers, Debspawn can isolate builds from the host system much better than traditional chroot-based build environments could.

Debspawn is designed to be both easy to use by humans, as well as easy to integrate into an automated package build workflow.

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

sudo apt-get -y install debspawn

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

You can also use apt command to install debspawn.

sudo apt -y install debspawn

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

sudo aptitude install debspawn

Summary

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