cgdb command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
cgdb: command not found
or when using sudo you get the following error message
sudo: cgdb: command not found
Solutions to cgdb: command not found
How To Fix cgdb: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu cgdb is provided by cgdb package.
cgdb is:
CGDB is a curses frontend to the GNU Debugger (GDB). The goal of CGDB is to be lightweight and responsive; not encumbered with unnecessary features.
The interface is designed to deliver the familiar GDB text interface, with a split screen showing the source as it executes. The UI is modeled on the classic Unix text editor, vi. Those familiar with vi should feel right at home using CGDB.
Some features offered by CGDB are:
- Syntax-highlighted source window
- Visual breakpoint setting
- Keyboard shortcuts for common functions
- Searching source window (using regexp)
To fix this problem, we can install more using the command below.
sudo apt-get -y install cgdb
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install cgdb.
sudo apt -y install cgdb
Or if you have aptitude installed you can use the following command.
sudo aptitude install cgdb
Summary
In this tutorial we learn how to fix cgdb command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.