canlock-mhp command not found

In this troubleshooting guide we learn how to fix canlock-mhp command not found error message

Introduction

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

canlock-mhp: command not found

or when using sudo you get the following error message

sudo: canlock-mhp: command not found

Solutions to canlock-mhp: command not found

How To Fix canlock-mhp: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu canlock-mhp is provided by canlock package.

canlock is:

Cancel locks are used by Usenet article posters to authenticate their authorship of an article. It may then by used by servers to prevent cancel and supersede abuse. The use of this feature remains the newsmaster’s decision.

This package contains a simple utility wrapping the canlock library, which may be used for both the generation and the verification of cancel locks, along with a message header parser and a header field parser.

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

sudo apt-get -y install canlock

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

You can also use apt command to install canlock.

sudo apt -y install canlock

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

sudo aptitude install canlock

Summary

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