[Bug 1763507] [NEW] command-not-found does not tell users they need to use --class to install classic snaps

Steve Langasek steve.langasek at canonical.com
Thu Apr 12 20:34:22 UTC 2018


Public bug reported:

When looking at the transition from the awscli deb to the aws-cli snap,
I noticed that the aws-cli snap is a classic snap.

This means that the command shown in command-not-found output does not
actually work:

$ aws

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

sudo snap install aws-cli
sudo apt  install awscli 

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

$ sudo snap install aws-cli
error: This revision of snap "aws-cli" was published using classic confinement
       and thus may perform arbitrary system changes outside of the security
       sandbox that snaps are usually confined to, which may put your system at
       risk.

       If you understand and want to proceed repeat the command including
       --classic.
$

It is not ideal that cut-and-pasting the shown command returns an error.

I am not sure that it is better to add the '--classic' flag to the
commandline, since that also encourages users to cut and paste without
necessarily understanding the implications of installing a classic snap.

** Affects: command-not-found (Ubuntu)
     Importance: Undecided
         Status: New

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

Title:
  command-not-found does not tell users they need to use --class to
  install classic snaps

Status in command-not-found package in Ubuntu:
  New

Bug description:
  When looking at the transition from the awscli deb to the aws-cli
  snap, I noticed that the aws-cli snap is a classic snap.

  This means that the command shown in command-not-found output does not
  actually work:

  $ aws

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

  sudo snap install aws-cli
  sudo apt  install awscli 

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

  $ sudo snap install aws-cli
  error: This revision of snap "aws-cli" was published using classic confinement
         and thus may perform arbitrary system changes outside of the security
         sandbox that snaps are usually confined to, which may put your system at
         risk.

         If you understand and want to proceed repeat the command including
         --classic.
  $

  It is not ideal that cut-and-pasting the shown command returns an
  error.

  I am not sure that it is better to add the '--classic' flag to the
  commandline, since that also encourages users to cut and paste without
  necessarily understanding the implications of installing a classic
  snap.

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



More information about the foundations-bugs mailing list