codeblocks command not found

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

Introduction

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

codeblocks: command not found

or when using sudo you get the following error message

sudo: codeblocks: command not found

Solutions to codeblocks: command not found

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

In Ubuntu codeblocks is provided by codeblocks package.

codeblocks is:

Code::Blocks is a cross-platform Integrated Development Environment (IDE). It is based on a self-developed plugin framework allowing unlimited extensibility. Most of its functionality is already provided by plugins. Plugins included in the base package are: * Compiler frontend to many free compilers * Debugger frontend for GDB * Source formatter (based on AStyle) * Wizard to create new C++ classes * Code-completion / symbols-browser (work in progress) * Default MIME handler * Wizard to create new Code::Blocks plugins * To-do list * Extensible wizard based on scripts * Autosave (saves your work in the unfortunate case of a crash)

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

sudo apt-get -y install codeblocks

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

You can also use apt command to install codeblocks.

sudo apt -y install codeblocks

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

sudo aptitude install codeblocks

Summary

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