lxc-destroy command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
lxc-destroy: command not found
or when using sudo you get the following error message
sudo: lxc-destroy: command not found
Solutions to lxc-destroy: command not found
How To Fix lxc-destroy: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu lxc-destroy is provided by lxc-utils package.
lxc-utils is:
Containers are insulated areas inside a system, which have their own namespace for filesystem, network, PID, IPC, CPU and memory allocation and which can be created using the Control Group and Namespace features included in the Linux kernel.
This package provides the lxc-* tools, which can be used to start a single daemon in a container, or to boot an entire “containerized” system, and to manage and debug your containers.
To fix this problem, we can install more using the command below.
sudo apt-get -y install lxc-utils
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install lxc-utils.
sudo apt -y install lxc-utils
Or if you have aptitude installed you can use the following command.
sudo aptitude install lxc-utils
Summary
In this tutorial we learn how to fix lxc-destroy command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.