Incorrect message if /snap/bin is not in PATH
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
command-not-found (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Bionic |
Fix Released
|
Undecided
|
Unassigned |
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
```
This bug was fixed in the package command-not-found - 18.10.0~pre1
---------------
command-not-found (18.10.0~pre1) cosmic; urgency=medium
* first cosmic build
-- Michael Vogt <email address hidden> Mon, 07 May 2018 07:35:23 +0200