snlockf command not found

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

Introduction

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

snlockf: command not found

or when using sudo you get the following error message

sudo: snlockf: command not found

Solutions to snlockf: command not found

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

In Ubuntu snlockf is provided by sn package.

sn is:

sn is a small news system for small sites serving perhaps a few dozen newsgroups, and with a slow connection to the internet. It is similar to leafnode (ftp.troll.no, by Arnt Gulbrandsen). The target user is a home or SOHO with a single modem connection to the Internet, maybe running IP masq or similar, and serving a few workstations.

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

sudo apt-get -y install sn

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

You can also use apt command to install sn.

sudo apt -y install sn

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

sudo aptitude install sn

Summary

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