By the way I am using wsl2.
I wanted to install vscode. In the tutorial I saw the apt way but it looked too hard. So i went to install snapd. Snapd installed just fine but when i ran sudo snap install --classic code
it told me> error: cannot communicate with server: Post "http://localhost/v2/snaps/code": dial unix /run/snapd.socket: connect: no such file or directory
I tried seeing a lot of other forums. ALL of them didnt help me.