unattended-upgrade command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
unattended-upgrade: command not found
or when using sudo you get the following error message
sudo: unattended-upgrade: command not found
Solutions to unattended-upgrade: command not found
How To Fix unattended-upgrade: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu unattended-upgrade is provided by unattended-upgrades package.
unattended-upgrades is:
This package can download and install security upgrades automatically and unattended, taking care to only install packages from the configured APT source, and checking for dpkg prompts about configuration file changes.
This script is the backend for the APT::Periodic::Unattended-Upgrade option.
To fix this problem, we can install more using the command below.
sudo apt-get -y install unattended-upgrades
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install unattended-upgrades.
sudo apt -y install unattended-upgrades
Or if you have aptitude installed you can use the following command.
sudo aptitude install unattended-upgrades
Summary
In this tutorial we learn how to fix unattended-upgrade command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.