test_version command not found

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

Introduction

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

test_version: command not found

or when using sudo you get the following error message

sudo: test_version: command not found

Solutions to test_version: command not found

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

In Ubuntu test_version is provided by libtest-hasversion-perl package.

libtest-hasversion-perl is:

Do you wanna check that every one of your Perl modules in a distribution has a version number? You wanna make sure you don’t forget the brand new modules you just added? Well, that’s the module you have been looking for. Use it!

Do you wanna check someone else’s distribution to make sure the author have not committed the sin of leaving Perl modules without a version that can be used to tell if you have this or that feature? Test::HasVersion is also for you, nasty little fellow.

There’s a script test_version which is installed with this distribution. You may invoke it from within the root directory of a distribution you just unpacked, and it will check every .pm file in the directory and under lib/ (if any).

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

sudo apt-get -y install libtest-hasversion-perl

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

You can also use apt command to install libtest-hasversion-perl.

sudo apt -y install libtest-hasversion-perl

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

sudo aptitude install libtest-hasversion-perl

Summary

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