sg_safte command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
sg_safte: command not found
or when using sudo you get the following error message
sudo: sg_safte: command not found
Solutions to sg_safte: command not found
How To Fix sg_safte: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu sg_safte is provided by sg3-utils package.
sg3-utils is:
Most OSes have SCSI pass-through interfaces that enable user space programs to send SCSI commands to a device and fetch the response. With SCSI to ATA Translation (SAT) many ATA disks now can process SCSI commands. Typically each utility in this package implements one SCSI command. See the draft standards at www.t10.org for SCSI command definitions plus SAT. ATA commands are defined in the draft standards at www.t13.org . For a mapping between supported SCSI and ATA commands and utility names in this package see the COVERAGE file.
To fix this problem, we can install more using the command below.
sudo apt-get -y install sg3-utils
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install sg3-utils.
sudo apt -y install sg3-utils
Or if you have aptitude installed you can use the following command.
sudo aptitude install sg3-utils
Summary
In this tutorial we learn how to fix sg_safte command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.