gnome-software cannot update snaps because it is a snap

Bug #1979106 reported by Paul Dufresne
24
This bug affects 5 people
Affects Status Importance Assigned to Milestone
snap-store-desktop
New
Undecided
Unassigned

Bug Description

I believe gnome-software is installed as a snap in 22.04.
Because of that it cannot update snaps by calling "snap refresh" because when doing so you must stop all running snap applications... that is gnome-software that want to update snaps.

Well, at least that is the way I interpreted the message given on my friend computer today.
I might be wrong.

I got to a page that suggested to:
sudo apt remove snaps-store
sudo apt install snap-store

I did, and it temporarily fixed the updates... but I expect it to come back soon because of what I believe a design flaw: try to use a snap app to update snaps.

Revision history for this message
Paul Dufresne (dufresnep) wrote (last edit ):

Thinking about it a little bit more... gnome-softwre could replace itself by a script that call "snap refresh" followed by "the continuation of gnome-software on the updated snap-store" (if you can write that).

Sean Davis (bluesabre)
affects: tumbler (Ubuntu) → snap-store-desktop
Revision history for this message
Humphrey van Polanen Petel (hpvpp) wrote :

perhaps also applies to Firefox - see screenshot

Revision history for this message
Humphrey van Polanen Petel (hpvpp) wrote :

this works

sudo pkill firefox && sudo snap refresh firefox

but starting firefox from the command line gives this

d:~$ firefox
ERROR: ld.so: object 'libgtk3-nocsd.so.0' from LD_PRELOAD cannot be preloaded (failed to map segment from shared object): ignored.
Gtk-Message: 11:01:02.476: Failed to load module "xapp-gtk3-module"
Gtk-Message: 11:01:02.476: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.
ATTENTION: default value of option mesa_glthread overridden by environment.
ATTENTION: default value of option mesa_glthread overridden by environment.
ATTENTION: default value of option mesa_glthread overridden by environment.
ATTENTION: default value of option mesa_glthread overridden by environment.
[2022-12-04T00:01:06Z ERROR glean_core::metrics::ping] Invalid reason code startup for ping background-update

Revision history for this message
Humphrey van Polanen Petel (hpvpp) wrote :

starting through snap gives the same errors

$ snap run firefox
ERROR: ld.so: object 'libgtk3-nocsd.so.0' from LD_PRELOAD cannot be preloaded (failed to map segment from shared object): ignored.
Gtk-Message: 11:11:50.795: Failed to load module "xapp-gtk3-module"
Gtk-Message: 11:11:50.796: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.
ATTENTION: default value of option mesa_glthread overridden by environment.
ATTENTION: default value of option mesa_glthread overridden by environment.
ATTENTION: default value of option mesa_glthread overridden by environment.
ATTENTION: default value of option mesa_glthread overridden by environment.
[2022-12-17T00:11:52Z ERROR glean_core::metrics::ping] Invalid reason code startup for ping background-update

Revision history for this message
Humphrey van Polanen Petel (hpvpp) wrote :

rather than telling me stop X, because it prevents a snap update
why don't you ask permission, kill X, do "snap refresh" and start X again?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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