snap try doesn't work: "cannot find installed snap"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snapd |
Fix Released
|
Medium
|
Zygmunt Krynicki |
Bug Description
It seems I can no longer use `snap try`. Or rather, running `snap try` succeeds, but then running any app looks like this:
$ my-snap-name.hello
cannot snap-exec: cannot read info for "my-snap-name": cannot find installed snap "my-snap-name" at revision x1: missing file /var/lib/
This snap is just a test I created in /tmp/foo:
$ ls -l /var/lib/
lrwxrwxrwx 1 root root 14 Oct 25 10:30 /var/lib/
$ mount | grep my-snap-name
/dev/mapper/
nsfs on /run/snapd/
$ snap --version
snap 2.35.4
snapd 2.35.4
series 16
ubuntu 18.04
kernel 4.15.0-36-generic
Changed in snapd: | |
assignee: | nobody → Zygmunt Krynicki (zyga) |
description: | updated |
description: | updated |
Changed in snapd: | |
status: | In Progress → Fix Committed |
Changed in snapd: | |
status: | Fix Committed → Fix Released |
I can reproduce this problem with any trivial snap that is placed in /tmp. Outside of /tmp things work great. Looking at why.