missing "sudo apt-get install" instructions when more than one package provides a binary
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| command-not-found (Ubuntu) |
Triaged
|
Medium
|
Unassigned | ||
Bug Description
<sabdfl> landscape@
<sabdfl> The program 'flex' can be found in the following packages:
<sabdfl> * flex
<sabdfl> * flex-old
<sabdfl> Ask your administrator to install one of them
<sabdfl> when did that change from "sudo apt-get install" one of those packages?
<sabdfl> most people are their own administrator and won't know who to ask :)
...
<kirkland> elif len(packages) > 1:
<kirkland> packages.
<kirkland> print(_("The program '%s' can be found in the following packages:") % command, file=sys.stderr)
<kirkland> you get that message when the command can be found in multiple packages
Looks like it's been that way for a little while, at least.
It would be great if command-not-found would show the "sudo apt-get install" instructions, for each package in this case. It's friendlier, and really handy to have the text to copy and paste (if you are the administrator).
Related branches
| Changed in command-not-found (Ubuntu): | |
| status: | New → Triaged |
| importance: | Undecided → Medium |

@mpt, can you have a look, and help guide the UI/UX for this bit?
@cjwatson, you also might have a suggestion/fix in mind :-)
Thanks!
Dustin