on Kali Linux (also Debian based), the message; 'error: cannot communicate with server: Post "http://localhost/v2/snaps/snapd": dial unix /run/snapd.socket: connect: no such file or directory' Is solved with something like this;
└─$ sudo systemctl unmask snapd.service [sudo] password for cicada:
┌──(cicada㉿blackkali)-[~] └─$ sudo systemctl enable snapd.service Created symlink '/etc/systemd/system/multi-user.target.wants/snapd.service' → '/usr/lib/systemd/system/snapd.service'.
┌──(cicada㉿blackkali)-[~] └─$ sudo systemctl start snapd.service
┌──(cicada㉿blackkali)-[~] └─$ sudo snap install snap-store
Then you may see; 2025-01-20T02:18:17+07:00 INFO Waiting for automatic snapd restart... snap-store (2/stable) 0+git.7a3a49a6 from Canonical✓ installed WARNING: There is 1 new warning. See 'snap warnings'.