scsi_ch_swp command not found

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

Introduction

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

scsi_ch_swp: command not found

or when using sudo you get the following error message

sudo: scsi_ch_swp: command not found

Solutions to scsi_ch_swp: command not found

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

In Ubuntu scsi_ch_swp is provided by sdparm package.

sdparm is:

The sdparm utility outputs and in some cases modifies SCSI device parameters. It can be used to output and modify parameters on any device that uses a SCSI command set. Apart from SCSI disks, such devices include CD/DVD drives (irrespective of transport), SCSI and ATAPI tape drives and SCSI enclosures.

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

sudo apt-get -y install sdparm

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

You can also use apt command to install sdparm.

sudo apt -y install sdparm

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

sudo aptitude install sdparm

Summary

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