How to Install and Uninstall command-not-found Package on Ubuntu 16.04 LTS (Xenial Xerus)

Last updated: November 26,2024

1. Install "command-not-found" package

Please follow the instructions below to install command-not-found on Ubuntu 16.04 LTS (Xenial Xerus)

$ sudo apt update $ sudo apt install command-not-found

2. Uninstall "command-not-found" package

This guide covers the steps necessary to uninstall command-not-found on Ubuntu 16.04 LTS (Xenial Xerus):

$ sudo apt remove command-not-found $ sudo apt autoclean && sudo apt autoremove

3. Information about the command-not-found package on Ubuntu 16.04 LTS (Xenial Xerus)

Package: command-not-found
Architecture: all
Version: 0.3ubuntu16.04.2
Priority: standard
Section: admin
Origin: Ubuntu
Maintainer: Michael Vogt
Original-Maintainer: Zygmunt Krynicki
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 27
Depends: python3-commandnotfound (>= 0.3ubuntu7)
Filename: pool/main/c/command-not-found/command-not-found_0.3ubuntu16.04.2_all.deb
Size: 3696
MD5sum: da266c5bdd0f0af6f3030f4b10e263dc
SHA1: 72032a0d62fec1ca6dabd99cfa5f8a6917636ccb
SHA256: 77b5bf2a4151adc7c462e9d1404ccaff46bace7b344b9347e069e206dbebbbdd
SHA512: b2076bbd9eea605bedbed1903fa333661c7f84f4a2c7b004665bac8fe5cd84b731542e3e4afce3fbbb4d2125f30425bcd5d31dd138353992ea49ae50236ba6d5
Description-en: 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.
Description-md5: add5e86211cf27a4446f18bd0c777aa8
Task: standard
Supported: 5y

Package: command-not-found
Priority: standard
Section: admin
Installed-Size: 26
Maintainer: Michael Vogt
Original-Maintainer: Zygmunt Krynicki
Architecture: all
Version: 0.3ubuntu16.04
Depends: python3-commandnotfound (>= 0.3ubuntu7)
Filename: pool/main/c/command-not-found/command-not-found_0.3ubuntu16.04_all.deb
Size: 3698
MD5sum: 14b65ef82102e6269b92978c63fd88a3
SHA1: 7c9692802c33028fe3503f6215ce4325802bcd28
SHA256: b8077ff8b0be5207d2c0b6276ad7289295d43a8c195b103660beaafecf24ba6d
Description-en: 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.
Description-md5: add5e86211cf27a4446f18bd0c777aa8
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu
Supported: 5y
Task: standard