[solved] Cannot install snap on opensuse tumbleweed

Hello,

I try to install snap on opensuse tumbleweed.

I’ve follow this guide https://snapcraft.io/docs/installing-snap-on-opensuse

Everything went well until this command: sudo systemctl enable --now snapd

I’ve the following answer: “job for snapd.service failed because the control process exited with error code. See “systemctl status snapd.service” and “journalctl -xeu snapd.service” for details.”

Here are the details from the command: systemctl status snapd.service

× snapd.service - Snap Daemon
     Loaded: loaded (/usr/lib/systemd/system/snapd.service; enabled; preset: disabled)
     Active: failed (Result: exit-code) since Sat 2024-02-10 20:17:56 CET; 2min 0s ago
TriggeredBy: × snapd.socket
    Process: 9805 ExecStart=/usr/lib/snapd/snapd (code=exited, status=1/FAILURE)
   Main PID: 9805 (code=exited, status=1/FAILURE)
        CPU: 72ms

févr. 10 20:17:56 localhost.localdomain systemd[1]: snapd.service: Scheduled restart job, restart counter is at 5.
févr. 10 20:17:56 localhost.localdomain systemd[1]: snapd.service: Start request repeated too quickly.
févr. 10 20:17:56 localhost.localdomain systemd[1]: snapd.service: Failed with result 'exit-code'.
févr. 10 20:17:56 localhost.localdomain systemd[1]: Failed to start Snap Daemon.
févr. 10 20:17:56 localhost.localdomain systemd[1]: snapd.service: Triggering OnFailure= dependencies.

journalctl -xeu snapd.service

× snapd.service - Snap Daemon
     Loaded: loaded (/usr/lib/systemd/system/snapd.service; enabled; preset: disabled)
     Active: failed (Result: exit-code) since Sat 2024-02-10 20:17:56 CET; 2min 0s ago
TriggeredBy: × snapd.socket
    Process: 9805 ExecStart=/usr/lib/snapd/snapd (code=exited, status=1/FAILURE)
   Main PID: 9805 (code=exited, status=1/FAILURE)
        CPU: 72ms

févr. 10 20:17:56 localhost.localdomain systemd[1]: snapd.service: Scheduled restart job, restart counter is at 5.
févr. 10 20:17:56 localhost.localdomain systemd[1]: snapd.service: Start request repeated too quickly.
févr. 10 20:17:56 localhost.localdomain systemd[1]: snapd.service: Failed with result 'exit-code'.
févr. 10 20:17:56 localhost.localdomain systemd[1]: Failed to start Snap Daemon.
févr. 10 20:17:56 localhost.localdomain systemd[1]: snapd.service: Triggering OnFailure= dependencies.
localhost:/home/bastien # journalctl -xeu snapd.service
░░ L'unité (unit) snapd.service a commencé à démarrer.
févr. 10 20:17:56 localhost.localdomain systemd[1]: snapd.service: Got notification message from PID 9811, but reception only permitted for main PID 9805
févr. 10 20:17:56 localhost.localdomain systemd[1]: snapd.service: Got notification message from PID 9814, but reception only permitted for main PID 9805
févr. 10 20:17:56 localhost.localdomain snapd[9805]: overlord.go:271: Acquiring state lock file
févr. 10 20:17:56 localhost.localdomain snapd[9805]: overlord.go:276: Acquired state lock file
févr. 10 20:17:56 localhost.localdomain snapd[9805]: daemon.go:247: started snapd/2.61.1 (series 16; classic; devmode) opensuse-tumbleweed/20240208 (amd64) linux/6.7.4-1-default.
févr. 10 20:17:56 localhost.localdomain snapd[9805]: daemon.go:340: adjusting startup timeout by 30s (pessimistic estimate of 30s plus 5s per snap)
févr. 10 20:17:56 localhost.localdomain snapd[9805]: backends.go:58: AppArmor status: apparmor is enabled but some kernel features are missing: dbus, network
févr. 10 20:17:56 localhost.localdomain snapd[9805]: cannot run daemon: state startup errors: [cannot obtain snap-seccomp version information: fork/exec /usr/libexec/snapd/snap-seccomp: no such file o>
févr. 10 20:17:56 localhost.localdomain systemd[1]: snapd.service: Main process exited, code=exited, status=1/FAILURE
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ An ExecStart= process belonging to unit snapd.service has exited.
░░ 
░░ The process' exit code is 'exited' and its exit status is 1.
févr. 10 20:17:56 localhost.localdomain systemd[1]: snapd.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ The unit snapd.service has entered the 'failed' state with result 'exit-code'.
févr. 10 20:17:56 localhost.localdomain systemd[1]: Failed to start Snap Daemon.
░░ Subject: L'unité (unit) snapd.service a échoué
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ L'unité (unit) snapd.service a échoué, avec le résultat failed.
févr. 10 20:17:56 localhost.localdomain systemd[1]: snapd.service: Triggering OnFailure= dependencies.
févr. 10 20:17:56 localhost.localdomain systemd[1]: snapd.service: Scheduled restart job, restart counter is at 5.
░░ Subject: Le redémarrage automatique d'une unité (unit) a été planifié
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ Le redémarrage automatique de l'unité (unit) snapd.service a été planifié, en
░░ raison de sa configuration avec le paramètre Restart=.
févr. 10 20:17:56 localhost.localdomain systemd[1]: snapd.service: Start request repeated too quickly.
févr. 10 20:17:56 localhost.localdomain systemd[1]: snapd.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ The unit snapd.service has entered the 'failed' state with result 'exit-code'.
févr. 10 20:17:56 localhost.localdomain systemd[1]: Failed to start Snap Daemon.
░░ Subject: L'unité (unit) snapd.service a échoué
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ L'unité (unit) snapd.service a échoué, avec le résultat failed.
févr. 10 20:17:56 localhost.localdomain systemd[1]: snapd.service: Triggering OnFailure= dependencies.

Can you help me please ?

Does /usr/libexec/snapd/snap-seccomp exist in your system? It’s part of the snapd package you installed using zypper.

Edit: just for the record, when adding the repository, did you swap out 15.3 for Tumbleweed like it says in the instructions?

when adding the repository, did you swap out 15.3 for Tumbleweed like it says in the instructions?

No, I forgot that. Now it’s good. Sorry, for my mistake and thank you for your Answer.

3 Likes