gnome-software cannot install classic snaps if a channel is selected

Bug #1876879 reported by fcole90
30
This bug affects 6 people
Affects Status Importance Assigned to Milestone
snap-store-desktop
Fix Released
Critical
Robert Ancell
gnome-software (Ubuntu)
Fix Released
High
Robert Ancell

Bug Description

I tried installing Android Studio from gnome-software. In the top right dropdown, it asks for the source. For Andoid Studio it displays Ubuntu. I was suspicious of it being a deb and not a snap. So I clicked on it and it shown me 3 Snap channel options. I selected latest/stable. The source changed according to my selection. Then I tried installing it but it failed saying:

Unable to install "Android Studio": snap "android-studio" requires classic confinement

I was puzzled. So I went back to the search menu, I clicked again on Android Studio and the source was now again on Ubuntu (note that this is not an option available in the dropdown). I checked the details and indeed it's the snap package from channel latest/stable, just the source is somehow misleading. Now it installed the software without issues.

What doesn't work:
- Source dropdown (top-right) shows "Ubuntu" instead of the snap channel
- Selecting a channel breaks the install functionality for classic snaps (it seems like it attempts to install them without --classic)

Workaround:
Do not select any channel, just use what is provided, and it works. If needing to use a different channel, use the command line (or perhaps check if this works in the Snap Store, if it has not the same issue).

ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: gnome-software 3.36.0-0ubuntu3
ProcVersionSignature: Ubuntu 5.4.0-28.32-generic 5.4.30
Uname: Linux 5.4.0-28-generic x86_64
ApportVersion: 2.20.11-0ubuntu27
Architecture: amd64
CasperMD5CheckResult: skip
CurrentDesktop: GNOME
Date: Tue May 5 11:09:26 2020
InstallationDate: Installed on 2020-04-03 (31 days ago)
InstallationMedia: Ubuntu 20.04 LTS "Focal Fossa" - Beta amd64 (20200401)
InstalledPlugins:
 gnome-software-plugin-flatpak 3.36.0-0ubuntu3
 gnome-software-plugin-snap 3.36.0-0ubuntu3
SourcePackage: gnome-software
UpgradeStatus: No upgrade log present (probably fresh install)
modified.conffile..etc.apport.crashdb.conf: [modified]
mtime.conffile..etc.apport.crashdb.conf: 2020-05-04T10:26:46.106768

Revision history for this message
fcole90 (fcole90) wrote :
Revision history for this message
fcole90 (fcole90) wrote :
Revision history for this message
fcole90 (fcole90) wrote :
Revision history for this message
Sebastien Bacher (seb128) wrote :

Confirmed on focal

- open snap-store
- search for android
- click on android studio
- click on the top right selector
- click on the already select stable to close the popdown
- select install

-> the installation fail

Changed in snap-store:
importance: Undecided → High
status: New → Confirmed
tags: added: rls-ff-incoming
Changed in gnome-software (Ubuntu):
importance: Undecided → High
assignee: nobody → Robert Ancell (robert-ancell)
tags: removed: rls-ff-incoming
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gnome-software (Ubuntu):
status: New → Confirmed
Revision history for this message
Tony Thuitai (tonythuitai-deactivatedaccount) wrote :

Bug also occurs on gnome software in groovy

Revision history for this message
FelipeAF (felipealexandref) wrote :

Here often gnome software cannot update Gitkraken snap, it shows an error message that Gitkraken uses classic confinement.

Revision history for this message
Danilo Alculete (alculete) wrote :

I have the same bug

Changed in snap-store-desktop:
assignee: nobody → Robert Ancell (robert-ancell)
importance: High → Critical
Revision history for this message
Robert Ancell (robert-ancell) wrote :

The cause is `gs_plugin_add_alternates` doesn't set the `snap::confinement` metadata item, so the channels other than the default aren't detected as classic.

Revision history for this message
Robert Ancell (robert-ancell) wrote :
Revision history for this message
Ken VanDine (ken-vandine) wrote :

This is now fixed in the stable channel.

Changed in snap-store-desktop:
status: Confirmed → Fix Released
tags: added: dt-191
Changed in gnome-software (Ubuntu):
status: Confirmed → 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.