So, I was trying to install VS Code:
sudo snap install code --classic
But I got the following error:
error: cannot communicate with server: Post http://localhost/v2/snaps/code: dial unix /run/snapd.socket: connect: no such file or directory
I have no idea what to do, I even deleted and reinstalled snap, but the error still appears…
I did:
sudo apt autoremove --purge snapd
and then:
sudo apt update && sudo apt upgrade
sudo apt install snapd
It doesn’t work!
Then I tried:
sudo service snapd start
The output:
snapd: unrecognized service
If I do:
snapd services
Output:
snap 2.54.3+20.04.1ubuntu0.2
snapd unavailable
series -
With the command:
systemctl status snapd.service
I get the following, my system is with sysvinit:
System has not been booted with systemd as init system (PID 1).
Can't operate.
Failed to connect to bus: Host is down
What is the reason this is happening? I’m using wsl2