Skip to main content

error:cannot list snaps: cannot communicate with server:Get http://localhost/v2/find?q=:dial unix /run/snapd.socket:connect:no such file or directory (fixed)

Welcome to devilz linux today we are going to fix comman error of snap





ERROR-
root@kali:~# snap install --classic anbox-installer
error: cannot communicate with server: Post http://localhost/v2/snaps/anbox-installer: dial unix /run/snapd.socket: connect: no such file or directory
root@kali:~# snap search anbox
error: cannot list snaps: cannot communicate with server: Get http://localhost/v2/find?q=anbox: dial unix /run/snapd.socket: connect: no such file or directory
root@kali:~# snap search k
error: cannot list snaps: cannot communicate with server: Get http://localhost/v2/find?q=k: dial unix /run/snapd.socket: connect: no such file or directory
root@kali:~# snap find programname
error: cannot list snaps: cannot communicate with server: Get http://localhost/v2/find?q=programname: dial unix /run/snapd.socket: connect: no such file or directory

FIX-

1>fire up terminal
 2> Command -


 service snapd start
or


      systemctl start snapd.service


3> done your error will get fixed-

proof-