Comment 3 for bug 1919504

Revision history for this message
Paweł Stołowski (stolowski) wrote :

Regarding your question about remove/reinstall, `snap remove lxd` would remove /var/snap/lxd/common which is where all your container data is kept (we do create automatic snapshot of it on remove though, which you can later restore, although you would still hit the above bug).

One way of working around this:
1. When snapd is not running, do:
sudo snap debug state /var/lib/snapd/state.json
and note the ID of a latest "configure-snap" change that is in progress.

2. Restart snapd with `sudo systemctl restart snapd` and quickly execute `snap abort ID` (use the ID from step 1); repeat this step as necessary if it hangs before you execute abort.

Sorry about the inconvenience caused by this bug.