lockfile-remove command not found

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

Introduction

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

lockfile-remove: command not found

or when using sudo you get the following error message

sudo: lockfile-remove: command not found

Solutions to lockfile-remove: command not found

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

In Ubuntu lockfile-remove 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-remove command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.