snooze command not found

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

Introduction

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

snooze: command not found

or when using sudo you get the following error message

sudo: snooze: command not found

Solutions to snooze: command not found

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

In Ubuntu snooze is provided by snooze package.

snooze is:

snooze is a tool for waiting until a particular time and then running a command. Together with a service supervision system such as runit, this can be used to replace cron(8).

Benefits over cron:

  • mnemonic syntax
  • no overlapping job runs possible
  • filtering by ISO week and day of year
  • due to supervision, no centralized daemon required
  • due to supervision, can easily disable jobs or force their execution instantly
  • due to supervision, have custom logs
  • due to no centralized daemon, no fuzzing with multiple users/permissions
  • very robust with respect to external time changes
  • can use a file timestamp to ensure minimum waiting time between two runs, even across reboots
  • randomized delays (some cron have that)
  • variable slack (no need for anacron)
  • ad-hoc usage possible, just run the program from command line

Benefits over runwhen:

  • less confusing usage (arguably)
  • filtering by ISO week and day of year
  • zero dependencies

Benefits over uschedule:

  • no centralized daemon required
  • filtering by ISO week and day of year

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

sudo apt-get -y install snooze

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

You can also use apt command to install snooze.

sudo apt -y install snooze

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

sudo aptitude install snooze

Summary

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