i2cget command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
i2cget: command not found
or when using sudo you get the following error message
sudo: i2cget: command not found
Solutions to i2cget: command not found
How To Fix i2cget: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu i2cget is provided by i2c-tools package.
i2c-tools is:
This package contains a heterogeneous set of I2C tools for Linux: a bus probing tool, a chip dumper, register-level access helpers, EEPROM decoding scripts, and more.
To fix this problem, we can install more using the command below.
sudo apt-get -y install i2c-tools
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install i2c-tools.
sudo apt -y install i2c-tools
Or if you have aptitude installed you can use the following command.
sudo aptitude install i2c-tools
Summary
In this tutorial we learn how to fix i2cget command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.