snap 有 2 个模块:snap-store 和 gnome-3-28-1804,第一个依赖于第二个。
但是当我使用时$ snap remove gnome-3-28-1804
,我没有收到任何错误信息:没有后果警告,没有提示删除 snap-store,什么都没有。
显然,下次我使用 snap-store 时会出现以下错误:
$ snap-store
/home/peng/snap/snap-store/common/.cache/gio-modules/libgiognomeproxy.so: cannot open shared object file: No such file or directory
Failed to load module: /home/peng/snap/snap-store/common/.cache/gio-modules/libgiognomeproxy.so
/home/peng/snap/snap-store/common/.cache/gio-modules/libdconfsettings.so: cannot open shared object file: No such file or directory
Failed to load module: /home/peng/snap/snap-store/common/.cache/gio-modules/libdconfsettings.so
/home/peng/snap/snap-store/common/.cache/gio-modules/libgiolibproxy.so: cannot open shared object file: No such file or directory
Failed to load module: /home/peng/snap/snap-store/common/.cache/gio-modules/libgiolibproxy.so
/home/peng/snap/snap-store/common/.cache/gio-modules/libgiognutls.so: cannot open shared object file: No such file or directory
Failed to load module: /home/peng/snap/snap-store/common/.cache/gio-modules/libgiognutls.so
20:09:52:0025 Gtk Locale not supported by C library.
Using the fallback 'C' locale.
20:09:52:0155 Gtk Failed to load module "canberra-gtk-module"
20:09:52:0163 Gtk Failed to load module "canberra-gtk-module"
20:09:52:0167 GLib-GIO Using the 'memory' GSettings backend. Your settings will not be saved or shared with other applications.
20:09:52:0221 Gs enabled plugins: odrs, rewrite-resource, snap, icons, key-colors, key-colors-metadata
20:09:52:0221 Gs disabled plugins: appstream, desktop-categories, desktop-menu-path, dpkg, dummy, epiphany, fedora-pkgdb-collections, generic-updates, hardcoded-blacklist, hardcoded-featured, hardcoded-popular, modalias, os-release, provenance, provenance-license, repos, shell-extensions
Fontconfig error: Cannot load default config file
20:09:52:0342 Gtk Could not load a pixbuf from icon theme.
This may indicate that pixbuf loaders or the mime database could not be found.
**
Gtk:ERROR:../../../../gtk/gtkiconhelper.c:494:ensure_surface_for_gicon: assertion failed (error == NULL): Failed to load /snap/snap-store/188/data-dir/icons/Adwaita/16x16/status/image-missing.png: Unrecognized image file format (gdk-pixbuf-error-quark, 3)
Aborted
我的问题是:为什么 Snap 选择犯这种低级错误?