Snap not working

Dear Team,

I am trying to run sudo snap install stickynotes and getting error,
error: cannot communicate with server: Post http://localhost/v2/snaps/stickynotes: dial unix /run/snapd.socket: connect: connection refused

Please help me, to solve this error.

What distro is that?

You probably need to start the snapd socket or the daemon. You can start the socket by running systemctl enable --now snapd.socket.

I am experiencing a similar problem.

$ sudo snap install anbox-installer --classic
error: cannot communicate with server: Post http://localhost/v2/snaps/anbox-installer: dial unix /run/snapd.socket: connect: connection refused

$ cat /etc/*-release
CentOS Linux release 7.7.1908 (Core)
NAME=“CentOS Linux”
VERSION=“7 (Core)”
ID=“centos”
ID_LIKE=“rhel fedora”
VERSION_ID=“7”
PRETTY_NAME=“CentOS Linux 7 (Core)”
ANSI_COLOR=“0;31”
CPE_NAME=“cpe:/o:centos:centos:7”
HOME_URL=“https://www.centos.org/
BUG_REPORT_URL=“https://bugs.centos.org/

CENTOS_MANTISBT_PROJECT=“CentOS-7”
CENTOS_MANTISBT_PROJECT_VERSION=“7”
REDHAT_SUPPORT_PRODUCT=“centos”
REDHAT_SUPPORT_PRODUCT_VERSION=“7”

CentOS Linux release 7.7.1908 (Core)

It seems I have found a solution [here](https://askubuntu.com/questions/764610/how-to-install-snap-packages-behind-web-proxy-on-ubuntu-16-04).

I can now install snaps!