error: cannot communicate with server: Post "http:...
Created on: May 19, 2025
Created on: May 19, 2025
error: cannot communicate with server: Post "http://localhost/v2/snaps/telegram-desktop": dial unix /run/snapd.socket: connect: no such file or directory
The error you're seeing typically occurs when you're trying to install or run a Snap package (like telegram-desktop
) on a Linux system, but the Snap daemon (snapd
) isn't running or properly installed.
Here’s how you can fix it:
Run:
bashwhich snap
If there's no output, you need to install snapd
.
To install snapd
(for Debian/Ubuntu-based systems):
bashsudo apt update sudo apt install snapd
After installing:
bashsudo systemctl enable --now snapd
Check status:
bashsystemctl status snapd
Sometimes the socket path is missing:
bashsudo ln -s /var/lib/snapd/snap /snap
After installing and enabling everything:
bashsudo reboot
Once rebooted, try installing or launching again:
bashsudo snap install telegram-desktop
Let me know what distribution you're using if these steps don't work, and I can tailor the instructions accordingly.