i3blocks command not found

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

Introduction

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

i3blocks: command not found

or when using sudo you get the following error message

sudo: i3blocks: command not found

Solutions to i3blocks: command not found

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

In Ubuntu i3blocks is provided by i3blocks package.

i3blocks is:

Status line for the i3 window manager and i3bar that handles clicks, signals and language-agnostic user scripts.

The content of each block (e.g. time, battery status, network state, …) is the output of a command provided by the user. Blocks are updated on click, at a given interval of time or on a given signal, also specified by the user.

It aims to respect the i3bar protocol, providing customization such as text alignment, urgency, color, and more.

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

sudo apt-get -y install i3blocks

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

You can also use apt command to install i3blocks.

sudo apt -y install i3blocks

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

sudo aptitude install i3blocks

Summary

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