Hi, had a first look at this, THE LINE OF CODE THAT CAUSES THE FAILURE: ----------------------------------------- $ ls /var/lib/dpkg/info/snapd.* > snapd.prerm snapd.postrm ...
See: https://github.com/canonical/snapd/blob/master/packaging/ubuntu-16.04/snapd.postrm As per log: "Removing snap lxd and revision 23541" => https://github.com/canonical/snapd/blob/master/packaging/ubuntu-16.04/snapd.postrm#L74 which is within the "purge" condition https://github.com/canonical/snapd/blob/master/packaging/ubuntu-16.04/snapd.postrm#L30 This is the line that fails: rm -rf --one-file-system "/var/snap/$snap/common" https://github.com/canonical/snapd/blob/master/packaging/ubuntu-16.04/snapd.postrm#L90 LOOKING AT THE WORLD WITH LXD INSTALLED ---------------------------------------- After installing lxd, and running lxd init, a link /var/snap/lxd/common/var/lib/lxcfs -> /var/snap/lxd/common/shmounts/lxcfs but /var/snap/lxd/common/shmounts/lxcfs does not exist. See: https://paste.ubuntu.com/p/Jg4Z2dbfgd/ So its seems the issue is, that the postrm script tries to remove something that it did not add. QUESTIONS --------- 1) @Paride: for your test, does the symlink actaully pointing to anything, otherwise is not representative of the issue. 2) @LXD team: What is lxd is responsible for populating "/var/snap/lxd/common/shmounts/lxcfs"? 3) @LXD team: Does lxd snap use a remove hook? https://snapcraft.io/docs/supported-snap-hooks#heading--remove -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1989603 Title: Can't purge snapd in LXD: rm: cannot remove '/var/snap/lxd/common/var/lib/lxcfs/...': Function not implemented To manage notifications about this bug go to: https://bugs.launchpad.net/lxd/+bug/1989603/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
