WSL: Ubuntu snap not working

  • Your Windows build number: (Type ver at a Windows Command Prompt) Microsoft Windows [Version 10.0.16299.248]

  • What you’re doing and what’s happening: (Copy&paste specific commands and their output, or include screen shots)

[me@pc]$ sudo snap list
error: cannot list snaps: cannot communicate with server: Get http://localhost/v2/snaps: dial unix /run/snapd.socket: connect: no such file or directory
[me@pc]$ snap install swift
error: cannot communicate with server: Post http://localhost/v2/snaps/swift: dial unix /run/snapd.socket: connect: no such file or directory
[me@pc]$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 16.04.3 LTS
Release:        16.04
Codename:       xenial
  • What’s wrong / what should be happening instead:

snap should work but is is not. This is included in the ubuntu 16 distro. https://www.ubuntu.com/desktop/snappy Other: https://forum.snapcraft.io/t/windows-subsystem-for-linux/216/17

About this issue

  • Original URL
  • State: closed
  • Created 9 years ago
  • Reactions: 24
  • Comments: 17

Most upvoted comments

sudo apt-get update && sudo apt-get install -yqq daemonize dbus-user-session fontconfig sudo daemonize /usr/bin/unshare --fork --pid --mount-proc /lib/systemd/systemd --system-unit=basic.target exec sudo nsenter -t $(pidof systemd) -a su - $LOGNAME

snap version

I need snap to install nextcloud

exec sudo nsenter -t $(pidof systemd) -a su - $LOGNAME

Not working with latest WSL2. Crashed immediately the terminal 😦 !!!