xfce4-screensaver command not found

In this troubleshooting guide we learn how to fix xfce4-screensaver command not found error message

Introduction

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

xfce4-screensaver: command not found

or when using sudo you get the following error message

sudo: xfce4-screensaver: command not found

Solutions to xfce4-screensaver: command not found

How To Fix xfce4-screensaver: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu xfce4-screensaver is provided by xfce4-screensaver package.

xfce4-screensaver is:

Xfce Screensaver is a screen saver and locker that aims to have simple, sane, secure defaults and be well integrated with the Xfce desktop.

It is a port of MATE Screensaver, itself a port of GNOME Screensaver. It has been tightly integrated with the Xfce desktop, utilizing Xfce libraries and the Xfconf configuration backend.

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

sudo apt-get -y install xfce4-screensaver

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

You can also use apt command to install xfce4-screensaver.

sudo apt -y install xfce4-screensaver

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

sudo aptitude install xfce4-screensaver

Summary

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