Can't install apps from Snap store even after installing snapd

When I try to install something using sudo snap install [name of program], I get this message:
error: cannot communicate with server: Post "http://localhost/v2/snaps/snap-store": dial unix /run/snapd.socket: connect: no such file or directory
I installed Snapd using the package manager, and nothing seemed to go wrong there. What should I do?

You need:

sudo systemctl enable --now snapd.socket

You might want considering to do some research regarding the safety and security of apps installed from Snapstore. There have been cases of malware being delivered through Snapstore.

1 Like

I would strongly encourage you to avoid snaps, but if you must use them: