I want to resolve Snapd error: cannot communicate with server

Asked 2 years ago, Updated 2 years ago, 73 views

When I try to install the app with snap, I get the following error:

$sudo apt install snapd
$ sudo snap install mini-diary

error:cannot communicate with server:Post http://localhost/v2/snaps/mini-diary:dial unix/run/snapd.socket:connect:no such file or directory
$snap --version
snap 2.37.4-1+b1
snapd unavailable
series-

MX Linux

$cat/etc/debian_version
10.4

$ cat/etc/lsb-release
PRETTY_NAME="MX19.2 patito feeo"
DISTRIB_ID=MX
DISTRIB_RELEASE=19.2 
DISTRIB_CODENAME="patito feeo"
DISTRIB_DESCRIPTION="MX19.2 patito feeo"

Enter a description of the image here

linux

2022-09-30 19:54

3 Answers

snapd does not appear to start.I don't have an MX Linux environment, so I haven't tried it, but would it work if I started the daemon using systemctl start snapd.service (for systemd) or service snapd start (for sysVinit)?


2022-09-30 19:54

I have suffered from the same phenomenon.This is UBUNTU-20.04.
With reference to this site, you can now use snap in the following ways:

However, in advance,
sudo apt update
sudo apt upgrade-y
sudo apt install daemonize was required.

Running Snap on WSL2 (Insiders only for now)


2022-09-30 19:54

It seems that systemd is required for snaps.It might be a good idea to check the environment again

$systemctl status snapd.service
🔵 snapd.service-Snap Daemon
     Loaded: loaded (/lib/systemd/system/snapd.service; enabled; vendor preset: enabled)
     Active: active (running) since Thu 2021-03-2505:36:01 JST; 4 daysago
TriggeredBy: 🔵snapd.socket
   Main PID: 1254 (snapd)
      Tasks: 19 (limit: 18118)

$ snap version
snap 2.49.1
snapd 2.49.1
series16
ubuntu 20.10
kernel 5.8.0-48-generic

Ubuntu received the above message (and log)

Note:


2022-09-30 19:54

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.