Skip to content

command-not-found package in Ubuntu

2007 March 16
by Lionel Porcheron

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 Responses Post a comment
  1. Titom permalink
    March 16, 2007

    Oh yes. Trop bien. J’aurais plus besoin de faire appel à tes services maintenant. :-P

  2. Titom permalink
    March 16, 2007

    Oh yes. too good. I won’t need your help anymore now. :-P

    PS : English is better.

  3. lionel permalink
    March 16, 2007

    Titom, what a pity that you were forced by your team mates to use zsh: it does not work with zsh ;-)

  4. Titom permalink
    March 16, 2007

    So I will still need your help. Great. :-)

  5. nico permalink
    March 16, 2007

    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. adi permalink
    December 3, 2007

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

Leave a Reply

Note: You may use basic HTML in your comments. Your email address will not be published.

Subscribe to this comment feed via RSS