Server Problem on Kali (Debian based) Linux

error: cannot communicate with server: Post “http://localhost/v2/snaps/core”: dial unix /run/snapd.socket: connect: no such file or directory

that’s the error, how can I fix this?

Is snapd running? What is journalctl -e --no-pager -u snapd ?

It’s like this:
taha@kali:~$ sudo journalctl -e --no-pager -u snapd
[sudo] password for taha:
– Logs begin at Wed 2020-07-15 18:12:02 +03, end at Wed 2020-07-22 22:52:45 +03. –
– No entries –

what is the status of the snapd service?

systemctl status snapd