lxc-update-config command not found

In this troubleshooting guide we learn how to fix lxc-update-config command not found error message

Introduction

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

lxc-update-config: command not found

or when using sudo you get the following error message

sudo: lxc-update-config: command not found

Solutions to lxc-update-config: command not found

How To Fix lxc-update-config: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu lxc-update-config 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-update-config command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.