iscsi-test-cu command not found

In this troubleshooting guide we learn how to fix iscsi-test-cu command not found error message

Introduction

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

iscsi-test-cu: command not found

or when using sudo you get the following error message

sudo: iscsi-test-cu: command not found

Solutions to iscsi-test-cu: command not found

How To Fix iscsi-test-cu: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu iscsi-test-cu is provided by libiscsi-bin package.

libiscsi-bin is:

Libiscsi is a clientside library to implement the iSCSI protocol that can be used to access resource of an iSCSI Target.

The library is fully async with regards to iscsi commands and scsi tasks, but a sync layer is also provided for ease of use for simpler applications.

This package contains a set of useful iscsi utilities such as logging in to and enumerating all targets on a portal and all devices of a target, all built on top of libiscsi.

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

sudo apt-get -y install libiscsi-bin

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

You can also use apt command to install libiscsi-bin.

sudo apt -y install libiscsi-bin

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

sudo aptitude install libiscsi-bin

Summary

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