confget command not found

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

Introduction

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

confget: command not found

or when using sudo you get the following error message

sudo: confget: command not found

Solutions to confget: command not found

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

In Ubuntu confget is provided by confget package.

confget is:

The confget utility examines a INI-style configuration file and retrieves the value of the specified variables from the specified section. Its intended use is to let shell scripts use the same INI-style configuration files as other programs, to avoid duplication of data.

The confget utility may retrieve the values of one or more variables, list all the variables in a specified section, list only those whose names or values match a specified pattern (shell glob or regular expression), or check if a variable is present in the file at all. It has a “shell-quoting” output mode that quotes the variable values in a way suitable for passing them directly to a Bourne-style shell.

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

sudo apt-get -y install confget

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

You can also use apt command to install confget.

sudo apt -y install confget

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

sudo aptitude install confget

Summary

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