nvidia-sleep.sh command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
nvidia-sleep.sh: command not found
or when using sudo you get the following error message
sudo: nvidia-sleep.sh: command not found
Solutions to nvidia-sleep.sh: command not found
How To Fix nvidia-sleep.sh: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu nvidia-sleep.sh is provided by nvidia-kernel-common-470-server package.
nvidia-kernel-common-470-server is:
This package installs all the optional accessory files for the NVIDIA kernel module.
Install this package if you want to blacklist any conflicting kernel modules, and if you want udev to load the the NVIDIA kernel modules, and to create the uvm devices automatically.
To fix this problem, we can install more using the command below.
sudo apt-get -y install nvidia-kernel-common-470-server
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install nvidia-kernel-common-470-server.
sudo apt -y install nvidia-kernel-common-470-server
Or if you have aptitude installed you can use the following command.
sudo aptitude install nvidia-kernel-common-470-server
Summary
In this tutorial we learn how to fix nvidia-sleep.sh command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.