[Bug 1754839] Re: CNF recommends 'snap info <command>' instead of 'snap info <snapname>'

Michael Vogt michael.vogt at canonical.com
Mon Mar 19 09:33:03 UTC 2018


This is fixed in bionic with 18.04.0~pre6 now:

```
$ aws

Command 'aws' not found, but can be installed as:

sudo snap install aws-cli
sudo apt  install awscli 

See 'snap info aws-cli' for additional versions.
```


** Changed in: command-not-found (Ubuntu)
       Status: In Progress => Fix Released

-- 
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/1754839

Title:
  CNF recommends 'snap info <command>' instead of 'snap info <snapname>'

Status in command-not-found package in Ubuntu:
  Fix Released

Bug description:
  The new language for CNF with snaps is much better thank you, but
  there is a mistake in that it recommends that you use 'snap info' with
  the *command* when it should in fact be 'snap info <snapname>'. As an
  example:

  mark at mark:~$ aws

  Command 'aws' not found, but can be installed as:

   snap aws-cli
   deb awscli () 

  See 'snap info aws' for additional versions.

  mark at mark:~$ snap info aws
  error: no snap found for "aws"

  mark at mark:~$ snap info aws-cli 
  name:      aws-cli
  summary:   Universal Command Line Interface for Amazon Web Services
  [...snip...]

  In this case, the CNF output should be tweaked to use the snap name
  not the command name:

  See 'snap info aws-cli' for additional versions.

  In fact, I think we should tweak the output as follows, in order to
  line things up and make the commands cut-and-pasteable:

  Command 'aws' not found, but can be installed with:

   snap install aws-cli  # version XXXX is latest/stable
   apt  install awscli    # version YYYY

  See 'snap info aws-cli' for additional versions.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/command-not-found/+bug/1754839/+subscriptions



More information about the foundations-bugs mailing list