kpartx command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
kpartx: command not found
or when using sudo you get the following error message
sudo: kpartx: command not found
Solutions to kpartx: command not found
How To Fix kpartx: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu kpartx is provided by kpartx package.
kpartx is:
Kpartx can be used to set up device mappings for the partitions of any partitioned block device.
It is part of the Linux multipath-tools, but is useful on any device-mapper using system.
To fix this problem, we can install more using the command below.
sudo apt-get -y install kpartx
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install kpartx.
sudo apt -y install kpartx
Or if you have aptitude installed you can use the following command.
sudo aptitude install kpartx
Summary
In this tutorial we learn how to fix kpartx command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.