vlock command not found

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

Introduction

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

vlock: command not found

or when using sudo you get the following error message

sudo: vlock: command not found

Solutions to vlock: command not found

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

In Ubuntu vlock is provided by vlock package.

vlock is:

vlock either locks the current terminal (which may be any kind of terminal, local or remote), or locks the entire virtual console system, completely disabling all console access. vlock gives up these locks when either the password of the user who started vlock or the root password is typed.

vlock is interesting on multi user system environments. vlock allows users to lock their sessions while other users can still use the same system via other virtual terminal.

vlock is very useful for users security.

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

sudo apt-get -y install vlock

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

You can also use apt command to install vlock.

sudo apt -y install vlock

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

sudo aptitude install vlock

Summary

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