[Bug 1372999] Re: missing "sudo apt-get install" instructions when more than one package provides a binary
Dustin Kirkland
dustin.kirkland at gmail.com
Tue Sep 23 16:10:31 UTC 2014
Suggested fix in lp:~kirkland/command-not-found/1372999
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to command-not-found in Ubuntu.
https://bugs.launchpad.net/bugs/1372999
Title:
missing "sudo apt-get install" instructions when more than one package
provides a binary
Status in “command-not-found” package in Ubuntu:
Triaged
Bug description:
<sabdfl> landscape at maas-1-14:~$ flex
<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.sort(key=cmp_to_key(self.sortByComponent))
<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).
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/command-not-found/+bug/1372999/+subscriptions
More information about the foundations-bugs
mailing list