cron-apt command not found

In this troubleshooting guide we learn how to fix cron-apt command not found error message

Introduction

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

cron-apt: command not found

or when using sudo you get the following error message

sudo: cron-apt: command not found

Solutions to cron-apt: command not found

How To Fix cron-apt: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu cron-apt is provided by cron-apt package.

cron-apt is:

Contains a tool that is run by a cron job at regular intervals. By default it just updates the package list and downloads new packages without installing. You can instruct it to run anything that you can do with apt-get (or aptitude).

It can optionally send mail to the system administrator on errors, log to syslog or a separate log file.

Observe that this tool may be a security risk, so you should not set it to do more than necessary. Automatic upgrade of all packages is NOT recommended unless you are in full control of the package repository.

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

sudo apt-get -y install cron-apt

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

You can also use apt command to install cron-apt.

sudo apt -y install cron-apt

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

sudo aptitude install cron-apt

Summary

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