Install libfile-flock-perl by entering the following commands in the terminal:
sudo apt update sudo apt install libfile-flock-perl
Description:
file locking with flock
Lock files using the flock() call. Locks can be created by new'ing a File::Flock object and are automatically removed when the object goes out of scope.
Homepage: https://metacpan.org/release/File-Flock
Version: 2014.01-2
Section: universe/perl