dh_cme_upgrade command not found

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

Introduction

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

dh_cme_upgrade: command not found

or when using sudo you get the following error message

sudo: dh_cme_upgrade: command not found

Solutions to dh_cme_upgrade: command not found

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

In Ubuntu dh_cme_upgrade is provided by cme package.

cme is:

cme provides a command to check or edit configuration data with Config::Model.

cme and Config::Model are quite modular: the configuration data that you can edit depend on installed packages. I.e.:

  • ssh client or ssh daemon config: libconfig-model-openssh-perl
  • approx config: libconfig-model-approx-perl
  • lcdproc config: libconfig-model-lcdproc-perl
  • popcon config: provided with libconfig-model-perl
  • systemd config: provided with libconfig-model-systemd-perl

Some applications can be handled by cme:

  • Debian package files: libconfig-model-dpkg-perl
  • multistrap files: provided with libconfig-model-perl

You can also choose a user interface:

  • graphical, based on Tk: libconfig-model-tkui-perl
  • curses based: libconfig-model-cursesui-perl
  • simple shell: provided with libconfig-model-perl

Last but not least, you can also take a stab at maintaining configuration model with libconfig-model-itself-perl.

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

sudo apt-get -y install cme

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

You can also use apt command to install cme.

sudo apt -y install cme

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

sudo aptitude install cme

Summary

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