snap 应用程序运行时间太长

snap 应用程序运行时间太长

你好,我正在运行 ubuntu 22.04 LTS 桌面。不确定为什么 gimp、firefox、kolourpaint、remmina 等 snap 应用程序需要很长时间(可能 1-2 分钟)才能打开。我重新启动了电脑,但情况仍然一样。

这是我在 /var/log/syslog/ 下找到的日志

Aug 18 10:55:07 komp systemd[2294]: snap.firefox.firefox.ed49cd3a-04b3-4403-b0ef-25692ef4c7c1.scope: Consumed 51.143s CPU time.
Aug 18 10:55:11 komp systemd[2294]: Started Application launched by gnome-shell.
Aug 18 10:55:11 komp dbus-daemon[2314]: [session uid=1000 pid=2314] Activating via systemd: service name='org.freedesktop.portal.Documents' unit='xdg-document-portal.service' requested by ':1.845' (uid=1000 pid=68462 comm="/snap/bin/firefox " label="unconfined")
Aug 18 10:55:11 komp systemd[2294]: Starting flatpak document portal service...
Aug 18 10:55:11 komp xdg-document-portal[68486]: /usr/libexec/xdg-document-portal: /usr/local/lib/libfuse3.so.3: version `FUSE_3.2' not found (required by /usr/libexec/xdg-document-portal)
Aug 18 10:55:11 komp systemd[2294]: xdg-document-portal.service: Main process exited, code=exited, status=1/FAILURE
Aug 18 10:55:11 komp systemd[2294]: xdg-document-portal.service: Failed with result 'exit-code'.
Aug 18 10:55:11 komp systemd[2294]: Failed to start flatpak document portal service.



Aug 18 10:57:11 komp firefox_firefox.desktop[68462]: cmd_run.go:1055: WARNING: cannot start document portal: Failed to activate service 'org.freedesktop.portal.Documents': timed out (service_start_timeout=120000ms)

详细快照版本:

@komp:~$ snap version
snap    2.59.5
snapd   2.59.5
series  16
ubuntu  22.04
kernel  5.19.0-50-generic

我读过另一个类似的问题: https://forum.snapcraft.io/t/snaps-only-run-after-a-long-timeout/9201/9

https://forum.snapcraft.io/t/extremely-slow-startup-for-snaps/22478/20

还是没有运气。

我不太确定,也许有人可以给我一些线索?谢谢

相关内容