Snapd broken on openSUSE Tumbleweed

jeh % systemctl status snapd.service

● snapd.service - Snap Daemon
Loaded: loaded (/usr/lib/systemd/system/snapd.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Wed 2021-03-31 21:29:21 IST; 23s ago
TriggeredBy: ● snapd.socket
Process: 6585 ExecStart=/usr/lib/snapd/snapd (code=exited, status=1/FAILURE)
Main PID: 6585 (code=exited, status=1/FAILURE)

jeh % sudo systemctl enable --now snapd
Job for snapd.service failed because the control process exited with error code.
See “systemctl status snapd.service” and “journalctl -xe” for details.

jeh % sudo journalctl --no-pager -u snapd

Tried to check logs with jounalctl and it returned

Mar 31 21:28:44 linuxbook snapd[6320]: daemon.go:347: started snapd/2.49-lp152.3.1 (series 16; classic; devmode) opensuse-tumbleweed/20210325 (amd64) linux/5.11.6-1-default.
Mar 31 21:28:44 linuxbook snapd[6320]: daemon.go:440: adjusting startup timeout by 30s (pessimistic estimate of 30s plus 5s per snap)
Mar 31 21:28:44 linuxbook snapd[6320]: cannot run daemon: state startup errors: [cannot obtain snap-seccomp version information: fork/exec /usr/libexec/snapd/snap-seccomp: no such file or directory]
Mar 31 21:28:44 linuxbook systemd[1]: snapd.service: Main process exited, code=exited, status=1/FAILURE
Mar 31 21:28:44 linuxbook systemd[1]: snapd.service: Failed with result ‘exit-code’.
Mar 31 21:28:44 linuxbook systemd[1]: Failed to start Snap Daemon.
Mar 31 21:28:44 linuxbook systemd[1]: snapd.service: Scheduled restart job, restart counter is at 3.
Mar 31 21:28:44 linuxbook systemd[1]: Stopped Snap Daemon.
Mar 31 21:28:44 linuxbook systemd[1]: Starting Snap Daemon…
Mar 31 21:28:44 linuxbook snapd[6336]: AppArmor status: apparmor is enabled but some kernel features are missing: dbus

This is really frustrating, I prefer snaps over flatpak but I can’t use them cause of this weird bug or something. I just followed instructions for Snaps for openSUSE but everytime I’m getting these errors, Tried reinstalling 3-4 times but no luck

Why are you trying to use a pacakge for Leap 15.* on Tumbleweed? Any package using libexecdir for Leap is incompatible with Tumbleweed. The distro policy changed libexecdir from /usr/lib to /usr/libexec a while ago.

The installation instructions for openSUSE mention that you need to choose the right repository for your variant of openSUSE. You probably need to zypper rr the current entry, and then zypper ar the right repo.

1 Like