Easily able to remove platform snaps

Bug #1855944 reported by Robert Ancell
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
snapd (Ubuntu)
Triaged
Wishlist
Unassigned

Bug Description

You can very easily remove a GNOME runtime snap without any warning of the consequences of this action.

i.e.
$ snap remove gnome-3-28-1804
$ gnome-calculator
/snap/gnome-calculator/544/snap/command-chain/desktop-launch: line 11: /snap/gnome-calculator/544/gnome-platform/usr/lib/x86_64-linux-gnu/libgtk-3-0/gtk-query-immodules-3.0: No such file or directory
ERROR: /snap/gnome-calculator/544/gnome-platform/usr/lib/x86_64-linux-gnu/libgtk-3-0/gtk-query-immodules-3.0 exited abnormally with status 127

And if you try and correct this mistake:
$ snap install gnome-3-28-1804
$ gnome-calculator
/home/bob/snap/gnome-calculator/common/.cache/gio-modules/libgiognomeproxy.so: cannot open shared object file: No such file or directory
Failed to load module: /home/bob/snap/gnome-calculator/common/.cache/gio-modules/libgiognomeproxy.so
/home/bob/snap/gnome-calculator/common/.cache/gio-modules/libdconfsettings.so: cannot open shared object file: No such file or directory
Failed to load module: /home/bob/snap/gnome-calculator/common/.cache/gio-modules/libdconfsettings.so
/home/bob/snap/gnome-calculator/common/.cache/gio-modules/libgiolibproxy.so: cannot open shared object file: No such file or directory
Failed to load module: /home/bob/snap/gnome-calculator/common/.cache/gio-modules/libgiolibproxy.so
/home/bob/snap/gnome-calculator/common/.cache/gio-modules/libgiognutls.so: cannot open shared object file: No such file or directory
Failed to load module: /home/bob/snap/gnome-calculator/common/.cache/gio-modules/libgiognutls.so

(gnome-calculator:205254): GdkPixbuf-WARNING **: 13:33:47.404: Cannot open pixbuf loader module file '/home/bob/snap/gnome-calculator/common/.cache/gdk-pixbuf-loaders.cache': No such file or directory

This likely means that your installation is broken.
Try running the command
  gdk-pixbuf-query-loaders > /home/bob/snap/gnome-calculator/common/.cache/gdk-pixbuf-loaders.cache
to make things work again for the time being.

Revision history for this message
Robert Ancell (robert-ancell) wrote :

The same issue occurs in other clients, e.g. GNOME Software.

Revision history for this message
Robert Ancell (robert-ancell) wrote :

Same sort of issue with KDE:
$ snap remove kde-frameworks-5-core18

John Lenton (chipaca)
Changed in snapd (Ubuntu):
status: New → Triaged
importance: Undecided → Wishlist
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.