The package command-not-found is now part of the default Ubuntu Desktop installation. What does the command-not-found package do ? Let’s take an example:

lionel@ouessant:~$ mutt
The program 'mutt' is currently not installed. You can install it by typing:
sudo apt-get install mutt
bash: mutt: command not found

When a command is not found in your computer, it search in a database in which package this command is and give you the command to install it.
Great isn’t it ?

6 thoughts on “command-not-found package in Ubuntu

  1. Oh yes. Trop bien. J’aurais plus besoin de faire appel à tes services maintenant. 😛

  2. Oh yes. too good. I won’t need your help anymore now. 😛

    PS : English is better.

  3. Titom, what a pity that you were forced by your team mates to use zsh: it does not work with zsh 😉

  4. So I will still need your help. Great. 🙂

  5. nicolasl@bumbo ~ $ sudo apt-get install command-not-found
    Lecture des listes de paquets… Fait
    Paramétrage de command-not-found (0.1.0) …

    nicolasl@bumbo ~ $ mutt
    zsh: command not found: mutt

    arg ! :p

  6. You need to source
    /etc/zsh_command_not_found for this feature to work with zsh

Share Your Thought