capsule-nextflow command not found

In this troubleshooting guide we learn how to fix capsule-nextflow command not found error message

Introduction

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

capsule-nextflow: command not found

or when using sudo you get the following error message

sudo: capsule-nextflow: command not found

Solutions to capsule-nextflow: command not found

How To Fix capsule-nextflow: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu capsule-nextflow is provided by capsule-nextflow package.

capsule-nextflow is:

A capsule is a single executable JAR that contains everything an application needs to run either in the form of embedded files or as declarative metadata. It can contain JAR artifacts, dependencies and resources, native libraries, the required Java Runtime Environment version, the Java Virtual Machine flags required to run the application well, Java or native agents and more. In short, a capsule is a self-contained JAR that knows everything there is to know about how to run the application the way it is meant to run.

One way of thinking about a capsule is as a fat JAR on steroids (that also allows native libraries and never interferes with your dependencies) and a declarative startup script rolled into one; another, is to see it is as the deploy-time counterpart to your build tool. Just as a build tool manages your build, Capsule manages the launching of your application.

This package contains a fork of the original capsule project. This fork is suited as a dependency of nextflow.

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

sudo apt-get -y install capsule-nextflow

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

You can also use apt command to install capsule-nextflow.

sudo apt -y install capsule-nextflow

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

sudo aptitude install capsule-nextflow

Summary

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