i3lock command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
i3lock: command not found
or when using sudo you get the following error message
sudo: i3lock: command not found
Solutions to i3lock: command not found
How To Fix i3lock: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu i3lock is provided by i3lock package.
i3lock is:
i3lock is a simple screen locker like slock. After starting it, you will see a white screen (you can configure the color/an image). You can return to your screen by entering your password.
i3lock forks so you can combine it with an alias to suspend to RAM.
You can specify either a background color or a PNG image which will be displayed while your screen is locked.
You can specify whether i3lock should bell upon a wrong password.
i3lock uses PAM and therefore is compatible with LDAP etc.
To fix this problem, we can install more using the command below.
sudo apt-get -y install i3lock
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install i3lock.
sudo apt -y install i3lock
Or if you have aptitude installed you can use the following command.
sudo aptitude install i3lock
Summary
In this tutorial we learn how to fix i3lock command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.