I am trying to install heroku cli using

sudo snap install heroku --classic 

The command line says

error: cannot communicate with server: Post dial unix /run/snapd.socket: connect: no such file or directory 

I tried systemctl status snapd.service this is the result :

snapd.service Loaded: masked (/dev/null; bad) Active: inactive (dead) 

I tried systemctl restart snapd.service it says:

Failed to restart snapd.service: Unit snapd.service is masked. 

Any help on above problem in appreciated. Thanks.

2

1 Answer

Unmask the snapd.service:

sudo systemctl unmask snapd.service 

Enable it:

sudo systemctl enable snapd.service 

Start it:

sudo systemctl start snapd.service 

Then try installing your desired app.

3