[SOLVED / FIXED ] snapd error: cannot communicate with server: Post http://localhost/v2/snaps/core
Error:
error: cannot communicate with server: Post http://localhost/v2/snaps/core
Solution / Fix:
To fix that check if snap is running by
systemctl status snapd
If below is the result:
● snapd.service - Snap Daemon
Loaded: loaded (/lib/systemd/system/snapd.service; enabled; vendor preset: enabled)
Active: inactive (dead) since Thu 2022-04-14 06:50:30 +04; 1 day 14h ago
Process: 4577 ExecStart=/usr/lib/snapd/snapd (code=killed, signal=TERM)
Main PID: 4577 (code=killed, signal=TERM)
That means it has stopped due to some reason
to fix that just restart the snap again.
systemctl start snapd