Search code examples
linux

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


I want to install discord via snap (Linux package format), but i get the following error:

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

Don't know why ...


Solution

  • Maybe you don't have the snad service running

    To start it onetimes do:

    sudo systemctl start snapd
    

    To enable that it always start with your system do:

    sudo systemctl enable snapd