gnome-screensaver command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
gnome-screensaver: command not found
or when using sudo you get the following error message
sudo: gnome-screensaver: command not found
Solutions to gnome-screensaver: command not found
How To Fix gnome-screensaver: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu gnome-screensaver is provided by gnome-screensaver package.
gnome-screensaver is:
gnome-screensaver is a simple screen saver and screen lock, used in older versions of the GNOME desktop environment.
It is designed to support, among other things:
- the ability to lock down configuration settings
- translation into other languages
- user switching
This package is not necessary in the GNOME desktop environment, because GNOME Shell contains its own screen lock implementation. It can be used with alternative desktop environments.
To fix this problem, we can install more using the command below.
sudo apt-get -y install gnome-screensaver
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install gnome-screensaver.
sudo apt -y install gnome-screensaver
Or if you have aptitude installed you can use the following command.
sudo aptitude install gnome-screensaver
Summary
In this tutorial we learn how to fix gnome-screensaver command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.