print_header.sh command not found

In this troubleshooting guide we learn how to fix print_header.sh command not found error message

Introduction

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

print_header.sh: command not found

or when using sudo you get the following error message

sudo: print_header.sh: command not found

Solutions to print_header.sh: command not found

How To Fix print_header.sh: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu print_header.sh is provided by ruby-knapsack package.

ruby-knapsack is:

Knapsack splits tests across CI nodes based on each test file’s time execution and makes sure that tests will run comparable time on each node.

It generates a test time execution report and uses it for future test runs.

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

sudo apt-get -y install ruby-knapsack

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

You can also use apt command to install ruby-knapsack.

sudo apt -y install ruby-knapsack

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

sudo aptitude install ruby-knapsack

Summary

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