Error: cannot communicate with server: Post "http://localhost/v2/snaps/code": dial unix /run/snapd.socket: connect: connection refused

bonjour, j’essaie d’installer vscode via snap mais lorsque je le fais j’ai ceci:

error: cannot communicate with server: Post “http://localhost/v2/snaps/code”: dial unix /run/snapd.socket: connect: connection refused

output ``` sudo systemctl restart snapd snapd.socket


> Job failed. See "journalctl -xe" for details.
A dependency job for snapd.service failed. See 'journalctl -xe' for details.

output ```
sudo journalctl --no-pager -u snapd
``` :

    avril 01 08:54:17 kali systemd[1]: Starting Snap Daemon...
avril 01 08:54:17 kali systemd[1]: Dependency failed for Snap Daemon.
avril 01 08:54:17 kali systemd[1]: snapd.service: Job snapd.service/start failed with result 'dependency'.
avril 01 08:54:17 kali systemd[1]: snapd.service: Triggering OnFailure= dependencies.
avril 01 08:54:17 kali systemd[1]: snapd.service: Failed to enqueue OnFailure= job, ignoring: Unit snapd.failure.service not found.
avril 01 08:54:17 kali snapd[5377]: AppArmor status: apparmor is enabled but some kernel features are missing: dbus, network
avril 01 08:54:17 kali snapd[5377]: daemon.go:246: started snapd/2.54.3-1 (series 16; classic; devmode) kali/2022.1 (i386) linux/5.14.0-kali4-686-pae.
avril 01 08:54:18 kali snapd[5377]: daemon.go:339: adjusting startup timeout by 30s (pessimistic estimate of 30s plus 5s per snap)
avril 01 08:54:19 kali snapd[5377]: helpers.go:137: error trying to compare the snap system key: system-key missing on disk
avril 01 08:54:24 kali snapd[5377]: daemon.go:509: gracefully waiting for running hooks
avril 01 08:54:24 kali snapd[5377]: daemon.go:511: done waiting for running hooks
avril 01 08:54:24 kali snapd[5377]: daemon stop requested to wait for socket activation
avril 01 08:54:24 kali systemd[1]: snapd.service: Deactivated successfully.
avril 01 09:19:42 kali systemd[1]: Starting Snap Daemon...
avril 01 09:19:42 kali systemd[1]: Dependency failed for Snap Daemon.
avril 01 09:19:42 kali systemd[1]: snapd.service: Job snapd.service/start failed with result 'dependency'.
avril 01 09:19:42 kali systemd[1]: snapd.service: Triggering OnFailure= dependencies.
avril 01 09:19:42 kali systemd[1]: snapd.service: Failed to enqueue OnFailure= job, ignoring: Unit snapd.failure.service not found.
avril 01 09:19:42 kali snapd[6088]: AppArmor status: apparmor is enabled but some kernel features are missing: dbus, network
avril 01 09:19:43 kali snapd[6088]: patch.go:63: Patching system state level 6 to sublevel 1...
avril 01 09:19:43 kali snapd[6088]: patch.go:63: Patching system state level 6 to sublevel 2...
avril 01 09:19:43 kali snapd[6088]: patch.go:63: Patching system state level 6 to sublevel 3...
avril 01 09:19:43 kali snapd[6088]: daemon.go:246: started snapd/2.54.3-1 (series 16; classic; devmode) kali/2022.1 (i386) linux/5.14.0-kali4-686-pae.
avril 01 09:19:43 kali snapd[6088]: daemon.go:339: adjusting startup timeout by 30s (pessimistic estimate of 30s plus 5s per snap)
avril 01 09:19:49 kali snapd[6088]: daemon.go:509: gracefully waiting for running hooks
avril 01 09:19:49 kali snapd[6088]: daemon.go:511: done waiting for running hooks
avril 01 09:19:49 kali snapd[6088]: daemon stop requested to wait for socket activation
avril 01 09:19:49 kali systemd[1]: snapd.service: Deactivated successfully.
need help please :sob: :sob: :sweat: