I just hit this in a 16.04 container, but for reasons I don't understand installing the core snap first worked around the problem:
$ sudo snap install go --classic error: cannot perform the following tasks: - Setup snap "core" (5662) security profiles (cannot setup udev for snap "core": cannot reload udev rules: exit status 2 udev output: ) - Setup snap "core" (5662) security profiles (cannot reload udev rules: exit status 2 udev output: )
$ sudo snap install core core 16-2.35.4 from 'canonical' installed
$ sudo snap install go --classic go 1.11.1 from Michael Hudson-Doyle (mwhudson) installed
I just hit this in a 16.04 container, but for reasons I don't understand installing the core snap first worked around the problem:
$ sudo snap install go --classic
error: cannot perform the following tasks:
- Setup snap "core" (5662) security profiles (cannot setup udev for snap "core": cannot reload udev rules: exit status 2
udev output:
)
- Setup snap "core" (5662) security profiles (cannot reload udev rules: exit status 2
udev output:
)
$ sudo snap install core
core 16-2.35.4 from 'canonical' installed
$ sudo snap install go --classic
go 1.11.1 from Michael Hudson-Doyle (mwhudson) installed