Suggests installing a package that is already installed

Bug #681495 reported by Paul Sladen
20
This bug affects 4 people
Affects Status Importance Assigned to Milestone
command-not-found (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: command-not-found

$ dpkg -l unity
...
ii unity 3.1.4-0ubuntu4 Unity Interface for Ubuntu Netbook Edition

$ unity
The program 'unity' is currently not installed. You can install it by typing:
sudo apt-get install unity

Ideally command-not-found should not prompt the user to install a package that is already installed, regardless of whether the database is out-of-date.

Revision history for this message
Peter Husen (phusen) wrote :

This also happens with misspellings:

$ gnulot
No command 'gnulot' found, did you mean:
 Command 'gnuplot' from package 'gnuplot-nox' (universe)
 Command 'gnuplot' from package 'gnuplot-x11' (universe)
gnulot: command not found
$ gnuplot

 G N U P L O T
 Version 4.4 patchlevel 0
 last modified March 2010
 System: Linux 2.6.35-25-generic
[...]

Revision history for this message
Peter Husen (phusen) wrote :

Well ok, I guess it is not that bad in this case, since it does not suggest installing it. It could note somewhere on the suggestion line that it is actually installed, though, while picking up that habit of checking this status anyway.

Changed in command-not-found (Ubuntu):
status: New → Confirmed
Revision history for this message
Dan Watkins (oddbloke) wrote :

This now happens with misspellings:

  $ locales

  Command 'locales' not found, did you mean:

    command 'locale' from deb libc-bin (2.31-0ubuntu9)

  Try: sudo apt install <deb name>

  $ dpkg -l libc-bin
  <snip header>
  ii libc-bin 2.31-0ubuntu9 amd64 GNU C Library: Binaries

This is particularly unfortunate because it could lead to some users unintentionally marking packages as manually installed.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.