Public bug reported: Upgrading from Bionic to Cosmic (or later) is not possible in WSL (https://en.wikipedia.org/wiki/Windows_Subsystem_for_Linux) fails since when lxd package upgrade (with the deb -> snap transition) starts it can't be completed successfully. The package upgrade can only be aborted if the snap command fails, hence the distribution upgrade can't be completed either.
As a workaround one can do: $ sudo mv /usr/bin/snap /usr/bin/snap.real $ sudo ln -s /bin/true /usr/bin/snap in a separate terminal, but this is not a smooth upgrade experience by any means. The upgrade can fail the same way if the snap store is not available possibly due to strict firewalling requirements and most likely distro upgrades should work in those environments as well. As a solution when the snap transition does not work during the package upgrade please upgrade the package to a state, where new invocations of lxd or lxc starts the snap installation later. A prototype can be found here: https://code.launchpad.net/~mwhudson/+git/lxd-installer/+ref/master ** Affects: lxd (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1821924 Title: LXD Deb->snap transition fails in WSL due to snap command not working (yet) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lxd/+bug/1821924/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
