c-n-f should be able offer to install missing programs (preference)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
command-not-found |
Fix Released
|
Wishlist
|
Zygmunt Krynicki | ||
command-not-found (Ubuntu) |
Triaged
|
Wishlist
|
Unassigned |
Bug Description
Binary package hint: gnome-terminal
Instead of saying:
The program 'x' is currently not installed. You can install it by typing:
sudo apt-get install x
bash: x: command not found
It should promt me to install it like:
The program 'x' is currently not installed. Would you like to install it now [Y]?:
ProblemType: Bug
Architecture: i386
Date: Wed Apr 30 17:08:56 2008
DistroRelease: Ubuntu 8.04
ExecutablePath: /usr/bin/
NonfreeKernelMo
Package: gnome-terminal 2.22.1-0ubuntu2
PackageArchitec
ProcEnviron:
PATH=/
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: gnome-terminal
Uname: Linux 2.6.24-16-generic i686
Changed in command-not-found: | |
importance: | Undecided → Wishlist |
status: | New → Confirmed |
Changed in command-not-found (Ubuntu): | |
status: | Confirmed → Triaged |
Changed in command-not-found: | |
assignee: | nobody → Zygmunt Krynicki (zkrynicki) |
status: | Confirmed → In Progress |
Changed in command-not-found: | |
milestone: | none → 0.2.41 |
Changed in command-not-found: | |
status: | Fix Committed → Fix Released |
I don't think this is such a good idea. I often mistype a command. By chance, it's found in some package I've not heard of. Meanwhile, while the search was on-going, I've realised my mistake and entered the correct command before continuing to type ahead. If that corrected command was consumed as the answer to `would you like to install it now?' then my later commands may have problems, e.g. the `cd' was consumed and the `rm' was acting somewhere other than intended.