command-not-found - suggest installation of missing software packages in terminal
Your support makes all the difference!
We believe security software like Kicksecure needs to remain open source and independent. Would you help sustain and grow the project? Learn more about our 10 year success story and maybe DONATE!
HowTo: install command-not-found
Quote Debian package
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.
The order in which these commands are run matter,  but the process is idempotent. This means it is possible to re-apply all of the following steps.
/etc/apt/apt.conf.d/30usability-misc because it contains settings that speed up APT but break
sudo rm -f /etc/apt/apt.conf.d/30usability-misc
command-not-found. To accomplish that, the following steps A. to D. need to be done.
A. Update the package lists.
sudo apt update
B. Upgrade the system.
sudo apt full-upgrade
C. Install the
apt command line parameter
--no-install-recommends is in most cases optional.
sudo apt install --no-install-recommends command-not-found
The procedure of installing
command-not-found is complete.
update-command-not-found with root rights.
update-command-not-found has been completed.
local variable 'cnf' referenced before assignment
- command-not-found - WARNING:root:could not open file '/etc/apt/sources.list'
- Speeding up "apt update" with Acquire::Languages=none and Contents-deb::DefaultEnabled=false - It's so much faster!
apt updatecannot be skipped since package contents files need to be downloaded.
command-not-foundbecause it requires