I would like to install the Snap store, but I am getting this error:
root@localhost:~# sudo snap install snap-store
error: cannot communicate with server: Post "http://localhost/v2/snaps/snap-store": dial unix /run/snapd.socket: connect: no such file or directory
How do I resolve this error and install the Snap store?