h2cli command not found

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

Introduction

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

h2cli: command not found

or when using sudo you get the following error message

sudo: h2cli: command not found

Solutions to h2cli: command not found

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

In Ubuntu h2cli is provided by hydrogen package.

hydrogen is:

Hydrogen is an advanced drum machine which provides a professional, yet simple and intuitive, pattern-based drum programming interface.

General features:

  • Very user-friendly, modular, fast and intuitive graphical interface based on Qt 5.
  • Sample-based stereo audio engine, with import of sound samples in .wav, .au and .aiff formats.
  • Support of samples in compressed FLAC file.

Sequencer and mixer features:

  • Pattern-based sequencer, with unlimited number of patterns and ability to chain patterns into a song.
  • Up to 64 ticks per pattern with individual level per event and variable pattern length.
  • 32 instrument tracks with volume, mute, solo, pan capabilities.
  • Multi layer support for instruments (up to 16 samples for each instrument).
  • Ability to import/export song files.
  • Unique human velocity, human time, pitch and swing functions.
  • Multiple patterns playing at once.

Other features:

  • JACK, ALSA, PortAudio, OSS and PulseAudio audio drivers.
  • ALSA MIDI and PortMidi input with assignable midi-in channel (1..16, ALL).
  • Import/export of drumkits.
  • Export song to wav file.
  • Export song to midi file.

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

sudo apt-get -y install hydrogen

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

You can also use apt command to install hydrogen.

sudo apt -y install hydrogen

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

sudo aptitude install hydrogen

Summary

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