Inconsistent error message when installing multiple classic snaps

Bug #1737966 reported by Alan Pope 🍺🐧🐱 🦄
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
snapd
Fix Released
Medium
Unassigned

Bug Description

Installing a single snap which requires classic, while not specifying that we need classic results in a useful message and details of what to do next..

alan@deep-thought:~$ snap install goland
error: This revision of snap "goland" 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.

Installing multiple snaps, where some may need the classic parameter specified - do not. They spit out a list and no information about what to do next. This is inconsistent. It should probably produce a list of snaps and similar text to above.

alan@deep-thought:~$ snap install goland intellij-idea-community intellij-idea-ultimate pycharm-community pycharm-professional phpstorm micro webstorm atom writeful hiri wavebox corebird mattermost-desktop gitter-desktop convos scummvm doctl task packager sentry osddm fades
error: cannot install ["goland" "intellij-idea-community"
       "intellij-idea-ultimate" "pycharm-community" "pycharm-professional"
       "phpstorm" "micro" "webstorm" "atom" "writeful" "hiri" "wavebox"
       "corebird" "mattermost-desktop" "gitter-desktop" "convos" "scummvm"
       "doctl" "task" "packager" "sentry" "osddm" "fades"]: snap "goland"
       requires classic confinement

Michael Vogt (mvo)
Changed in snapd:
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
Michael Vogt (mvo) wrote :

I pushed a fix to https://github.com/snapcore/snapd/pull/4423

With that I get:
sudo ./snap install hello goland intellij-idea-community intellij-idea-ultimate pycharm-community pycharm-professional phpstorm micro webstorm atom writeful hiri wavebox corebird mattermost-desktop gitter-desktop convos scummvm doctl task packager sentry osddm fades
error: This revision of snap "goland" 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.

I.e. it will stop after the first snap that fails to install. But that should be ok as you can then iterate on it.

Changed in snapd:
status: Triaged → Fix Committed
Changed in snapd:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.