Aller au contenu principal
Sujet résolu
Ce sujet a été marqué résolu et ne nécessite aucune autre attention.
Sujet: Impossible d'installer SNAP (Lu 179 fois) sujet précédent - sujet suivant

Impossible d'installer SNAP

Bonsoir,

J'essaie d'installer Snap sur Tumbleweed  sans succès.

J'ai suivi ceci: https://snapcraft.io/docs/installing-snap-on-opensuse

et tout va bien jusqu'ici:
sudo systemctl enable --now snapd

J'ai cette réponse:
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

Et les deux details suivants:

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.

Une idée ?

Mon installation de Tumbleweed est tout neuve.

Merci !

Re : Impossible d'installer SNAP

Répondre #1
:hello:

Petite question, il y a une obligation spécifique à utiliser snap et non pas flatpak? :)

Le paquet dont tu as besoin n'est dispo qu'en snap?

Re : Impossible d'installer SNAP

Répondre #2
Hello,

Merci pour ta réponse.

Je ne connais pas flatpak mais après une rapide recherche, il me semble que les logiciels dont j'ai besoin et que je compte installer avec Snap n'y figurent pas:

Asana

Slack (Il y a aussi un rpm mais je n'arrive pas à l'installer).

Merci de votre aide

Re : Impossible d'installer SNAP

Répondre #3
Slack existe en flatpak: https://flathub.org/apps/com.slack.Slack

Pour asana effectivement ça n'existe qu'en snap et le paquet n'est pas officiel.
Sinon il faudrait voir si le binaire de windows marche avec wine mais pour une production type travail (je suppose que tu l'utilises dans ce cadre là) ça reste assez flou niveau stabilité.

Pour snap sous tumbleweed il faudrait que je teste pour voir ce qu'il en est.

Re : Impossible d'installer SNAP

Répondre #4
Merci, je vais m'intéresser à Flatpack.
Mais entre temps c'est résolu. j'ai réussi à installer snap:
On m'a posé une question qui m'a permis de comprendre mon erreur: je n'avais pas modifié l'URL du dépôt, j'essayais d'installer via le dépôt de Leap car j'avais gardé l'URL proposé dans le tutoriel sans bien lire qu'il fallait le modifier bien sûr.... en modifiant l'URL, tout fonctionne.
Merci pour votre aide et désolé pour le temps alors que c'est 100% mon erreur.
Bonne suite !