我在 Ubuntu 20.04 上遇到了 snap 商店和 snap 软件包的问题。我的问题始于我尝试安装 VLC 媒体播放器时,我在此问题中详细说明了这一点: 帖子链接
我尝试使用 snap remove 和 snap install 命令删除并重新安装 snap store。之后,我的 snap store 就坏了,无法显示任何字符。请参见下面的屏幕截图:
当我尝试在终端中打开它时,收到以下错误消息:
bobi@bobi:~$ snap-store
19:15:19:0438 Gs enabled plugins: odrs, rewrite-resource, snap, icons, key-colors, key-colors-metadata
19:15:19:0438 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
19:15:19:0597 Gs failed to create an app for */*/*/*/system/*
19:15:19:0602 Gs updates-shell: failed to get updates: no plugin could handle get-updates
19:15:19:0602 Gs failed to create an app for */*/*/*/system/*
19:15:19:0602 Gs failed to get system app
19:15:19:0602 Gs Only 0 apps for recent list, hiding
19:15:19:0740 Gs hiding category audio-video featured applications: found only 0 to show, need at least 9
19:15:19:0740 Gs hiding category graphics featured applications: found only 0 to show, need at least 9
19:15:20:0309 GsPluginSnap Failed to load snap icon: local snap has no icon
19:15:20:0608 GsPluginSnap Failed to load snap icon: local snap has no icon
除此之外,当我在终端中安装 GIMP 的 snap 版本时,它在启动时也无法加载任何字符,并且一旦加载就会崩溃。请参阅此处的加载屏幕故障:
错误信息如下:
bobi@bobi:~$ gimp
/snap/gimp/273/usr/bin/gimp: Gimp-Widgets-FIGYELMEZTETÉS: parse_iso_codes: error parsing '/build/gimp/parts/gimp/install/usr/share/xml/iso-codes/iso_639.xml': No such file or directory
Fontconfig warning: FcPattern object width does not accept value [75 100)
/snap/gimp/273/usr/bin/gimp: Gimp-Text-KRITIKUS: gimp_font_factory_load_names: assertion 'fontset' failed
(gimp:7182): GdkPixbuf-CRITICAL **: 21:27:19.894: gdk_pixbuf_scale_simple: assertion 'dest_width > 0' failed
(gimp:7182): GdkPixbuf-CRITICAL **: 21:27:19.894: gdk_pixbuf_get_width: assertion 'GDK_IS_PIXBUF (pixbuf)' failed
(gimp:7182): GdkPixbuf-CRITICAL **: 21:27:19.894: gdk_pixbuf_get_height: assertion 'GDK_IS_PIXBUF (pixbuf)' failed
(gimp:7182): GdkPixbuf-CRITICAL **: 21:27:19.894: gdk_pixbuf_get_width: assertion 'GDK_IS_PIXBUF (pixbuf)' failed
(gimp:7182): GdkPixbuf-CRITICAL **: 21:27:19.894: gdk_pixbuf_get_height: assertion 'GDK_IS_PIXBUF (pixbuf)' failed
(gimp:7182): GdkPixbuf-CRITICAL **: 21:27:19.894: gdk_pixbuf_get_pixels_with_length: assertion 'GDK_IS_PIXBUF (pixbuf)' failed
(gimp:7182): GdkPixbuf-CRITICAL **: 21:27:19.894: gdk_pixbuf_get_rowstride: assertion 'GDK_IS_PIXBUF (pixbuf)' failed
(gimp:7182): GdkPixbuf-CRITICAL **: 21:27:19.894: gdk_pixbuf_get_n_channels: assertion 'GDK_IS_PIXBUF (pixbuf)' failed
(gimp:7182): GLib-ERROR **: 21:27:19.894: ../../../../glib/gmem.c:333: overflow allocating 18446744073709551615*18446744073709551615 bytes
(script-fu:7285): LibGimpBase-WARNING **: 21:27:19.970: script-fu: gimp_wire_read(): error
Nyomkövetési/töréspont csapda (core készült)
该怎么办?Flathub 和“旧”deb 版本的 Gimp 和 Vlc 运行良好。我想我现在需要坚持使用这些。
答案1
Béné 回答了问题!谢谢!
以下解决方案几乎对我有用这个帖子!
但是,上面帖子中的第二个命令给了我一个错误消息。我对其进行了一些修改,因此以下解决方案对我有用,并且在系统重启后仍然有效。:
sudo find /usr/share/fonts -type f -exec sudo chmod 644 {} \;
sudo fc-cache -r -v