Error: cannot communicate with server:

Hello need help!
Use Debian Jessie and no run
root# snap login lrcjefferson@gmail.com
Password of “lrcjefferson@gmail.com”:
error: cannot communicate with server: Post http://localhost/v2/login: dial unix /run/snapd-snap.socket: connect: no such file or directory

Have you made sure the snapd service is running? Something like: systemctl status snapd should check if its up.

Yes. no running…
Always a D.BUS error appears.

Can you include that error? That’ll be necessary for anyone to be able to help you out.

systemctl status snapd

Failed to get D-Bus connection: Erro desconhecido -1

Hello

Can you please run this command and show us the output?

systemctl status snapd.service

And also

journalctl -u snapd.service

systemctl status snapd.service
Failed to get D-Bus connection: Unknown error -1

journalctl -u snapd.service
No journal files were found.

Snap and Snapd are istalled

what init system are you using?

Let me guess your using Kali Linux which by default doesn’t start the snap service by default you can activate it by: systemctl start snapd.service

2 Likes

It looks like the snapd.service is inactive to solve the error run the following commands
systemctl start snapd.service
and then try to install the package with snap, in my case it was.
sudo snap install libreoffice

man thank you i was searching for dayes