[Bug 1769088] Re: Incorrect message if /snap/bin is not in PATH
Brian Murray
brian at ubuntu.com
Thu Jun 14 17:08:25 UTC 2018
$ weechat
Command 'weechat' not found, but can be installed with:
sudo apt install weechat-curses
$ discord
Command 'discord' not found, but can be installed with:
sudo snap install discord
$ 0ad
Command '0ad' not found, but can be installed with:
sudo snap install 0ad
sudo apt install 0ad
See 'snap info 0ad' for additional versions.
$ sudoku
Command 'sudoku' not found, but can be installed with:
sudo apt install sudoku
Seems good to me too.
$ apt-cache policy command-not-found
command-not-found:
Installed: 18.04.5
Candidate: 18.04.5
** Tags removed: verification-needed-bionic
** Tags added: verification-done-bionic
--
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/1769088
Title:
Incorrect message if /snap/bin is not in PATH
Status in command-not-found package in Ubuntu:
Fix Released
Status in command-not-found source package in Bionic:
Fix Released
Bug description:
[Impact]
* Usability of snap recommendations degrated
[Test Case]
1. Remove /snap/bin from PATH
2. snap install corebird
3. run "corebird"
4. observe command-not-found suggesting to install corebird
5. install fixed c-n-f
6. observe that c-n-f suggests to run corebird from /snap/bin
[Regression Potential]
* very low
[ORIGINAL REPORT]
When the user installs a snap (like slack) but does not have /snap/bin in PATH the message is very confusing:
```
$ sudo snap install slack
...
$ slack
Command 'slack' not found, but can be installed with:
sudo apt install slack
```
The fix is that /snap/bin needs to be considered by c-n-f so that it can say:
```
command 'slack' is available in '/snap/bin/slack'
The command could not be located because '/snap/bin' is not included in the PATH environment variable.
slack: command not found
```
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/command-not-found/+bug/1769088/+subscriptions
More information about the foundations-bugs
mailing list