How to Install command-not-found in Ubuntu 18.04

Install command-not-found by entering the following commands in the terminal:

sudo apt update
sudo apt install command-not-found


Suggest installation of packages in interactive bash sessions

This package will install a handler for command_not_found that looks up programs not currently installed but available from the repositories.

Version: 18.04.4

Section: admin