debian-reference command not found

In this troubleshooting guide we learn how to fix debian-reference command not found error message

Introduction

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

debian-reference: command not found

or when using sudo you get the following error message

sudo: debian-reference: command not found

Solutions to debian-reference: command not found

How To Fix debian-reference: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu debian-reference is provided by debian-reference-common package.

debian-reference-common is:

This Debian Reference is intended to provide a broad overview of the Debian system as a post-installation user’s guide. It covers many aspects of system administration through shell-command examples for non-developers.

This only provides menu functionality and other common files.

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

sudo apt-get -y install debian-reference-common

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

You can also use apt command to install debian-reference-common.

sudo apt -y install debian-reference-common

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

sudo aptitude install debian-reference-common

Summary

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