无法在 MX Linux 上运行快照应用程序

无法在 MX Linux 上运行快照应用程序

在我的 MX Linux 21 KDE 上,我无法运行 snap 应用程序。

这就是我运行时发生的情况snap run authy

/user.slice/user-1000.slice/session-3.scope is not a snap cgroup

这是输出snap version

snap    2.56.2
snapd   2.56.2
series  16
debian  11
kernel  5.15.0-3mx-amd64

这是命令的输出sudo systemctl status snapd

● snapd.service - Snap Daemon
     Loaded: loaded (/lib/systemd/system/snapd.service; enabled; vendor preset: enabled)
     Active: active (running) since Tue 2022-08-02 07:46:11 +06; 23h ago
TriggeredBy: ● snapd.socket
   Main PID: 748 (snapd)
      Tasks: 26 (limit: 18668)
     Memory: 190.0M
        CPU: 18.576s
     CGroup: /system.slice/snapd.service
             └─748 /usr/lib/snapd/snapd

Aug 02 07:46:11 arkabhuiyanhpvictus16 snapd[748]: daemon.go:247: started snapd/2.56.2 (series 16; classic; devmode) debian/11 (amd64) linux/5.15.0-3mx-amd64.
Aug 02 07:46:11 arkabhuiyanhpvictus16 snapd[748]: daemon.go:340: adjusting startup timeout by 1m0s (pessimistic estimate of 30s plus 5s per snap)
Aug 02 07:46:11 arkabhuiyanhpvictus16 systemd[1]: Started Snap Daemon.
Aug 02 07:56:53 arkabhuiyanhpvictus16 snapd[748]: devicemgr.go:1927: no NTP sync after 10m0s, trying auto-refresh anyway
Aug 02 07:56:55 arkabhuiyanhpvictus16 snapd[748]: storehelpers.go:722: cannot refresh: snap has no updates available: "authy", "bare", "core18", "gnome-3-28-1804", "gtk-common-themes", "snapd"
Aug 02 07:56:55 arkabhuiyanhpvictus16 snapd[748]: autorefresh.go:539: auto-refresh: all snaps are up-to-date
Aug 03 03:46:31 arkabhuiyanhpvictus16 snapd[748]: storehelpers.go:722: cannot refresh: snap has no updates available: "authy", "bare", "core18", "gnome-3-28-1804", "gtk-common-themes", "snapd"
Aug 03 03:46:31 arkabhuiyanhpvictus16 snapd[748]: autorefresh.go:539: auto-refresh: all snaps are up-to-date
Aug 03 05:20:06 arkabhuiyanhpvictus16 snapd[748]: api_snaps.go:317: Installing snap "core" revision unset
Aug 03 05:20:41 arkabhuiyanhpvictus16 snapd[748]: api_snaps.go:317: Installing snap "mysql-workbench-community" revision unset

您可以看到我的系统上安装了最新的稳定内核。那么可能是什么问题,我该如何解决它?

完整的 systemctl 状态:https://pastebin.ubuntu.com/p/HZtmNBw3r3/

答案1

我也在使用 MX Linux,并且对于某些 Snap 也遇到了同样的问题。对我来说,解决方案是将环境变量“更正”DBUS_SESSION_BUS_ADDRESS为:

export DBUS_SESSION_BUS_ADDRESS="unix:path=$XDG_RUNTIME_DIR/bus"

来源

相关内容