How to Install and Uninstall command-not-found Package on Ubuntu 20.04 LTS (Focal Fossa)

Last updated: November 26,2024

1. Install "command-not-found" package

This guide covers the steps necessary to install command-not-found on Ubuntu 20.04 LTS (Focal Fossa)

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

2. Uninstall "command-not-found" package

Please follow the guidance below to uninstall command-not-found on Ubuntu 20.04 LTS (Focal Fossa):

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

3. Information about the command-not-found package on Ubuntu 20.04 LTS (Focal Fossa)

Package: command-not-found
Architecture: all
Version: 20.04.6
Priority: standard
Section: admin
Origin: Ubuntu
Maintainer: Michael Vogt
Original-Maintainer: Zygmunt Krynicki
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 36
Depends: python3-commandnotfound (= 20.04.6)
Suggests: snapd
Filename: pool/main/c/command-not-found/command-not-found_20.04.6_all.deb
Size: 5264
MD5sum: 23668f970e3f6e011b96ca848f467e22
SHA1: 7d2e6416147f25a92949f8a69ada7a238c32273b
SHA256: 09099bce2c66e45f87337a90faf3ac4bf9b206f5326a37aea19d6e23538ba01c
SHA512: eb08742ff81ae2da983990bc33feefcc1d2fdd4546127b0f514dc49a745490a07f7e2ca3e72a980e1a061cede12d4ffc392822f2a10d9ca157a248c4f9c31677
Description: Suggest installation of packages in interactive bash sessions
Description-md5: add5e86211cf27a4446f18bd0c777aa8
Task: standard

Package: command-not-found
Architecture: all
Version: 20.04.2
Priority: standard
Section: admin
Origin: Ubuntu
Maintainer: Michael Vogt
Original-Maintainer: Zygmunt Krynicki
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 35
Depends: python3-commandnotfound (= 20.04.2)
Suggests: snapd
Filename: pool/main/c/command-not-found/command-not-found_20.04.2_all.deb
Size: 5240
MD5sum: e0a92a618c94f359e6ed4f178ef5e798
SHA1: addf392df5022cadb18ed43a532d761adcf7cb65
SHA256: a16aeab1e7c7d74d91509bd1722715f11b41572ff21de2ec9dfb8739f71452a2
Description: Suggest installation of packages in interactive bash sessions
Description-md5: add5e86211cf27a4446f18bd0c777aa8
Task: standard