dbconfig-generate-include command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
dbconfig-generate-include: command not found
or when using sudo you get the following error message
sudo: dbconfig-generate-include: command not found
Solutions to dbconfig-generate-include: command not found
How To Fix dbconfig-generate-include: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu dbconfig-generate-include is provided by dbconfig-common package.
dbconfig-common is:
This package contains the core of the dbconfig-common framework. This framework presents a policy and implementation for managing various databases used by applications included in Debian packages.
It can:
- support MySQL/MariaDB, PostgreSQL, and SQLite3 based applications;
- create or remove databases and database users;
- access local or remote databases;
- upgrade/modify databases when upstream changes database structure;
- generate config files in many formats with the database info;
- import configs from packages previously managing databases on their own;
- prompt users with a set of normalized, pre-translated questions;
- handle failures gracefully, with an option to retry;
- do all the hard work automatically;
- work for package maintainers with little effort on their part;
- work for local admins with little effort on their part;
- comply with an agreed upon set of standards for behavior;
- do absolutely nothing if that is the whim of the local admin;
- perform all operations from within the standard flow of package management (no additional skill is required of the local admin).
To fix this problem, we can install more using the command below.
sudo apt-get -y install dbconfig-common
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install dbconfig-common.
sudo apt -y install dbconfig-common
Or if you have aptitude installed you can use the following command.
sudo aptitude install dbconfig-common
Summary
In this tutorial we learn how to fix dbconfig-generate-include command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.