srapath command not found

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

Introduction

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

srapath: command not found

or when using sudo you get the following error message

sudo: srapath: command not found

Solutions to srapath: command not found

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

In Ubuntu srapath is provided by sra-toolkit package.

sra-toolkit is:

Tools for reading the SRA archive, generally by converting individual runs into some commonly used format such as fastq.

The textual dumpers “sra-dump” and “vdb-dump” are provided in this release as an aid in visual inspection. It is likely that their actual output formatting will be changed in the near future to a stricter, more formalized representation[s]. PLEASE DO NOT RELY UPON THE OUTPUT FORMAT SEEN IN THIS RELEASE.

Other tools distributed in this package are: abi-dump, abi-load align-info bam-load cache-mgr cg-load copycat fasterq-dump fastq-dump, fastq-load helicos-load illumina-dump, illumina-load kar kdbmeta latf-load pacbio-load prefetch rcexplain remote-fuser sff-dump, sff-load sra-pileup, sra-sort, sra-stat, srapath srf-load test-sra vdb-config, vdb-copy, vdb-decrypt, vdb-encrypt, vdb-get, vdb-lock, vdb-passwd, vdb-unlock, vdb-validate

The “help” information will be improved in near future releases, and the tool options will become standardized across the set. More documentation will also be provided documentation on the NCBI web site.

Tool options may change in the next release. Version 1 tool options will remain supported wherever possible in order to preserve operation of any existing scripts.

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

sudo apt-get -y install sra-toolkit

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

You can also use apt command to install sra-toolkit.

sudo apt -y install sra-toolkit

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

sudo aptitude install sra-toolkit

Summary

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