whois contains mkpasswd but is not suggested when the command is typed and not installed

Bug #1301880 reported by Peter Maloney
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
command-not-found (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

I don't really care which package it is in, but you should probably make the package suggestions include it.

# mkpasswd
or
# /usr/lib/command-not-found mkpasswd
No command 'mkpasswd' found, did you mean:
 Command 'kpasswd' from package 'heimdal-clients' (universe)
 Command 'kpasswd' from package 'krb5-user' (universe)
 Command 'kpasswd' from package 'openafs-kpasswd' (universe)
 Command 'tkpasswd' from package 'expect-dev' (main)
mkpasswd: command not found

Related to bug 284416 but I don't want to reopen that one. I am not suggesting splitting the package.

on openSUSE, the equivalent works fine:

# mkpasswd
If 'mkpasswd' is not a typo you can use command-not-found to lookup the package that contains it, like this:
    cnf mkpasswd
# cnf mkpasswd

The program 'mkpasswd' can be found in following packages:
  * whois [ path: /usr/bin/mkpasswd, repository: zypp (openSUSE:Stable_OSS) ]
  * whois [ path: /usr/bin/mkpasswd, repository: zypp (repo-oss) ]

Try installing with:
    zypper install whois

Revision history for this message
Robie Basak (racb) wrote :

Thank you for reporting this bug and helping to make Ubuntu better.

I presume that this needs to be fixed in command-not-found?

affects: whois (Ubuntu) → command-not-found (Ubuntu)
Revision history for this message
Peter Maloney (peter-maloney) wrote :

seems to work so I'll just close this

# mkpasswd
The program 'mkpasswd' is currently not installed. You can install it by typing:
apt install whois

# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.2 LTS
Release: 16.04
Codename: xenial

Changed in command-not-found (Ubuntu):
status: New → Fix Released
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.