snakemake-bash-completion command not found

In this troubleshooting guide we learn how to fix snakemake-bash-completion command not found error message

Introduction

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

snakemake-bash-completion: command not found

or when using sudo you get the following error message

sudo: snakemake-bash-completion: command not found

Solutions to snakemake-bash-completion: command not found

How To Fix snakemake-bash-completion: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu snakemake-bash-completion is provided by snakemake package.

snakemake is:

Build systems like GNU Make are frequently used to create complicated workflows, e.g. in bioinformatics. This project aims to reduce the complexity of creating workflows by providing a clean and modern domain specific language (DSL) in Python style, together with a fast and comfortable execution environment.

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

sudo apt-get -y install snakemake

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

You can also use apt command to install snakemake.

sudo apt -y install snakemake

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

sudo aptitude install snakemake

Summary

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