dialog command not found

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

Introduction

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

dialog: command not found

or when using sudo you get the following error message

sudo: dialog: command not found

Solutions to dialog: command not found

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

In Ubuntu dialog is provided by dialog package.

dialog is:

This application provides a method of displaying several different types of dialog boxes from shell scripts. This allows a developer of a script to interact with the user in a much friendlier manner.

The following types of boxes are at your disposal: yes/no Typical query style box with “Yes” and “No” answer buttons menu A scrolling list of menu choices with single entry selection input Query style box with text entry field message Similar to the yes/no box, but with only an “Ok” button text A scrollable text box that works like a simple file viewer info A message display that allows asynchronous script execution checklist Similar to the menu box, but allowing multiple selections radiolist Checklist style box allowing single selections gauge Typical “progress report” style box tail Allows viewing the end of files (tail) that auto updates background tail Similar to tail but runs in the background. editbox Allows editing an existing file

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

sudo apt-get -y install dialog

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

You can also use apt command to install dialog.

sudo apt -y install dialog

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

sudo aptitude install dialog

Summary

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