lockfile-check command not found

In this troubleshooting guide we learn how to fix lockfile-check command not found error message

Introduction

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

lockfile-check: command not found

or when using sudo you get the following error message

sudo: lockfile-check: command not found

Solutions to lockfile-check: command not found

How To Fix lockfile-check: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu lockfile-check is provided by lockfile-progs package.

lockfile-progs is:

This package includes several programs to safely lock and unlock files and mailboxes from the command line. These include:

lockfile-create lockfile-remove lockfile-touchlock mail-lock mail-unlock mail-touchlock

These programs use liblockfile to perform the file locking and unlocking, so they are guaranteed compatible with Debian’s file locking policies.

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

sudo apt-get -y install lockfile-progs

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

You can also use apt command to install lockfile-progs.

sudo apt -y install lockfile-progs

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

sudo aptitude install lockfile-progs

Summary

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